I’m able to fetch tweet data and metrics without issue. Once I add an expansion to select attachments.media_keys, and within media.fields requesting organic_metrics fails to return any data.

Here is my full request URL:
https://api.twitter.com/2/tweets?ids=TWEET_ID&tweet.fields=organic_metrics&expansions=attachments.media_keys&media.fields=organic_metrics

Here is the returned payload (sensitive contents omitted):

{"data":[{"organic_metrics":{"user_profile_clicks":0,"like_count":0,"reply_count":0,"impression_count":0,"retweet_count":0},"text":"... https://t.co/...","attachments":{"media_keys":["MEDIA_ID"]},"id":"TWEET_ID"}],"includes":{"media":[{"media_key":"MEDIA_ID","type":"photo"}]}}

As you can see, the includes contains the requested media, but it is missing the relevant keys pertaining to organic_metrics. I was curious if anyone else has encountered this problem.

1 Like