Threads

oEmbed

Updated: Nov 9, 2026
Copy for LLM
The Threads oEmbed endpoint allows you to embed a public Threads post or profile in external websites and apps. See Embed a Threads post for more information.

GET /oembed?url=...

Retrieve the embed HTML code snippet and metadata of a post or profile.

Parameters

Name Description
url
URL string
Required.
Permanent link to the post or profile on Threads.
Accepted formats:
  • https://www.threads.com/@{username}/post/{media-shortcode}
  • https://www.threads.com/t/{media-shortcode}
  • https://www.threads.com/@{username}
Examples:
  • https://www.threads.com/@meta/post/DDzbnVKx57R
  • https://www.threads.com/t/DDzbnVKx57R
  • https://www.threads.com/@meta
maxwidth
int
Optional.
Maximum width of returned media. Must be between 320 and 658 pixels.
Note: The maxheight parameter is not supported because the embed code is responsive and its height varies depending on its width.
theme
string
Optional.
Display mode for the embed. Accepted values:
  • light: Always use light mode. This is the default if you omit theme.
  • dark: Always use dark mode.
  • auto: Automatically use light or dark mode based on the viewer’s preferred appearance settings.

Fields

Name Description
html
string
The HTML used to display the post or profile.
provider_name
string
Name of the provider (Threads).
provider_url
URL string
URL of the provider (https://www.threads.com/⁠).
type
string
The oEmbed resource type. See https://oembed.com/⁠.
version
string
Always 1.0. See https://oembed.com/⁠.
width
int
The width in pixels required to display the HTML.