Loading TranscribeYouTube...
Loading TranscribeYouTube...
One POST request, JSON back. No key, no sign-up, no card — paste the cURL below and it works right now. Behind it is an extraction engine that falls back through 11 separate strategies before it gives up.
It is the same endpoint that powers the web tool, rate limited per IP for fair use: 5 requests a minute, 30 an hour, 100 a day. It reads the caption track YouTube already has for a video; it does not transcribe audio.
POST /api/transcript
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | Full YouTube video URL |
| lang | string | No | Language code (default: "en", use "auto" for any) |
curl -X POST https://transcribeyoutube.com/api/transcript \
-H "Content-Type: application/json" \
-d '{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ","lang":"en"}'
{
"ok": true,
"videoId": "dQw4w9WgXcQ",
"title": "Video Title",
"channel": "Channel Name",
"thumbnail": "https://i.ytimg.com/vi/.../hqdefault.jpg",
"transcript": [
{ "text": "Hello everyone", "start": 0, "dur": 3 },
{ "text": "Welcome to the tutorial", "start": 3, "dur": 4 }
],
"languages": [],
"selectedLang": "en",
"isAutoGenerated": false,
"error": null,
"message": "Successfully fetched transcript."
}
Two fields are worth reading carefully. selectedLang is the language you actually got, which is not always the one you asked for — a video without your requested language falls back to its own rather than failing, and this field tells you that happened. languages lists the caption tracks the video offers, and is frequently an empty array: the extraction path that serves most requests returns the captions without enumerating the alternatives. Treat it as a bonus, never as a promise that a video has only one track.
{
"ok": false,
"error": "NO_CAPTIONS",
"message": "No captions are available for this video.",
"transcript": []
}
Three things every client has to handle, whatever the language: a 429 with retryAfter in the body when you are over the per-IP limit; a 200 with "ok": false and an error code when the video could not be served; and the difference between codes that are final (NO_CAPTIONS, INVALID_VIDEO_ID) and the one that deserves a single retry (EXTRACTION_FAILED). Each example below does all three.
pip install requests is the only dependency. The retry waits a full minute on purpose: a faster loop is exactly the behaviour that gets an IP blocked, and it counts against your 5 a minute anyway.
import time
import requests
API = "https://transcribeyoutube.com/api/transcript"
# Final: retrying will not change the answer.
FINAL = {"NO_CAPTIONS", "INVALID_VIDEO_ID", "INVALID_URL", "URL_TOO_LONG",
"INVALID_LANG", "INVALID_LANG_FORMAT", "PAYLOAD_TOO_LARGE"}
# Worth one more attempt after a pause.
RETRIABLE = {"EXTRACTION_FAILED", "AUTOMATED_ACCESS", "BACKEND_OFFLINE", "FETCH_ERROR"}
def get_transcript(url, lang="en", retries=1):
for attempt in range(retries + 1):
r = requests.post(API, json={"url": url, "lang": lang}, timeout=30)
data = r.json()
if r.status_code == 429:
# RATE_LIMITED: over 5/min, 30/hr or 100/day for this IP.
# The body says how long to wait, in seconds.
wait = int(data.get("retryAfter", 60))
print(f"Rate limited, sleeping {wait}s")
time.sleep(wait)
continue
if data.get("ok"):
return data # title, channel, transcript[], selectedLang, isAutoGenerated
code = data.get("error")
if code in FINAL or attempt == retries:
raise RuntimeError(f"{code}: {data.get('message')}")
if code in RETRIABLE:
time.sleep(60) # one retry a minute later often works
continue
raise RuntimeError(f"{code}: {data.get('message')}")
raise RuntimeError("Gave up after repeated rate limiting")
result = get_transcript("https://www.youtube.com/watch?v=jNQXAC9IVRw")
print(result["title"], "-", result["channel"])
for seg in result["transcript"][:5]:
print(f'{seg["start"]:7.2f}s {seg["text"]}')
# Join into plain text:
text = " ".join(seg["text"] for seg in result["transcript"])Works unchanged in Node 18 and later, Deno, Bun and edge runtimes. One honest caveat for browsers: the endpoint's CORS allow-list is transcribeyoutube.com only, so a fetch from a page on another domain will be blocked by the browser before it reaches us. Call it from your own server or serverless function and pass the result to your front end.
// Node 18+, Deno, Bun, Cloudflare Workers: fetch is built in.
const API = "https://transcribeyoutube.com/api/transcript";
async function getTranscript(url, lang = "en") {
const res = await fetch(API, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ url, lang }),
});
const data = await res.json();
if (res.status === 429) {
// RATE_LIMITED. data.retryAfter is in seconds.
throw new Error("Rate limited, retry after " + data.retryAfter + "s");
}
if (!data.ok) {
// data.error is one of the codes listed below.
// NO_CAPTIONS and INVALID_VIDEO_ID are final; EXTRACTION_FAILED is worth one retry.
throw new Error(data.error + ": " + data.message);
}
return data;
}
const t = await getTranscript("https://youtu.be/jNQXAC9IVRw");
console.log(t.title, "by", t.channel, "(" + t.selectedLang + ")");
console.log(t.transcript.map((s) => s.text).join(" "));No integration module exists for any of them, and none is needed. Use the generic HTTP node, which each platform ships: HTTP Request in n8n, HTTP → Make a request in Make, Webhooks by Zapier → Custom Request in Zapier. Set it up as:
| Method | POST |
| URL | https://transcribeyoutube.com/api/transcript |
| Header | Content-Type: application/json |
| Body (JSON) | {"url": "{{ $json.videoUrl }}", "lang": "en"} |
| Authentication | None |
Replace the {{ $json.videoUrl }} expression with whatever your platform uses to reference the previous step. Downstream, read ok first and branch on it; the transcript text is the text field of each item in the transcript array, so most workflows add a step that joins those with a space. Keep any loop under 5 videos a minute or the node will start receiving 429s.
Whatever you build, plan for failures. Success rate is roughly 70–80%: YouTube blocks datacenter IPs, our fallbacks recover some of that and not all of it, and no one who tells you otherwise is measuring honestly. Log the error code on every miss so you can tell a captionless video from a blocked request.
If you searched for a YouTube transcript API you probably also found youtube-transcript-api, the Python library. It is a good library and for a script on your own laptop it is probably the better choice. The two are different kinds of thing, so here is where each one wins.
| youtube-transcript-api (library) | This endpoint | |
|---|---|---|
| Runs where | On your machine or server, in your Python process | On our side; you make one HTTP call from any language |
| Install needed | pip install youtube-transcript-api | Nothing. cURL or any HTTP client |
| API key | None | None |
| Proxy management | Your problem. The library is blocked from most data-centre IPs (AWS, GCP, Azure); its README recommends a paid residential proxy | Handled. Requests go out from a residential connection, which is why it works from your cloud function when the library does not |
| Rate limits | None of its own; YouTube’s blocks are the limit | 5 a minute, 30 an hour, 100 a day per IP |
| Success rate | Depends on your IP: high on a home connection, low to zero on a cloud host | Roughly 70–80%, measured across all callers |
| Cost | Free (MIT) | Free, no card |
| Languages | Whatever caption tracks the video has | Whatever caption tracks the video has; pass lang or auto |
| Tells NO_CAPTIONS from a block | Not reliably; a blocked request can surface as TranscriptsDisabled | Yes: NO_CAPTIONS only when the track list came back empty, EXTRACTION_FAILED otherwise |
| Guarantee | None | None. No SLA |
The short version: use the library when your code runs on a residential IP and you want no network dependency on us. Use this endpoint when your code runs in a container, a cloud function or an agent host, when you are not writing Python, or when you want the error codes to tell you the truth about why a video failed.
INVALID_URLHTTP 400No URL was provided in the request body.
INVALID_VIDEO_IDHTTP 400 / 200Either the URL contained no readable video ID (400), or YouTube says there is no such video — deleted, made private, or mistyped (200). Never reported as NO_CAPTIONS: a video that does not exist does not have captions to be missing.
URL_TOO_LONGHTTP 400The url field exceeded 500 characters.
INVALID_LANGHTTP 400The lang field was not a string.
INVALID_LANG_FORMATHTTP 400lang must look like "en", "en-GB", or "auto".
PAYLOAD_TOO_LARGEHTTP 413The request body exceeded 10 KB.
RATE_LIMITEDHTTP 429Over 5 requests a minute, 30 an hour or 100 a day, or the free API is at its hourly capacity. The body carries retryAfter, in seconds — back off for that long.
NO_CAPTIONSHTTP 200The video genuinely has no caption tracks. We only return this when the track list came back empty — never as a guess.
EXTRACTION_FAILEDHTTP 200We could not retrieve the captions. The video may have none, or YouTube may have blocked the request. This is deliberately NOT reported as NO_CAPTIONS, because the two are different problems and only one is worth retrying.
AUTOMATED_ACCESSHTTP 200YouTube detected automated access. Retry later.
BACKEND_OFFLINEHTTP 200The extraction backend was unreachable. Retry shortly.
FETCH_ERRORHTTP 200A network or parsing error occurred.
INTERNAL_ERRORHTTP 500Unexpected server error.
This API is provided for personal and educational use. Rate limits apply to prevent abuse and protect service availability. If you need higher limits, please contact us.
5/min · 30/hour · 100/daySame video cached 6h, not countedJSON onlyRestricted to transcribeyoutube.com500 charactersIntegrate transcript fetching into your own apps, dashboards, or content pipelines with simple HTTP calls.
Collect transcript data for NLP research, sentiment analysis, or content summarization projects.
Automate subtitle generation for video editing workflows, blog post creation, or accessibility compliance.
The transcript endpoint above is free and gives you the words. This one is paid and gives you what an AI makes of them: send a YouTube link and get the summary, chapter markers, flashcards, a quiz, or the answer to a question, as JSON, in one request. It runs on the same Pro key and credits as the website and the extension: no separate plan, no subscription, no account.
custom task. Packs start at $2 (₹149 in India) for 100 credits; the Month pack is 300 credits for $5."charged": 0.curl -X POST https://transcribeyoutube.com/api/v1/ai \
-H "Authorization: Bearer YOUR_PRO_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://youtu.be/R6MlUcmOul8","task":"summary"}'The reply:
{
"ok": true,
"task": "summary",
"result": "TL;DR: ...\n\nKey points:\n- ...",
"truncated": false,
"video": { "id": "R6MlUcmOul8", "title": "Tears of Steel", "channel": "Blender Studio",
"lang": "en", "auto_generated": true },
"credits": { "used": 1, "left": 99, "total": 100, "ends_at": "2026-11-25T10:00:00.000Z" },
"charged": 1,
"ms": 8500
}| Field | What it is |
|---|---|
| url | A YouTube link or an 11-character video id. We fetch its captions. Send this or transcript. |
| transcript | Your own text instead of a link: a string, or a list of { "text", "start" }. Use it when you already have the transcript, or for text that is not from YouTube at all. It always works, because nothing has to be fetched. |
| task | summary: TL;DR and 5 to 8 key points; chapters: chapter markers with times, ready for a video description; ask: an answer to your question, from the transcript only; flashcards: 8 question-and-answer cards; the reply also carries them as a list in "cards"; quiz: 6 multiple-choice questions with the answer and why; also as a list in "questions"; custom: your own instruction (study notes, a quiz, a blog outline, a thread); uses 1 extra credit. Default summary. |
| question | For ask: the question, up to 500 characters. |
| instruction | For custom: what to write, up to 1,200 characters. |
| lang | Optional caption language for url, such as en or hi. Default: the video's own. |
| include_transcript | Optional, true: the reply also carries the transcript lines we fetched, at no extra cost. |
import requests
r = requests.post(
"https://transcribeyoutube.com/api/v1/ai",
headers={"Authorization": "Bearer YOUR_PRO_KEY"},
json={"url": "https://youtu.be/R6MlUcmOul8", "task": "ask",
"question": "Why did Thom and Celia break up?"},
timeout=40,
)
data = r.json()
if data["ok"]:
print(data["result"], "| credits left:", data["credits"]["left"])
elif data.get("retry"):
print("Try again later:", data["message"]) # nothing was charged
else:
print("Not possible:", data["error"], data["message"])curl https://transcribeyoutube.com/api/v1/ai -H "Authorization: Bearer YOUR_PRO_KEY"Every refusal is JSON with ok: false, an error code, a plain message, charged: 0, and retry: true when trying again can help.
| Status | Code | Meaning |
|---|---|---|
| 401 | NO_KEY, BAD_KEY | No key was sent, or the key is wrong, over, or refunded. |
| 400 | BAD_REQUEST, BAD_TASK, MISSING_FIELD, NO_INPUT | The request is not one the API understands. The message says which part. |
| 402 | NO_CREDITS | The key has fewer credits than this answer needs. The reply says how many are needed and how many are left. |
| 422 | NO_CAPTIONS, VIDEO_UNAVAILABLE | The video has no captions, or cannot be found. Trying again will not help. |
| 429 | RATE_LIMITED | Too many requests, or too many transcripts fetched for this key. Wait for the seconds in retry_after. |
| 502 | TRANSCRIPT_UNAVAILABLE | YouTube did not give us the transcript this time. Try again in a minute, or send the transcript text yourself. |
| 502 / 504 | AI_ERROR, AI_TIMEOUT, TIMEOUT | The AI did not answer in time. The credits were given back. Try again. |
| 503 | TRY_AGAIN, AI_UNAVAILABLE, API_OFF | Something on our side is not ready. Nothing was used. Try again shortly. |
transcript.If you are wiring transcripts into Claude, Cursor, Zed, Continue or your own agent, there is an MCP server. Free, no API key, no account, and zero dependencies — one file of standard-library Node you can read in two minutes.
{
"mcpServers": {
"transcribeyoutube": {
"command": "npx",
"args": ["-y", "transcribeyoutube-mcp"]
}
}
}Two tools are free: get_youtube_transcript takes a URL or a bare video ID and returns the text with the title, channel, language and whether the captions were auto-generated, whole or between two times; search_youtube_transcript returns only the lines that contain your words, each with its time and a link to that moment. A two-hour video is about 30,000 tokens of transcript, so search first and read the part you need.
Start it with a Pro key in TRANSCRIBEYOUTUBE_API_KEY and it also lists youtube_video_ai: a summary, chapter markers, an answer to a question, flashcards or a quiz, made on our server and returned in a few hundred tokens. Usually 1 credit an answer; nothing is charged when a video has no captions or the answer fails.
Most agents that read YouTube wrap a library that runs on your own machine, and YouTube blocks datacenter IPs — so those agents work locally and fail once deployed. This calls the hosted endpoint instead. It is one file with no dependencies, MIT licensed.
Yes. Send a POST to https://transcribeyoutube.com/api/transcript with a JSON body of {"url": "<YouTube URL>"} and you get JSON back: the video title, channel, and a transcript array of {text, start, dur} segments. There is no API key, no sign-up and no card. It is rate limited per IP to 5 requests a minute, 30 an hour and 100 a day, and repeat requests for the same video are served from a six-hour cache without counting.
No. The endpoint is keyless. The only header you need is Content-Type: application/json. Limits are enforced per IP address rather than per key, so if you need more than 100 lookups a day, contact us through the form on this page instead of rotating addresses.
You get HTTP 200 with "ok": false and "error": "NO_CAPTIONS". We only return this code when YouTube's caption track list came back empty, so it is final: retrying will not help, because there is nothing to fetch. The tool reads existing caption tracks; it does not transcribe audio.
It means we could not retrieve the captions, and we are not sure why. The video may have none, or YouTube may have blocked the request on that attempt. It comes back as HTTP 200 with "ok": false. Unlike NO_CAPTIONS it is worth exactly one retry after about a minute; if it fails twice, treat it as final.
You can, with open eyes. It is free, there is no SLA, the per-IP caps are 5 a minute, 30 an hour and 100 a day, and the success rate is roughly 70-80% because YouTube blocks some requests. For a hobby project, an internal tool or an agent that fetches a handful of videos it works well. If you need higher limits or a guarantee, tell us what you are building and we will talk.
Yes, and it is the paid part. POST to https://transcribeyoutube.com/api/v1/ai with "Authorization: Bearer <Pro key>" and a JSON body of {"url": "<YouTube URL>", "task": "summary"}, and the reply is JSON with the summary, the video's title and channel, and the credits used and left. The other tasks are "chapters", "ask" (with a question) and "custom" (with your own instruction). It uses the same Pro key and credits as the website: 1 credit for an answer about a video of up to about 25 minutes.
It runs on TranscribeYouTube Pro credits, which are bought once as a pack and never renew by themselves; there is no separate API plan and no subscription. An answer costs 1 credit for a video of up to about 25 minutes, one more for each further 25 minutes, and one extra for the "custom" task. Nothing is charged when the transcript cannot be fetched, the video has no captions, or the AI fails: every refusal says "charged": 0.
Yes. transcribeyoutube-mcp is an MCP server for Claude Desktop, Claude Code, Cursor, Zed, Continue and any other MCP client. Add {"command": "npx", "args": ["-y", "transcribeyoutube-mcp"]} to your mcpServers config. Two tools are free and need no key: get_youtube_transcript takes a URL or bare video ID, an optional language code, an optional timestamps flag and an optional start and end time, and returns the title, channel, language, whether the captions were auto-generated, and the text; search_youtube_transcript returns only the lines that contain your words, each with its time and a link to that moment. Started with a Pro key in TRANSCRIBEYOUTUBE_API_KEY it also lists youtube_video_ai (summary, chapters, an answer to a question, flashcards, a quiz) and a credits check. It is one file of standard-library Node with zero dependencies, MIT licensed, and it calls this hosted endpoint rather than wrapping a library on your machine.
The endpoint is free and keyless today, and there is nothing to wait for. If you are building on it, tell us — it is how we decide what to work on, and how you hear first if anything changes.