How to get promoted tweets' media


#1

Hi All,

I’m trying to get “media” information of promoted tweets.

the response of GET call: "https://ads-api.twitter.com/1/accounts/:account_id/promoted_tweets?with_deleted=true&line_item_ids=:line_id"
doesn’t contain “entities” field, and definately not “media” field, but it does help finding the tweet_id of promoted tweets.

calling:
"https://api.twitter.com/1.1/statuses/user_timeline.json?user_id=:user_id&since_id=:lowest_promoted_id&max_id=highest_promoted_id"
doesn’t provide data about all of the tweets, possibly because some tweets are promoted only(?)

How can I get “media” information about promoted tweets?

Thanks,
Alon


#2

Hi @AlonDvirPlus500! After you get all promoted tweets and you find out their tweets ids, you use https://dev.twitter.com/rest/reference/get/statuses/show/%3Aid to get data about a specific tweet, and there you can see the media you’re interested in.