Platforms/X (Twitter)/Tweet

X (Twitter) Post API

GET ยท 1 credit

Send a post's id or link, and get its text, author, counts and views, images and videos, links, mentions and hashtags.

GET /v1/twitter/tweets

What people use it for

  • Engagement tracking: read a post's likes, reposts, quotes, bookmarks and views over its first days.
  • Media collection: save the images and videos a post carries.
  • Link enrichment: turn a pasted X link into its text, author and media.

How it works with other endpoints

Post ids come from Profile tweets, Community tweets and links. The same id goes to Tweet replies and, for a video post, to Tweet transcript. The author_id goes to Profile as user_id.

Limits

  • One post a call.
  • views is set where X shows them.
  • A deleted post answers 404 NOT_FOUND; a protected account's answers 403 LOGIN_REQUIRED.

Example request

const url = `${process.env.API_URL}/v1/twitter/tweets?tweet_id=1916982720317821050`;

const response = await fetch(url, {
  headers: { "x-api-key": process.env.API_KEY },
});

const { data } = await response.json();
console.log(data);

Parameters

ParameterRequiredDescription
tweet_idNoA post's id: the digits after /status/ in its link. Give tweet_id or url.
urlNoA post's link: x.com/<handle>/status/<id> or twitter.com/..., with anything after it. Give tweet_id or url.

Example response

{
  "data": {
    "id": "1916982720317821050",
    "url": "https://x.com/NASA/status/1916982720317821050",
    "text": "The Milky Way rises over the launch pad. https://t.co/aB3dE5fG7h",
    "created_at": "2026-11-28T03:12:00Z",
    "language": "en",
    "author_id": "11348282",
    "author_handle": "NASA",
    "author_name": "NASA",
    "author_picture": "https://pbs.twimg.com/profile_images/nasa_400x400.jpg",
    "author_verified": true,
    "likes": 48000,
    "reply_count": 1200,
    "retweet_count": 6100,
    "quote_count": 420,
    "bookmark_count": 2300,
    "views": 3100000,
    "media": [
      {
        "type": "photo",
        "url": "https://pbs.twimg.com/media/milky-way.jpg",
        "video_url": null,
        "width": 2048,
        "height": 1365,
        "duration_seconds": null
      }
    ],
    "links": [
      "https://www.nasa.gov/image-of-the-day"
    ],
    "mentions": [],
    "hashtags": [],
    "quoted_id": null,
    "reply_to_id": null,
    "reply_to_handle": null,
    "sensitive": false,
    "pinned": null
  },
  "page": null,
  "meta": {
    "platform": "twitter",
    "endpoint": "tweet",
    "params": {
      "tweet_id": "1916982720317821050"
    },
    "request_id": "sp_req_1f8c2d3e4a5b6c7d",
    "api_version": "v1",
    "fetched_at": "2026-11-30T09:30:00Z",
    "cached": false
  }
}

An illustrative answer: live answers have the same shape, with the page's current data.

Every field, with its type, is in the API reference, and every error code in Errors.

Price

Each call costs 1 credit, a not-found answer too. Cached answers and other errors cost nothing, and credits never expire. New accounts start with 100 free credits. See pricing for the packs.

FAQ

Which links does it take?

x.com/<handle>/status/<id> and twitter.com links, with anything after them, or the post's id alone.

Is the text complete for long posts?

Yes, all of it. Its links are t.co links, as X writes them; links has them in full.

Does it give the video file?

Yes. A video's or GIF's MP4 is in media, in its best quality, with the video's length.

How do I read the post it quotes or answers?

Send quoted_id or reply_to_id back to this endpoint.

Works with

Start free

Your first 100 credits are on us

Sign up, create a key and make your first call in a few minutes.

No credit card required