X / Twitter Transcript API
An X / Twitter transcript API returns the spoken words of a public video post as timed JSON text. You send the link of the post and your key, and you get back short text segments with start times when text exists for that video.
›Get the transcript of this X / Twitter video
└GET /v1/x/transcript?video=https://twitter.com/i/status/1580661436132757506
✓200 OK · 1 transcript
{ "title": "...", "transcript_source": "captions", "language_code": "en", "transcript": [ { "text": "...", "start": 1 }, … ] }
●X / Twitter · response shape

G2
4.8 out of 5
Capterra
4.7 out of 5
Trustpilot
4.6 out of 5
Product Hunt
Twitter transcript API: more details
4.9 out of 5
Google Reviews
4.8 out of 5
Apify Store
4.7 out of 5
AppSumo
4.8 out of 5
GetApp
4.7 out of 5
TrustRadius
4.6 out of 5
Software Advice
4.8 out of 5
SourceForge
4.7 out of 5
Chrome Web Store
4.6 out of 5
Gartner Peer Insights
4.8 out of 5
AlternativeTo
4.7 out of 5
RapidAPI
4.8 out of 5
Quick answer
- You send the link of a public X (formerly Twitter) video post and get back its transcript as JSON.
- Text must exist for the video. Also, the API does not turn sound into text.
- Protected accounts and deleted posts return nothing.
- The official X API is a different tool with its own keys, plans and rules.
- Billing is per transcript.
Endpoint
What data can I extract with X / Twitter Transcript API?
Of course, one endpoint covers it: send a link, get the transcript back as JSON for 1 transcript per successful call.
Try it live
Try X / Twitter Transcript API live
In fact, check the input, press Run and read the response. Besides, without an API key you see the response shape on success, plus a real error response captured from the API. Nothing is billed.
{
"video": "https://twitter.com/i/status/1580661436132757506"
}{
"platform": "x",
"video_id": "...",
"video_url": "...",
"title": "...",
"author": "handle",
"author_name": "...",
"length_seconds": 45,
"published_at": "Twitter date string",
"language_code": "en",
"language_name": "English",
"is_generated": true,
"is_translation": false,
"transcript_source": "captions",
"video_index": 1,
"thumbnail_url": "...",
"available_languages": [
{
"language_code": "en",
"name": "English",
"is_generated": true,
"is_translatable": false
}
],
"transcript": [
{
"text": "...",
"start": 1,
"duration": 1.5
}
],
"text": "...",
"cached": false
}| platform | x |
|---|---|
| video_id | ... |
| video_url | ... |
| title | ... |
| author | handle |
| author_name | ... |
| length_seconds | 45 |
| published_at | Twitter date string |
| language_code | en |
| language_name | English |
| is_generated | true |
| is_translation | false |
| transcript_source | captions |
| video_index | 1 |
| thumbnail_url | ... |
| available_languages | [{"language_code":"en","name":"English","is_generated":true,"is_translatable":false}] |
| transcript | [{"text":"...","start":1,"duration":1.5}] |
| text | ... |
| cached | false |
{
"error": {
"code": "UNAVAILABLE",
"message": "This post is unavailable (deleted, suspended account or not found)",
"platform": "x"
},
"request_id": "4094dd9ab6464902a1c231e3fa176779"
}Twitter transcript API: more details
Overview
What is an X / Twitter transcript API?
Picture Ines, an analyst at a small news desk. Officials, companies and reporters post short video statements on X every day, and Ines needs the exact words, fast. Also, she cannot watch every clip, and she cannot search what she has only seen. In addition, she needs each statement as text she can quote, check and file.
Moreover, this guide explains how an X / Twitter transcript call works, how it differs from the official X tools, and where it stops. Of course, it also covers Spaces, cost, limits and a daily routine.
Want to try it? Get a free TranscriptAPI key and test one public X video link. Furthermore, coverage of each platform can change, so a test is the best check.
In fact, an X / Twitter transcript API is a web service that returns the words spoken in a video on X, the platform formerly called Twitter. Besides, you pass the link, and the service answers with JSON. Likewise, each item holds a piece of text and the time where it starts.
Overall, people still use both names. Also, many search for a "twitter api" or an "x api" when they mean the developer tools of the platform. Others type "api twitter" or "twitterapi", and they often mean the same thing. In addition, this guide uses "X / Twitter" so that both names are covered.
Moreover, the videos live in Twitter video posts, in replies and in quote posts. Of course, some carry Closed captions, which are text that a transcript service can read when they exist as data. Others have none.
Twitter transcript API: where the words come from
Overall, the words come from caption data. In practice, an author can upload captions, or the platform can create them from the audio. When the data exists, a transcript API returns it. When it does not, there is nothing to return.
Besides, this is the main limit. Likewise, a caption-based service reads text that already exists. In fact, it does not listen to the sound.
How it works
How the X / Twitter transcript API works
Overall, the steps are short.
In short, you do not connect an X account and you do not run OAuth. Moreover, the API key is enough.
Check the post first
Before you call the API, open the post signed out. If you can watch the video, the post is public. If you see a sign-in wall, the API cannot read it either. Of course, this one check removes most failed calls.
Input
Twitter transcript API: Input
Overall, every call takes the same kind of input: your API key in a header and the link of the video.
In short, you already have the link: pass it as is.
// GET /v1/x/transcript // header: X-API-Key: YOUR_API_KEY { "video": "https://twitter.com/i/status/1580661436132757506" }
Guide
The official X routes
Of course, many developers search for "twitter api", "x api" and "twitterapi" first. In addition, the official X API is the developer interface of the platform. Moreover, it lets approved apps read and publish posts, search content and manage accounts. Of course, it uses keys, tokens and OAuth, and access depends on the plan you hold.
In practice, plans, limits and prices for the official API have changed more than once. Besides, check the current developer pages for what applies to you before you build on it. Likewise, that is why this guide does not quote its prices or limits.
Twitter transcript API: what this means for you
If you manage your own account or build an app that acts for users, the official tools give you the right control. In fact, a twitter api search call finds posts by keyword, which is a different job from reading the words inside a video. If you only need the text of public videos, a transcript service is a closer match.
Compare
Options compared
| Route | Needs | Best for | Weak spot |
|---|---|---|---|
| Watch and type | A browser | One or two videos | Slow and not repeatable |
| Official X API | Developer account, keys, a plan | Posts, search and account tools | Not built to return video words |
| Caption-based API | API key and a public link | Public videos with captions | Needs captions to exist |
| Speech recognition | Audio file and a model | Any audio with speech | Needs the audio and more compute |
Twitter transcript API: Speech recognition as a fallback
When captions are missing, a Speech-to-text model can listen to the audio. Also, the open Whisper model is released under the MIT license and handles many languages, though accuracy varies. In addition, you need the audio file and the right to use it. TranscriptAPI does not run speech recognition.
Output
What the response contains
Overall, a response is JSON with a list of segments. Of course, each has the text and a start time in seconds. Furthermore, that is enough to rebuild the video as text, link to a moment or build captions.
In practice, the transcript timestamps guide explains the values. If you want subtitle files, the W3C WebVTT specification gives the full rules for VTT, and the SRT, VTT and JSON formats guide compares the formats.
Twitter transcript API: Languages
Of course, language depends on the available caption data. Likewise, many posts have one language. When more exist, you may get Multilingual text, but only what is there.
In fact, the API does not translate. Also, for another language, translate the text after you fetch it.
Output
Output
In practice, the one thing to know: the response is plain JSON with the same field names on every successful call. Moreover, the sample below shows the response shape.
// GET /v1/x/transcript?video=https://twitter.com/i/status/1580661436132757506 // response shape on success · ... marks values that depend on the video { "platform": "x", "video_id": "...", "video_url": "...", "title": "...", "author": "handle", "author_name": "...", "length_seconds": 45, "published_at": "Twitter date string", "language_code": "en", "language_name": "English", "is_generated": true, "is_translation": false, "transcript_source": "captions", "video_index": 1, "thumbnail_url": "...", "available_languages": [ { "language_code": "en", "name": "English", "is_generated": true, "is_translatable": false } ], "transcript": [ { "text": "...", "start": 1, "duration": 1.5 } ], "text": "...", "cached": false }
Twitter transcript API: more details
Overall, a failed call returns {"error": {"code", "message"}, "request_id"} and bills 0 transcripts.
Field reference
| Field | Type | Description |
|---|---|---|
| platform | string | Platform the transcript came from. |
| video_id | string | ID of the video on the platform. |
| video_url | string | Canonical link of the video. |
| title | string | Title of the video. |
| author | string | Name or handle of the account that posted it. |
| author_name | string | Display name of the account. |
| length_seconds | number | Length of the video in seconds. |
| published_at | string | When the video was published. |
| language_code | string | Language code of the transcript. Null when the platform does not report one. |
| language_name | string | Language name of the transcript. Null when not reported. |
| is_generated | boolean | True if the text was generated automatically instead of written by hand. |
| is_translation | boolean | True if the transcript is a translation. |
| transcript_source | string | Where the text came from, for example captions or the platform transcript. |
| video_index | number | Position of the video inside the post. |
| thumbnail_url | string | Thumbnail link of the video. |
| available_languages | array | Other languages offered for this video. Empty when there is only one text. |
| transcript | array | Timed segments, each with text, start and duration in seconds. Empty when the platform gives plain text only. |
| text | string | The full transcript as one string. |
| cached | boolean | True if the result was served from cache. |
Twitter transcript API: more details
Errors
| Code | HTTP | Meaning |
|---|---|---|
| UNAUTHORIZED | 401 | Missing or invalid API key. |
| INVALID_INPUT | 400 | The link or ID is not valid for this platform. |
| NO_TRANSCRIPT | 404 | The video has no text to return. |
| UNAVAILABLE | 404 | The post is deleted, private or not found. |
| PLATFORM_UNAVAILABLE | 503 | The platform is not available right now. |
Guide
Twitter transcript API: Video posts and Spaces
In short, two formats raise the most questions.
Video posts. Besides, a twitter video transcript api call works on a public post with a video. Likewise, an x video transcript is the same thing under the new name. In fact, see the Twitter video transcript API page for the one-video view.
Spaces. X Spaces are live audio rooms. Also, a twitter space transcript api would need text from a recording, and that text does not exist for most Spaces. In addition, do not assume a Space has a transcript. Moreover, test a link, and if it returns nothing, a speech tool is the fallback when you have the audio and the right to use it.
Limits
Limits and edge cases
Of course, plan for these before you build.
- No captions. Furthermore, some videos have none, and the API returns nothing.
- Protected accounts. In practice, only public content is in scope.
- Deleted posts. Besides, a removed post returns an error.
- Quote posts. Likewise, use the link of the post that holds the video.
- Music only. In fact, a video with no speech has an empty transcript.
- Accuracy. Auto-captions can misspell names and terms.
Twitter transcript API: Common mistakes
Overall, use the link of one post, not a profile or a search page. In addition, copy the clean link without tracking text. If a call fails, log the link and the status code so you can check it later.
Guide
Speech, captions and other add-ons
Teams often want more than text. Moreover, here is how the extras fit with a transcript call.
Captions. Of course, a twitter video caption extractor reads existing captions only. If a video has none, it returns nothing.
Speech. Furthermore, a twitter video speech to text job listens to the sound track. In practice, it works on videos with no captions, but it needs the audio file and more compute.
Posts. Besides, an x post video transcript call gives the words of the video, not the text of the post. If you need both, fetch the post text with the official tools and match them by link.
Timing. Likewise, a transcript has start times for each segment. In fact, use them to find the moment a statement begins.
Guide
Twitter transcript API: a daily routine for Ines
Of course, here is a plan that keeps the work small.
Overall, the routine takes under an hour. Moreover, an x / twitter transcript api removes the slowest step, which is watching and typing.
Measuring coverage
In fact, run the call on twenty recent videos. If fourteen return text, coverage is 70 percent. Furthermore, that number tells you whether you need a speech route for the rest.
Guide
Twitter transcript API: Using the data responsibly
Of course, a transcript is public speech turned into text, but the author still owns the video. Besides, use transcripts for research, search and accessibility. Likewise, do not build lists of private details about people. Respect copyright, cite the speaker when you quote and follow platform terms and the laws that apply to you.
Auto-captions can mishear words, so watch the clip before you publish a quote. If you store transcripts, set a retention rule and delete what you no longer need.
Pricing
What the X / Twitter transcript API costs
Usage is measured in transcripts. In fact, pay As You Go costs $3.00 per 1,000 transcripts, Pro costs $20 per month, Ultra costs $50 per month and Max costs $200 per month. Usage is billed proportionally and never rounded up.
Ines handles about 400 videos a month, which costs about a dollar at the pay-as-you-go rate. Also, the pricing table lists every plan.
Scale
Rate limits and bulk work
Of course, every API has limits. If you send many calls at once, you can get an HTTP 429 response. Wait and retry with longer pauses. Moreover, check your dashboard and the pricing page for the limits that apply to you, since they can change.
In short, for a long list, use a queue. Process a small batch, save each result at once and put failures aside for a second pass. Furthermore, keep the post link as the key so you never fetch the same video twice.
Guide
Planning a larger archive
In practice, a larger archive needs a plan before the first call. Decide what you will store, how you will name it and how people will search it. Besides, a simple layout has one row per post, with the link, the author, the date, the language and the full text. Likewise, a second table holds the segments with start times.
In short, for a twitter video to text job at this scale, run a small test of fifty videos first. Also, count the misses, check ten transcripts by hand and fix your cleaning rules. Then run the full job in batches.
In addition, new posts arrive every day, so add a job that fetches only links you have not stored. Moreover, keep a log of failures and review it each month.
Use cases
Practical uses
News and monitoring. Capture exact words from public statements.
Research. Of course, track how topics appear across many accounts.
Brand tracking. Furthermore, check what people say in videos about your product.
Accessibility. Offer text for people who cannot listen.
Records. In practice, keep a text record of public announcements.
Besides, more patterns are in the use cases section.
Workflow
Working with the text
Raw segments are short and may lack punctuation. Join them with a space, then break the text where the start times show a pause. Likewise, store the link, the author, the date and the language beside the text.
Overall, for analysis, count key phrases and compare them across days. Also, for summaries, send one transcript at a time to a language model. In addition, for search, keep the start time of each chunk so a result can point back to the moment.
Guide
Quality checks before you trust a transcript
Of course, a transcript is useful only if it is right. Furthermore, these checks catch most errors.
- Read the first minute. In practice, check names, places and numbers.
- Search for a key term. Besides, fix odd spellings with a find and replace.
- Compare with the video. Play the moment of any quote you plan to publish.
- Check the length. Likewise, a two-minute video that yields ten words probably had poor captions.
Of course, add an automatic check that flags transcripts with very few words per minute, and review those by hand.
Related
Related searches, answered
Overall, here is how the common searches line up.
API names. In addition, a twitter api, an x api, an api twitter query and a twitterapi search usually mean the official developer tools. Moreover, an x / twitter transcript api serves a narrower job, which is video text.
Video text. Of course, a twitter video transcript api, an x video transcript, a twitter video to text job and a twitter video caption extractor aim at the same output. Furthermore, a twitter video speech to text service works from the audio.
Spaces and posts. In practice, a twitter space transcript api depends on whether text exists for the recording. Besides, an x post video transcript call covers the video in one post.
Search. Likewise, a twitter api search call finds posts. In fact, it does not return the words inside a video.
Glossary
Key terms for this guide
| Term | What it means here |
|---|---|
| X (formerly Twitter) | The social platform, renamed from Twitter |
| Twitter API | The older name of the official developer API |
| X Spaces | Live audio rooms on X |
| Twitter video posts | Posts that carry an uploaded video |
| Closed captions | Timed text of the speech in a video |
| Speech-to-text | Software that turns audio into text |
| REST API | A web interface you call with HTTP requests |
| OAuth | A standard that lets an app act for a user |
| JSON | The structured format of the response |
| Multilingual | More than one language, when tracks exist |
Summary
Final Word
Of course, an X / Twitter transcript API gives you the words of a public video from one link. In addition, it reads existing captions, so it is quick and cheap, and it stops where captions are missing or accounts are protected.
Overall, test it on a few videos. Create a free TranscriptAPI key, send a link and read the JSON. Then add a queue for volume. Likewise, see the pricing page for plans and the service list for other platforms.
FAQ
Frequently asked questions
Does the X / Twitter transcript API need my X login?
Does it work on protected accounts?
Is the official X API an alternative?
What if the video has no captions?
Does it work on Spaces?
How much does it cost?
Can I get subtitle files?
Ship transcription today, not next quarter.
In fact, no waitlist, no sales call required to start. Also, get a key, make your first call, see structured JSON back in seconds.
Get your free API key →