Tweet Detail
API for getting detailed Twitter tweet information
Tweet Detail
Get detailed information about a specific Twitter tweet, including content, comments, retweets, quotes, etc.
Request
URL: /api/twitter/tweet-detail
Method: GET
or POST
Request Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
restId | string | Yes | Unique ID identifier of the tweet |
Response
A successful response will return detailed information about the tweet, including tweet content, creation time, author information, like count, retweet count, comments, media content, etc.
Examples
Request Example
Response Example
Error Responses
Status Code | Description |
---|---|
400 | Request parameter error, e.g., missing required restId parameter |
401 | Authentication failed, API key invalid or missing |
404 | Tweet does not exist or has been deleted |
500 | Internal server error |
Getting Tweet ID
To use this API, you need to know the tweet's restId
. You can obtain it through the following methods:
- On the Twitter web version, the tweet's URL usually contains its ID, such as
https://twitter.com/username/status/1234567890
, where1234567890
is the tweet ID - Use other Twitter API interfaces, such as user tweet lists, search results, etc., which return data containing tweet IDs