About retweeted_status not getting media_entities node

media
retweet
api

#1

Have noticed that when receiving a retweet which was supposed to contain a photo or video it’s retweeted_status/entities/media node is not there

{
	"retweeted_status": {
		"created_at": "Mon Feb 08 00:58:49 +0000 2016",
		"id": 696498381229654000,
		"id_str": "696498381229654016",
		"text": "Two thirsty heroes. But only one #CokeMini. Let the chase begin.\nhttps://t.co/OOMJgDT4C1",
		"source": "<a href=\"http: //twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
		"truncated": false,
		"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": 26787673,
			"id_str": "26787673",
			"name": "Coca-Cola",
			"screen_name": "CocaCola",
			"location": "Atlanta, GA",
			"description": "",
			"url": "http://t.co/br7062w6sG",
			"entities": {
				"url": {
					"urls": [{
						"url": "http://t.co/br7062w6sG",
						"expanded_url": "http://www.coca-cola.com",
						"display_url": "coca-cola.com",
						"indices": [
							0,
							22
						]
					}]
				},
				"description": {
					"urls": []
				}
			},
			"protected": false,
			"followers_count": 3190838,
			"friends_count": 66718,
			"listed_count": 13096,
			"created_at": "Thu Mar 26 16:36:42 +0000 2009",
			"favourites_count": 8272,
			"utc_offset": -18000,
			"time_zone": "Eastern Time (US & Canada)",
			"geo_enabled": false,
			"verified": true,
			"statuses_count": 204989,
			"lang": "en",
			"contributors_enabled": false,
			"is_translator": false,
			"is_translation_enabled": false,
			"profile_background_color": "D41D22",
			"profile_background_image_url": "http://pbs.twimg.com/profile_background_images/450978904195350528/Pwg_l_5u.jpeg",
			"profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/450978904195350528/Pwg_l_5u.jpeg",
			"profile_background_tile": false,
			"profile_image_url": "http://pbs.twimg.com/profile_images/696499127505453057/ENDSahDQ_normal.jpg",
			"profile_image_url_https": "https://pbs.twimg.com/profile_images/696499127505453057/ENDSahDQ_normal.jpg",
			"profile_banner_url": "https://pbs.twimg.com/profile_banners/26787673/1454893257",
			"profile_link_color": "F40009",
			"profile_sidebar_border_color": "000000",
			"profile_sidebar_fill_color": "ECECEC",
			"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
		},
		"geo": null,
		"coordinates": null,
		"place": null,
		"contributors": null,
		"is_quote_status": false,
		"retweet_count": 10484,
		"favorite_count": 13626,
		"entities": {
			"hashtags": [{
				"text": "CokeMini",
				"indices": [
					33,
					42
				]
			}],
			"symbols": [],
			"user_mentions": [],
			"urls": [{
				"url": "https://t.co/OOMJgDT4C1",
				"expanded_url": "https://amp.twimg.com/v/684aefa4-9b47-4454-9195-52a9fc538955",
				"display_url": "amp.twimg.com/v/684aefa4-9b4…",
				"indices": [
					65,
					88
				]
			}]
		},
		"favorited": false,
		"retweeted": true,
		"possibly_sensitive": false,
		"lang": "en"
	}
}

#2

When I run GET statuses/show/:id on that status I only see a single entity and it’s for a hashtag. It would appear to not be specific to retweeted_statuses.


#3

The weirdest thing that it has a media, but taking a better look at this, I can see that it’s embedded in url property.


#4

Is that because amp.twimg.com videos, are not considered media?


#5

Yes that is correct, the Twitter Amplify Videos are not recognized as video entities, unfortunately.