MenuX post details

XPOSTS

Get X post details

Returns one post by its numeric id, with author, metrics, media, mentions and links.

GET/v1/twitter/posts/detailsSingle lookup

Auth

API key Get a key

Platform

XPublic data only

Pagination

NoneOne object per call
Base URLhttps://social-api.airaa.xyz
curl "https://social-api.airaa.xyz/v1/twitter/posts/details?id=2123798314843787300" \
  -H "X-API-KEY: $AIRAA_KEY"
Replace $AIRAA_KEY with your key
200Responseapplication/json
{
  "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 string
idstringrequired

The numeric post ID, the last part of a post URL

Example 2123798314843787300

Response

200 · application/json

Absent fields are omitted, never null. Response conventions

FieldTypeDescription
postobject

The post

post.idstring

Numeric post ID

post.post_urlstring · url

Link to the post on x.com

post.typestring

post, reply, quote or retweet

post.textstring

Full text, including long posts. For a retweet, the original post's text

post.display_text_rangeobject

Character range of the visible text, without leading reply mentions or trailing media links

post.display_text_range.startinteger

Index of the first visible character

post.display_text_range.endinteger

Index where the visible text ends

post.published_atstring · date-time

Post time, ISO 8601 UTC timestamp

post.conversation_idstring

ID of the first post in the thread

post.authorobject

The account that published the post. For a retweet, the account that reposted

post.author.idstring

Numeric account ID, as a string

post.author.usernamestring

Handle without the @

post.author.namestring

Display name

Errors

{ "error": "message" }
StatusMeaningRetry
400

id is missing or empty. Does not use quota

{ "error": "id is required" }
No. Fix the request.
401

Missing or invalid X-API-KEY header

{ "error": "Invalid API key." }
No. Check the key.
403

Your plan does not include this endpoint, or your access is paused. code is endpoint_not_enabled, subscription_inactive or account_suspended. Does not use quota

No. Check your plan.
404

The post was deleted or never existed (uses quota), or id is not a numeric ID (does not use quota)

{ "error": "This post does not exist." }
No. It doesn't exist.
429

Too many requests per second (code: rate_limited, retry after Retry-After), or the plan's quota is used up (code: quota_exhausted). Does not use quota

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 Retry-After when it is sent. Does not use quota

{ "error": "Service temporarily unavailable." }
Yes, after Retry-After
esc

Pages

Endpoints

↑↓ to move↵ to open