One video URL in. Caption text out.
Send a public YouTube video URL. The call sets the requested language to English and returns the caption text as one string, a language code, and timed segments. It costs 5 credits per video. YouTube has 26 live endpoints on an API that covers 32 platforms.
Use via MCP: the MCP server gives Claude, Cursor and any MCP client this endpoint as a tool.
Schema of the normalizer fields. Not a captured response.
{
"data": {
"text": "string",
"language": "string|null",
"segments": "object[]|null"
},
"request_id": "string"
}The call
JavaScript and Python retry a 429 on their own. The response has no Retry-After header, so the wait doubles from 2 seconds across five attempts, the same schedule as rate limits.
Status codes on this path: 200, 400, 401, 402, 404, 429. Failed calls are not charged.
const url = new URL("https://api.scrapersocial.com/v1/youtube/transcript");
url.searchParams.set("url", "https://www.youtube.com/watch?v=dQw4w9WgXcQ");
async function withBackoff(fn) {
for (let attempt = 0; attempt < 5; attempt++) {
const resp = await fn();
if (resp.status !== 429) return resp;
const wait = 2 ** attempt * 2000 + Math.random() * 500;
await new Promise((r) => setTimeout(r, wait));
}
throw new Error("rate limit retries exhausted");
}
const resp = await withBackoff(() =>
fetch(url, {
headers: { Authorization: "Bearer sk_live_..." },
}),
);
if (!resp.ok) throw new Error(`API error ${resp.status}`);
const { data, request_id } = await resp.json();
console.log(request_id, data); import random
import time
import httpx
def get_with_backoff(url, params, headers):
for attempt in range(5):
resp = httpx.get(url, params=params, headers=headers, timeout=120)
if resp.status_code != 429:
return resp
time.sleep((2 ** attempt) * 2 + random.random() * 0.5)
raise RuntimeError("rate limit retries exhausted")
resp = get_with_backoff(
"https://api.scrapersocial.com/v1/youtube/transcript",
params={
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
},
headers={"Authorization": "Bearer sk_live_..."},
)
resp.raise_for_status()
print(resp.json()["data"]) The payload
One object, not a list. text is the cues joined with a single space. language is a string or null, taken from the row. segments is an array of { start, duration, text } when the row is a list of cues, and null when the row is a flat text string instead. A row with no cues and no flat text normalizes to nothing, and the API answers 404 not_found. That 404 is not charged.
The request asks for English. language is still null when the row does not report a language, so do not treat a null as a failed request. start and duration are seconds. There is no end field on this endpoint. A cue with no text is dropped. If every cue is dropped, the call is the same 404 as a video with no captions.
The cache class is immutable: a stored response is kept for 100 years. This endpoint does not write to the transcript corpus, because its capability is not transcript. A cache hit still costs 5 credits. fresh=true skips the cache at the same price.
Cues as { start, duration, text }, seconds. Null when the row is flat text rather than a cue list.
Pricing
One video is 5 credits — about 2.5¢ on the monthly plan. $5 covers roughly 200 videos. Failed calls are never charged.
1 video × 5 credits = 5 credits. That is 2.5¢ on Monthly and 2.3¢ on Annual. Full pricing.
Estimate only, on a full-year basis. 5 credits per returned video. Monthly: $5 per 1,000 credits with $5/1,000 top-ups. Annual: $54 per 12,000 credits with $4.50/1,000 top-ups. We show whichever plan is cheaper for your annual volume, divided by 12. Failed calls are never charged; cache hits cost the same as fresh calls.
On signup, no card, up to 5 items a call. Your key is on screen immediately.
Get your free API keyRate limits
Limits count requests, not credits. A 429 means wait and retry. There is no Retry-After header. Rate limits.
Entry price, side by side
Credits are not equivalent units across vendors — each meters differently. Price your own workload on both before deciding on entry price alone. At high volume, several of these are cheaper per credit than we are.
Engineering notes
We document exactly how every endpoint behaves — nulls, caching, billing — so what you ship on day one is still running in month six. No surprises, no support tickets.
The call always asks for English. The language field is copied from the row that comes back, and that row often does not echo the requested language. A null language is a missing label, not evidence that the text is in another language and not evidence that the call failed.
There is no language query parameter on this path. If you need a specific track list before you pull text, call the subtitles endpoint and read the track languages there. Those track URLs expire, and they are not a substitute for the text this endpoint returns.
When the row is a list of cues, each segment has start (seconds), duration (seconds) and text. There is no end timestamp. Compute end as start plus duration if your player wants both edges.
When the row is a single text string instead of cues, segments is null and text is that string. Code for null. A cue whose text is empty is dropped before the array is built. If that leaves no cues and there is no flat string either, the normalizer returns nothing and the API responds 404.
Other platforms store a transcript and serve later calls from that corpus. This endpoint does not: its capability is not transcript, so the corpus branch never runs. The response cache class is immutable, which keeps the row for 100 years. A hit still costs 5 credits. fresh=true skips that cache and costs the same 5 credits.
A 404 is thrown before anything is written to the cache, so a miss is not stored. Retrying later runs the call again. Store the text on your side if you will reuse a successful response.
The input is a url query parameter. youtube.com and youtu.be video URLs are accepted, including watch, shorts, embed, and live paths, and they are stored under one watch URL. There is no batch body. Send independent calls concurrently and stay inside the plan's request rate.
When the normalizer returns no row, the API answers 404 not_found and does not charge the call. The free trial does not change that.
Questions
No. The input is a public video URL and an API key. The call requests English and returns the caption text, a language code that may be null, and timed segments. When the normalizer returns no row, the API answers 404 not_found and does not charge. One call is 5 credits.
The plan's request rate was exceeded. The error code is rate_limited, and the response does not include a Retry-After header, so the client waits and retries on its own. The limits are 20 requests a minute on the free trial, 200 on the monthly plan, and 300 on the annual plan.
One video is 5 credits, about $0.03 on the monthly plan and $0.02 on the annual plan. Signup includes 25 free credits and no card. A cache hit costs the same 5 credits as a miss. A 404, a 401 or a 402 is not charged. The captions endpoint is 3 credits per video and the subtitles endpoint is 1 credit per video. Failed calls never move the balance.
Yes, when the row is a list of cues. Each segment has start and duration in seconds, plus the cue text. There is no end field; add duration to start if you need the other edge. When the row is flat text instead of cues, segments is null and only the joined text comes back. The captions endpoint is the one that returns start and end on every cue, and it does not include a language field. Code for a null segments array either way.
The call returns 404 not_found and is not charged. The normalizer returns no row when there are no cues and no flat text, and a missing row on this endpoint is that 404. You do not get an empty string with a 200. The 404 is not stored, so a later retry runs the call again at the same 5-credit price if a row comes back. This path reads caption cues. It does not run a separate speech-recognition step.
Transcript costs 5 credits and returns joined text, a language that may be null, and segments of start, duration and text. Captions costs 3 credits and returns cues with start and end, a cue count and the joined text, with no language field. Subtitles costs 1 credit and returns the track list only: language, name and a short-lived download link per track, plus translation languages, and no transcript text. Use transcript for the words, captions for subtitle files, and subtitles to see which tracks exist.
Next
Same data, other platforms
25 trial credits on signup — no card, key on screen immediately.