GET statuses/oembed

Returns a single Tweet, specified by either a Tweet web URL or the Tweet ID, in an oEmbed-compatible format. The returned HTML snippet will be automatically recognized as an Embedded Tweet when Twitter’s widget JavaScript is included on the page.

The oEmbed endpoint allows customization of the final appearance of an Embedded Tweet by setting the corresponding properties in HTML markup to be interpreted by Twitter’s JavaScript bundled with the HTML response by default. The format of the returned markup may change over time as Twitter adds new features or adjusts its Tweet representation.

The Tweet fallback markup is meant to be cached on your servers for up to the suggested cache lifetime specified in the cache_age.

Resource URL

Resource Information

Response formats JSON
Requires authentication? No
Rate limited? No


Name Required Description Default Value Example
url required The URL of the Tweet to be embedded
maxwidth optional The maximum width of a rendered Tweet in whole pixels. This value must be between 220 and 550 inclusive. A supplied value under or over the allowed range will be returned as the minimum or maximum supported width respectively; the reset width value will be reflected in the returned width property. Note that Twitter does not support the oEmbed maxheight parameter. Tweets are fundamentally text, and are therefore of unpredictable height that cannot be scaled like an image or video. Relatedly, the oEmbed response will not provide a value for height. Implementations that need consistent heights for Tweets should refer to the hide_thread and hide_media parameters below   325
hide_media optional When set to true , t, or 1 links in a Tweet are not expanded to photo, video, or link previews false true
hide_thread optional When set to true , t, or 1 a collapsed version of the previous Tweet in a conversation thread will not be displayed when the requested Tweet is in reply to another Tweet false true
omit_script optional When set to true , t, or 1 the <script> responsible for loading widgets.js will not be returned. Your webpages should include their own reference to widgets.js for use across all Twitter widgets including Embedded Tweets false true
align optional Specifies whether the embedded Tweet should be floated left, right, or center in the page relative to the parent element. Valid values are left, right, center, and none none right
related optional A comma-separated list of Twitter usernames related to your content. This value will be forwarded to Tweet action intents if a viewer chooses to reply, like, or retweet the embedded Tweet   twitterapi,twitter
lang optional Request returned HTML and a rendered Tweet in the specified Twitter language supported by embedded Tweets en fr
theme optional When set to dark, the Tweet is displayed with light text over a dark background light dark
link_color optional Adjust the color of Tweet text links with a hexadecimal color value   %2355acee
widget_type optional Set to video to return a Twitter Video embed for the given Tweet   video
dnt optional When set to true, the Tweet and its embedded page on your site are not used for purposes that include personalized suggestions and personalized ads false true

Example Request


Example Response

  "url": "",
  "author_name": "US Dept of Interior",
  "author_url": "",
  "html": "<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Happy 50th anniversary to the Wilderness Act! Here&#39;s a great wilderness photo from <a href="">@YosemiteNPS</a>. <a href="">#Wilderness50</a> <a href=""></a></p>&mdash; US Dept of Interior (@Interior) <a href="">September 3, 2014</a></blockquote>n<script async src="//" charset="utf-8"></script>",
  "width": 550,
  "height": null,
  "type": "rich",
  "cache_age": "3153600000",
  "provider_name": "Twitter",
  "provider_url": "",
  "version": "1.0"