Missing media property in entities


#21

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.


#22

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

will try and post here.

thx


#23

Hi,

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?


#24

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


#25

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


#26

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.


#27

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"
}

#28

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?


#29

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