Single Tweet
This endpoint returns details about the Tweet specified by the requested ID.
For full details, see the API reference for this endpoint.
Sign up for the Twitter API
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
tweet.fields | string | Comma-separated list of fields for the Tweet object. |
Allowed values: attachments,author_id,context_annotations,conversation_id,created_at,entities,geo,id,in_reply_to_user_id,lang,non_public_metrics,organic_metrics,possibly_sensitive,promoted_metrics,public_metrics,referenced_tweets,reply_settings,source,text,withheld
Default values: id,text
OAuth1.0a User Context authorization required if any of the following fields are included in the request:
non_public_metrics,organic_metrics,promoted_metrics
|
| expansions
| null | | Comma-separated list of fields to expand. Expansions enable requests to expand an ID into a full object in the includes response object.
Allowed values: attachments.poll_ids,attachments.media_keys,author_id,geo.place_id,in_reply_to_user_id,referenced_tweets.id,entities.mentions.username,referenced_tweets.id.author_id
Default values: none |
| media.fields
| null | | Comma-separated list of fields for the media object. Expansion required.
Allowed values: duration_ms,height,media_key,non_public_metrics,organic_metrics,preview_image_url,promoted_metrics,public_metrics,type,url,width
Default values: media_key,type
OAuth1.0a User Context authorization required if any of the following fields are included in the request:
non_public_metrics,organic_metrics,promoted_metrics |
| place.fields
| null | | Comma-separated list of fields for the place object. Expansion required.
Allowed values: contained_within,country,country_code,full_name,geo,id,name,place_type
Default values:
id,full_name |
| poll.fields
| null | | Comma-separated list of fields for the poll object. Expansion required.
Allowed values: duration_minutes,end_datetime,id,options,voting_status
Default values:
id, options |
| user.fields
| string | | Comma-separated list of fields for the user object. Expansion required.
Allowed values: created_at,description,entities,id,location,name,pinned_tweet_id,profile_image_url,protected,public_metrics,url,username,verified,withheld
Default values: id,name,username |
RESPONSES
status: OK
{"data":{"author_id":"2244994945","created_at":"2020-06-24T16:28:14.000Z","entities":{"urls":[{"start":140,"end":163,"url":"https://t.co/IKM3zo6ngu","expanded_url":"https://blog.twitter.com/developer/en_us/topics/tips/2020/how-to-analyze-the-sentiment-of-your-own-tweets.html","display_url":"blog.twitter.com/developer/en_u…","images":[{"url":"https://pbs.twimg.com/news_img/1275828115110060033/WIbBrSld?format=jpg\u0026name=orig","width":1600,"height":600},{"url":"https://pbs.twimg.com/news_img/1275828115110060033/WIbBrSld?format=jpg\u0026name=150x150","width":150,"height":150}],"status":200,"title":"How to analyze the sentiment of your own Tweets","description":"This post helps developers try out sentiment analysis by analyzing their own past Tweets.","unwound_url":"https://blog.twitter.com/developer/en_us/topics/tips/2020/how-to-analyze-the-sentiment-of-your-own-tweets.html"}]},"id":"1275828087666679809","lang":"en","possibly_sensitive":false,"source":"Twitter Web App","text":"Learn how to create a sentiment score for your Tweets with Microsoft Azure, Python, and Twitter Developer Labs recent search functionality.\nhttps://t.co/IKM3zo6ngu"}}