Skip to content

Structured X (Twitter) data: send urls. Single lookup, 2 credits per successful call.

GET · POST2 credits / successful callSingle lookupLong-running
GEThttps://api.scrapier.io/api/v2/twitter-transcript/Open in Playground

Call GET /api/v2/twitter-transcript/ with urls. The results are in data.transcript. 7 optional parameters refine the call (see Parameters).

Terminal window
curl -G "https://api.scrapier.io/api/v2/twitter-transcript/" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "urls=https://x.com/MrBeast/status/2096285173788840001" \
--max-time 210
NameTypeRequiredDefaultDescription
X-API-Key headerstringyes—Your API key from the dashboard.
urlsstringyese.g. https://x.com/MrBeast/status/2096285173788840001Tweet/X post URL. Lookup endpoint -- next_cursor null.
translate_to_englishbooleannofalseTranslate transcript to English.
model_sizestringnosmallfaster-whisper model size.
tinybasesmallmediumlarge-v3
beam_sizeintegerno5Beam search width (1-10).
languagestringno—ISO language code to force (default: auto-detect).
vad_filterbooleannotrueDrop non-speech audio.
max_duration_secondsintegerno900Longer videos fail as a record.
Advanced
NameTypeDefaultDescription
use_proxybooleantrueRoute the request through Scrapier's residential proxy pool. Default: true. Leave as is unless support tells you otherwise.
raw_databooleanfalseWhen true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under raw_responses, in place of the formatted items. When false (default) you get the formatted output. Pagination (cursor / next_cursor) works the same in both modes.
{
"success": true,
"data": {
"urls": "https://x.com/MrBeast/status/2096285173788840001",
"transcript": {
"input_url": "https://x.com/MrBeast/status/2096285173788840001",
"transcript": "We're in the middle of the world's deadliest show...",
"language": "en",
"status_id": "2096285173788840001",
"video_url": "https://video.twimg.com/....mp4",
"duration": 31.2,
"status": "success"
},
"next_cursor": null
}
}

Sample from the live catalog; arrays trimmed to 3 items. Results are in data.transcript.

FieldTypeExampleDescription
urlsstringhttps://x.com/MrBeast/status/2096285173788840001—
transcriptobject{…}The results.
next_cursornullnullPass back as cursor for the next page. null on the last page.
transcript.input_urlstringhttps://x.com/MrBeast/status/2096285173788840001—
transcript.transcriptstringWe're in the middle of the world's deadliest …—
transcript.languagestringen—
transcript.status_idstring2096285173788840001—
transcript.video_urlstringhttps://video.twimg.com/....mp4—
transcript.durationnumber31.2—
transcript.statusstringsuccess—

Returns everything in one call; next_cursor is always null.

Failed calls are free. Branch on the HTTP status and read the message from error (or detail). Full details in Errors.

StatusMeaningRetry?Charged?
400Bad or missing input.No — fix the paramsNo
401 / 403Missing, invalid or revoked API key.No — fix the keyNo
402Out of credits (body has balance).No — top upNo
404Unknown endpoint slug.No — check the slugNo
429 / 503Busy or throttled.Yes — after Retry-AfterNo
5xxTarget site or upstream failure, or timeout.Yes — with backoffNo
  • This endpoint can take several minutes. Set your client timeout to at least 210 seconds.
  • Twitter/X Posts — Structured X (Twitter) data: send usernames. Cursor-paginated, 1 credit per successful call.
  • Twitter/X Profile Tweets — Structured X (Twitter) data: send usernames. Cursor-paginated, 1 credit per successful call.