XPOSTS
Get X post details
Returns one post by its numeric id, with author, metrics, media, mentions and links.
/v1/twitter/posts/detailsSingle lookuphttps://social-api.airaa.xyzcurl "https://social-api.airaa.xyz/v1/twitter/posts/details?id=2123798314843787300" \ -H "X-API-KEY: $AIRAA_KEY"
{
"post": {
"id": "2123798314843787300",
"post_url": "https://x.com/NASA/status/2123798314843787300",
"type": "post",
"text": "We 💛 V-G-R\n\nOn the evening before Voyager 1 reached its one light-day distance from Earth, people all over the globe came together to celebrate humanity’s farthest reach into the universe. Learn more about this historic milestone: https://go.nasa.gov/3VxPANX https://x.com/NASA/status/2123798314843787300/video/1",
"display_text_range": {
"start": 0,
"end": 254
},
"published_at": "2026-11-20T15:19:11.000Z",
"conversation_id": "2123798314843787300",
"author": {
"id": "11348282",
"username": "NASA",
"name": "NASA",
"profile_url": "https://x.com/NASA",
"profile_picture_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_normal.jpg",
"is_verified": false,
"is_blue_verified": true,
"is_private": false
},
"metrics": {
"like_count": 4503,
"repost_count": 857,
"reply_count": 228,
"quote_count": 70,
"bookmark_count": 324,
"view_count": 738871
},
"media": [
{
"type": "video",
"url": "https://video.twimg.com/amplify_video/2123798254152208384/vid/avc1/1920x1080/xw57gVAFRVo6Us_M.mp4?tag=16",
"thumbnail_url": "https://pbs.twimg.com/media/HXk_T7cWcAAEUL9.jpg",
"width": 720,
"height": 405,
"duration_seconds": 101,
"alt_text": null
}
],
"hashtags": [],
"mentions": [],
"urls": [
"https://go.nasa.gov/3VxPANX"
]
}
}The post has the same shape as the items of /v1/twitter/user/posts. Only id is always present. reply_to ({ post_id, user_id, username }) appears on replies, quoted_post on quotes and reposted_post on retweets. media[].alt_text is null when the author wrote none.
The id is the last part of a post URL: for https://x.com/NASA/status/2123798314843787300 it is 2123798314843787300. Anything that isn't digits only, such as a full URL, returns 404 without using quota.
Quota
A request uses one request from your quota when it gets an answer about the data you asked for, including a 404 for an account or post that does not exist. Input errors such as a missing parameter are free, and so are 5xx responses. Access needs a grant for the endpoint; grants match from the most specific scope to the least, for example twitter.user.profile, then twitter.user, then twitter.
Parameters
Query stringidstringrequiredThe numeric post ID, the last part of a post URL
Example 2123798314843787300
Response
200 · application/jsonAbsent fields are omitted, never null. Response conventions
| Field | Type | Description |
|---|---|---|
| post | object | The post |
| post.id | string | Numeric post ID |
| post.post_url | string · url | Link to the post on x.com |
| post.type | string | post, reply, quote or retweet |
| post.text | string | Full text, including long posts. For a retweet, the original post's text |
| post.display_text_range | object | Character range of the visible text, without leading reply mentions or trailing media links |
| post.display_text_range.start | integer | Index of the first visible character |
| post.display_text_range.end | integer | Index where the visible text ends |
| post.published_at | string · date-time | Post time, ISO 8601 UTC timestamp |
| post.conversation_id | string | ID of the first post in the thread |
| post.author | object | The account that published the post. For a retweet, the account that reposted |
| post.author.id | string | Numeric account ID, as a string |
| post.author.username | string | Handle without the @ |
| post.author.name | string | Display name |
Errors
{ "error": "message" }| Status | Meaning | Retry |
|---|---|---|
| 400 |
{ "error": "id is required" } | No. Fix the request. |
| 401 | Missing or invalid { "error": "Invalid API key." } | No. Check the key. |
| 403 | Your plan does not include this endpoint, or your access is paused. | No. Check your plan. |
| 404 | The post was deleted or never existed (uses quota), or { "error": "This post does not exist." } | No. It doesn't exist. |
| 429 | Too many requests per second ( | After your quota resets |
| 502 | The data could not be fetched right now. Retry later. Does not use quota { "error": "Internal Server Error." } | Yes, with backoff |
| 503 | Temporary outage. Retry after { "error": "Service temporarily unavailable." } | Yes, after Retry-After |