Missing media property in entities


If the Tweets contain the value truncated: true then they are extended Tweets and you’ll need to use that mode to retrieve the complete object.


I will try it now. But all tweets like this. may be thousands… all empty media and urls…

will try and post here.




I am using tweet_mode=extended but it always not returning the “media” element under “entities”. For some tweets its showing “media” element and for some it is not. But I can see media elements (images, video link etc) are present on those as well. Is there any other parameters needs to be added?


Can you provide example Tweet IDs that do and do not contain the expected media entities?


Hi andypiper,

Here is such tweet - 897778739790196736

How can I get the image url? My request is GET /1.1/statuses/show/897778739790196736.json?tweet_mode=extended


I have add param tweet_mode=extended respone not include extended_entities too. :frowning:
this is my tw: https://twitter.com/monipla_tw/status/757797168010801155.


Yea, I am having an issue with extended_mode, too.

For tweet id: 938988549164089344

Request url: https://api.twitter.com/1.1/statuses/show.json?id=938988549164089344&tweet_mode=extended

Im getting this the response posted below. Notice the entities fields are all empty. Now, I’m stuck trying to figure out how to get both the tweet url AND the full tweet text without having to make two separate API calls.

  "created_at": "Fri Dec 08 04:28:10 +0000 2017",
  "id": 938988549164089300,
  "id_str": "938988549164089344",
  "full_text": "I had a dream last nite that the day after he was elected and he found out that Russia screwed with our election, Trump himself called for a Special Counsel to get the truth. \"We can't have a foreign country messing with our elections\" Trump said in my dream.\n\nAnd then I woke up.",
  "truncated": false,
  "display_text_range": [0, 280],
  "entities": {
    "hashtags": [],
    "symbols": [],
    "user_mentions": [],
    "urls": []
  "source": "<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
  "in_reply_to_status_id": null,
  "in_reply_to_status_id_str": null,
  "in_reply_to_user_id": null,
  "in_reply_to_user_id_str": null,
  "in_reply_to_screen_name": null,
  "user": {
    "id": 236487888,
    "id_str": "236487888",
    "name": "Joe Walsh",
    "screen_name": "WalshFreedom",
    "location": "Chicago",
    "description": "Fmr. Congressman. Nationally Syndicated Radio Host with Salem Radio Network. Listen to the show: https://t.co/FkESD3vq9h Founding Father of #NoChillFriday",
    "url": "https://t.co/EAHqpVprrJ",
    "entities": {
      "url": {
        "urls": [{
          "url": "https://t.co/EAHqpVprrJ",
          "expanded_url": "http://WalshFreedom.com",
          "display_url": "WalshFreedom.com",
          "indices": [0, 23]
      "description": {
        "urls": [{
          "url": "https://t.co/FkESD3vq9h",
          "expanded_url": "http://walshfreedom.com/listen",
          "display_url": "walshfreedom.com/listen",
          "indices": [97, 120]
    "protected": false,
    "followers_count": 126376,
    "friends_count": 19077,
    "listed_count": 2256,
    "created_at": "Mon Jan 10 18:11:53 +0000 2011",
    "favourites_count": 4222,
    "utc_offset": -21600,
    "time_zone": "Central Time (US & Canada)",
    "geo_enabled": true,
    "verified": true,
    "statuses_count": 44083,
    "lang": "en",
    "contributors_enabled": false,
    "is_translator": false,
    "is_translation_enabled": false,
    "profile_background_color": "000000",
    "profile_background_image_url": "http://pbs.twimg.com/profile_background_images/378800000165574064/zQcCOfoU.jpeg",
    "profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/378800000165574064/zQcCOfoU.jpeg",
    "profile_background_tile": false,
    "profile_image_url": "http://pbs.twimg.com/profile_images/740684176072925184/i3NUKuQN_normal.jpg",
    "profile_image_url_https": "https://pbs.twimg.com/profile_images/740684176072925184/i3NUKuQN_normal.jpg",
    "profile_banner_url": "https://pbs.twimg.com/profile_banners/236487888/1465427808",
    "profile_link_color": "000000",
    "profile_sidebar_border_color": "000000",
    "profile_sidebar_fill_color": "F5F8FA",
    "profile_text_color": "333333",
    "profile_use_background_image": true,
    "has_extended_profile": false,
    "default_profile": false,
    "default_profile_image": false,
    "following": false,
    "follow_request_sent": false,
    "notifications": false,
    "translator_type": "none"
  "geo": null,
  "coordinates": null,
  "place": null,
  "contributors": null,
  "is_quote_status": false,
  "retweet_count": 208,
  "favorite_count": 956,
  "favorited": false,
  "retweeted": false,
  "lang": "en"


I just opened that Tweet in a browser and there is nothing that I’d expect to appear in entities or extended_entities - what are you expecting that you’re not seeing In the API?


How do i add “tweet_mode=extended” to twitcurl for c++?


I’m having the same problem with the missing media property in entities.

I’m using the TwitterOAuth library but I need to return results from several hashtags. I’m able to get data when I make the request, however entities doesn’t include the media property. I’ve searched all over the object to see if it’s in another location but I can’t find it. The only images that I see are in user->entities.

I’ve checked several tweet results and none of them have it. I’ve included tweet_mode=extended and include_entities=true

Here is the ID of one of the tweets that has an image but I don’t get reference to it in the results: 988793173056081920



I see both entities->media and extended_entities->media on that Tweet when retrieved using twurl.


Yeah, I do see them when I do a query for the id using statuses/show/:id, but when I do a search/tweets/:q query for hashtags (that also include this tweet) they do not appear. This is an example of my query:
#RestorativePractices OR #schooljustice

It seems like the problem is when I use logical operators or #. Because when I test it with ‘puppy’ I get the media property. But when I try with ‘#puppy’ or ‘puppy OR kitty’ it doesn’t appear.

Any ideas on how I can fix this or is this way by design?



OK, after doing more tests all of a sudden I’m getting the media property on some of them. For instance ‘989587018874327040’ does return an image. So I’m all good now.

I finally figured out why the media property was not appearing for that specific and other similar tweets. So it turns out tweets that have been retweeted have all of their full info inside retweeted_status object. It has an entities property of its own. I also noticed that the main full_text property was cutting off some of the tweet text. it turns out retweeted_status also has a full_text property and it displays all of the text. I guess it makes sense since the tweet was retweeted that all of the data would be inside this object.