Platforms/X (Twitter)/Tweet transcript

X (Twitter) Video Transcript API

GET · 1 credit

Send a video post's id or link, and get the captions X made from its speech, as one text and as timed segments.

GET /v1/twitter/tweets/transcript

What people use it for

  • AI summaries: turn a video post's speech into text to summarize or search.
  • Quotes and fact-checks: find exactly what was said in a clip, with segments for the time.

How it works with other endpoints

Post ids come from Profile tweets, Tweet or a link; Tweet's media shows whether a post has a video.

Limits

  • One video post a call.
  • A post without a video, or a video without captions, answers 404 NOT_FOUND.

Example request

const url = `${process.env.API_URL}/v1/twitter/tweets/transcript?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": {
    "tweet_id": "1916982720317821050",
    "language": "en",
    "text": "Liftoff! The crew is on its way to the International Space Station.",
    "segments": [
      {
        "start": 0,
        "end": 1.4,
        "text": "Liftoff!"
      },
      {
        "start": 1.4,
        "end": 4.9,
        "text": "The crew is on its way to the International Space Station."
      }
    ]
  },
  "page": null,
  "meta": {
    "platform": "twitter",
    "endpoint": "tweet_transcript",
    "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

Where do the captions come from?

X makes them from the video's speech.

What if a post has no video or no captions?

It answers 404 NOT_FOUND.

Which language is it in?

The captions' language, in language: en, es and so on.

Works with

Use cases

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