Twitter Tweet Details (V2) - Data API Endpoint

Tweet Details (V2) by tweet id, bearer token, expansions, fields (media), fields (places), fields (polls), fields (tweets) and fields (users).


Download Twitter Tweet Details (V2) data from the Official Twitter API | 👥  Contributors: steve 🚩  Report

✏️ Inputs

Tweet ID tweet_id Required

Unique ID of the Tweet you want to lookup. You can get this from other API endpoints or from a URL. E.g. the Tweet ID for https://twitter.com/chadloder/status/1445072650720591875 is 1445072650720591875

E.g. 1445072650720591875
Bearer Token access_token Required

Your Twitter app’s Bearer Token for collecting data with. If you don’t have one, see How to Get a Twitter API Key Without Approval or check out Twitter’s docs on Bearer Tokens for more information.

If you get the error client-not-enrolled, then make sure you’re not using a standalone app and try creating a new application with the Add App button under a project and NOT under the standalone section.

Expansions expansions Optional

A comma-separated list of additional data to return back in the response. See Twitter API Expansions for possible values or copy the example value here to get as much data back as possible.

E.g. author_id,referenced_tweets.id,in_reply_to_user_id,attachments.media_keys,attachments.poll_ids,geo.place_id,entities.mentions.username,referenced_tweets.id.author_id
Fields (Media) media_fields Optional

A comma-separated list of fields you would like back for media objects (photos, videos, etc…). See the Twitter API Media Model or just use the example value here to get back as much data as possible.

E.g. duration_ms,height,preview_image_url,public_metrics,width
Fields (Places) place_fields Optional

A comma-separated list of fields you would like back for places tagged in Tweets within the response. See the Twitter API Places Model for details or just use the example value here to get back as much data as possible.

E.g. contained_within,country,country_code,geo,name,place_type
Fields (Polls) poll_fields Optional

A comma-separated list of fields you to return for Tweets with attached polls. See the Twitter API Poll Model for details or just use the example value here to get back as much data as possible.

E.g. duration_minutes,end_datetime,voting_status
Fields (Tweets) tweet_fields Optional

A comma-separated list of fields you would like back for Tweets returned in the response. See the Twitter API Tweet Model for all possible values or just use the example value here to get as much data back as possible.

E.g. attachments,author_id,context_annotations,conversation_id,created_at,entities,geo,in_reply_to_user_id,lang,possibly_sensitive,public_metrics,referenced_tweets,reply_settings,source,withheld
Fields (Users) user_fields Optional

A comma-separated list of fields you would like back for users in the response. See the Twitter API User Model for more information or just use the example value here to get as much data back as possible.

E.g. created_at,description,entities,location,pinned_tweet_id,profile_image_url,protected,public_metrics,url,verified,withheld

📝 Notes

Posted by steve on Sept. 30, 2022, 6:30 a.m. 🚩  Report

⚡️ Endpoint

GET https://api.twitter.com/2/tweets/{{tweet_id}}?tweet.fields={{tweet_fields}}&user.fields={{user_fields}}&media.fields={{media_fields}}&poll.fields={{poll_fields}}&place.fields={{place_fields}}&expansions={{expansions}}

Body

None

Headers

Authorization
Bearer {{access_token}}