Guide, measured 2026-11-22
How to scrape YouTube transcripts, and why the same request works from one address and not the next
YouTube serves the captions of a public video to any visitor, with or without an account. Reading them at scale is another matter. Two of the three routes we tried answer nothing to a client without an account, and the third answers from some addresses and asks others to sign in. Here is what YouTube serves logged out, route by route, what gets refused and how to work with that without ever signing in, the formats a transcript can take, and the limits, with our measurements.
What YouTube serves a visitor without an account
For a public or unlisted video, YouTube serves any visitor the video's details (title, channel, length, views, description, keywords) and its caption tracks. A track is either uploaded by the channel or auto-generated by YouTube, and a video can have several, one per language. Auto-generated captions cover most videos with speech, which is why a transcript exists for videos whose channel never wrote one.
Three kinds of video stay behind a sign-in: private videos, members-only videos, and age-restricted ones, where YouTube asks to sign in to confirm age. A reader that never signs in gets nothing from them, and should say so per video.
And some videos have no captions at all. On 1,000 videos of ten large channels, 117 had no caption track (run LjcuW8chum9dbO00f, 2026-11-22): about 1 video in 9. No request changes that; only transcribing the audio would, which is a different tool.
Three routes to the captions, and the one that answers
We tried three routes on four videos from one residential connection on 2026-11-22, with no account and no cookie, then the translation of a track.
| Route | What a logged-out request gets |
|---|---|
| The watch page's caption track addresses (/api/timedtext), as the website | HTTP 200 with an empty body, on every video and format. |
| youtubei/v1/get_transcript, with the watch page's own parameters | HTTP 400, "Precondition check failed". |
| youtubei/v1/player asked as the Android app, then the track address it returns, in the json3 format | Captions on 4 of 4 videos, with the video's details: title, channel, length, views, description, keywords. |
| The same track asked for YouTube's machine translation (tlang=fr) | HTTP 429 and Google's "Sorry..." page: on 4 of 4 from the datacenter probe and 20 of 20 through a residential proxy. |
The first route is the direct one: read the watch page, find the caption track addresses in it, fetch one. The addresses are there, and they now answer an empty body: they need a token only YouTube's own player page computes. The second is the website's transcript request, sent with the watch page's own parameters; it answered "Precondition check failed".
The third answers. YouTube's player interface, asked as its Android app, returns the video's details and its caption tracks, and the address each track carries serves the captions:
POST https://www.youtube.com/youtubei/v1/player
asked as the Android app (context.client, User-Agent), no cookie, no account
-> about 300 KB of JSON:
the video's details: title, channel, length, views, description, keywords
its caption tracks: language, uploaded or auto-generated, and an address each
GET the address of the track picked, with fmt=json3
-> the captions: text and timings
POST https://www.youtube.com/youtubei/v1/player
asked as the website
-> about 12 KB: playback is refused ("The page needs to be reloaded"),
but the answer carries the publish date, category, like count,
unlisted, Shorts or not, and the channel's handleThe second player request is optional. The website client is refused playback, but its answer still carries the public details the Android answer lacks: publish date, category, like count, unlisted or not, Shorts or not, and the channel's handle. It weighs 12 KB against the Android answer's 300 KB. On rare videos YouTube does not send them, and those fields stay empty.
Said plainly: "asked as the Android app" means the request names that client in its body and its user agent. A program that sends it is neither YouTube's app nor its website. The Android answer also lists the video's stream addresses; our Actor does not read them and never requests video or audio.
Translation is refused
A caption track can be asked for in another language, translated by YouTube. Logged out, that request was refused every time we sent it: HTTP 429 and Google's "Sorry..." page, on 4 of 4 from datacenter addresses and 20 of 20 through a residential proxy. So a logged-out reader gets the languages a video has captions in, and no others. The useful part is knowing which those are: each track states its language and whether it is uploaded or auto-generated, so a reader can list them, take your preferred language when it exists, and tell you when it fell back to the video's own.
Why addresses get refused
From one home connection, the route above answered on 4 of 4 videos. From a cloud, it answers from some addresses. YouTube answers the others with "Sign in to confirm you're not a bot". We measured it with a private probe on Apify, never published, on 2026-11-22:
| Run | Result |
|---|---|
| 100 videos, datacenter, 8 fixed sessions (run opmYOV8Dnnh4JXNED) | 30 with captions, 70 "Sign in to confirm you're not a bot": 4 sessions answered every video, 4 answered none. |
| 240 videos, datacenter, 40 fixed sessions (run TZutDvasVl3gzxCwf) | 9 sessions answered every video, 28 answered none, 3 were mixed. |
| 100 videos, residential (US), 8 sessions (run rdKlRvtxu3scFsCaV) | 93 with captions; one session got HTTP 429 on 7 caption files. |
| 1,000 videos of ten channels, datacenter, a refused session left and the video asked from another (run LjcuW8chum9dbO00f) | 882 with captions, 117 with no caption track, 1 age-restricted: every video that has captions returned them. 94 sessions opened, 88 left; 958 videos answered by the first address tried, all by the eighth; 345 seconds at 16 at a time. |
Three readings, which decide how a reader should be built:
- The refusal is per address, not per video and not per client. With fixed sessions, nearly every address answered every video or none. Asking as four other clients from a refused address won 2 of 70.
- An address that answers can stop. Sessions were left after 1 to 55 videos served, so a reader has to keep opening new ones.
- About one datacenter address in four answered, measured once. Through a residential proxy, 93 of 100 videos returned captions, but each video moves about 0.35 MB uncompressed, because the Android answer lists the video's stream formats. Our Actor uses datacenter addresses only.
Handling a refusal without signing in
There are two ways to answer "Sign in to confirm you're not a bot". One is to sign in, or to send the cookies of an account, or to compute the token the player page would compute. We do none of these. The other is to take the refusal for what it is, a judgement on the address, and ask from another address.
That is what our Actor does. It keeps a pool of sessions on Apify's datacenter proxy. An address that YouTube asks to sign in, or that answers 403 or 429, is left, and the request is asked from another, up to 12 per request. In the 1,000-video run above, 958 videos were answered by the first address tried and all by the eighth. A video that every address refused comes back as a free row with status failed; and after 15 videos in a row that every address refused, the run stops and says so instead of going on failing.
No challenge is solved and no token is forged. The cost of that choice is at the start of a run: a single video takes 6 to 14 requests, because several new addresses are asked at once.
Channels, playlists and search
A transcript reader is more useful when it can be given a channel than a list of video IDs. The listing requests are the website's own, and they were served logged out:
| Request | What it gives |
|---|---|
| navigation/resolve_url for a channel handle | The channel ID; an unknown handle answers 404 NOT_FOUND. |
| browse, for a playlist | The playlist's videos, 100 a page. A channel's videos, Shorts and live streams are playlists named after its ID, newest first. |
| search, with the website's "Type: Video" filter | 20 videos a page, with a continuation. |
| next (likes, comment count, YouTube's chapter list) | Works, at 700 KB per video: not used. Chapters are read from the description instead, as YouTube builds them. |
From datacenter addresses, playlist listings were served on 10 of 10 playlists. Search returns what YouTube's search shows a visitor, in its order, and YouTube decides how far a search goes. A date window is applied to the videos of channels, playlists and searches, so a daily or weekly schedule can read only recent videos.
Formats: segments, paragraphs, chapters, chunks, SRT and VTT
YouTube sends captions as timed lines. Everything else is a way of cutting the same lines, and each suits a different job:
| Format | What it is |
|---|---|
| text | The whole transcript as plain text. |
| segments | Each caption line with its text, start, end and duration in seconds. |
| paragraphs | The transcript in paragraphs, each with its time range. |
| chapters | The transcript split by the video's chapters, each with its title, time range and text. |
| chunks | Pieces of a target size you set (1,000 characters by default), each with its time range, for embeddings and retrieval. |
| srt, vtt | The subtitle file as text on the row, ready to save as .srt or .vtt. |
| words | Each word with its own timestamp, on auto-generated tracks only. |
Segments are the raw material, good for search with timestamps. Chapters give a long video its outline: they come from the timestamp list in the description, the one YouTube itself builds chapters from. Chunks are for retrieval: each keeps its time range, so an answer can link to the moment in the video. SRT and WebVTT are for players and editors. A row from a cloud run, shortened:
{
"status": "ok",
"videoId": "4NlrfOl0l8U",
"title": "The AI that solved IMO Geometry Problems | Guest video by @Aleph0",
"language": "en",
"isAutoGenerated": false,
"wordCount": 2632,
"segmentCount": 265,
"hasChapters": true,
"segments": [
{ "text": "In January 2024, Google DeepMind released an AI model called Alpha Geometry,", "start": 0, "end": 5.079, "duration": 5.079 },
{ "text": "which could solve geometry problems from the International Mathematical Olympiad, or the IMO.", "start": 5.079, "end": 10.558, "duration": 5.479 }
],
"chapters": [
{ "title": "What's surprising", "start": 0, "end": 93, "text": "In January 2024, Google DeepMind released an AI model called Alpha Geometry ..." }
]
}A video that gives no transcript still gives a row, with a status and the reason in YouTube's own words: no_captions, unavailable, private, members_only, age_restricted, live_not_started, language_not_available or failed. A list of 10,000 videos with a few hundred silent gaps is worse than one that names each gap.
What it looked like from the cloud
Runs of the private build of our Actor on Apify on 2026-11-22, plain HTTP with no browser, through datacenter addresses: 2,000 videos of 20 channels in one run gave 1,989 transcripts, 7 videos with no captions, 4 unavailable videos and no failure (run IY41cEE60kM20uC2K). 500 videos of five channels took 3 minutes 27 seconds, about 2.4 videos per second (run oVydua9di52HvuCn8). One video took 3.9 to 6.9 seconds of run time on three runs. Channels of multi-hour podcasts go slower, because each transcript is megabytes of captions.
That is one day, not a success rate. The first build applied the date window to pasted videos, which a run showed and the next build fixed (run DthuoZjIbxRqjGHpF).
Limits, and what stays unknown
- No captions, no transcript. This route returns the captions YouTube has. It does not transcribe audio.
- No translation. Refused logged out, as measured above.
- Nothing behind a sign-in. Private, members-only and age-restricted videos are not read.
- Chapters from the description only. Chapters YouTube generates on its own for a video without a timestamp list are not read.
- Per-word timestamps exist on auto-generated tracks only.
- How long the route stays open is unknown. YouTube has closed routes before: the website client's caption addresses now need a token only its player page computes. The day every client needs one, a reader built this way stops. Ours forges no such token.
- The share of addresses that answer was measured once. About one in four, on one day. Over days, we do not know yet.
Or use our Actor
Our YouTube transcript scraper is this route, built: video URLs or IDs, channels, playlists and search keywords in one run, the languages you prefer, every format above on the same row, the video's publish date, views and likes, and a status on every row. Two inputs, as examples:
{
"channels": ["@3blue1brown", "@veritasium"],
"dateFrom": "30 days",
"languages": ["en"],
"outputFormats": ["text", "chapters"]
}{
"videos": ["https://www.youtube.com/watch?v=aircAruvnKk", "jNQXAC9IVRw"],
"languages": ["fr"],
"languageFallback": false,
"outputFormats": ["srt"]
}curl -X POST "https://api.apify.com/v2/acts/agenttoolworks~youtube-transcript-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "videos": ["https://www.youtube.com/watch?v=aircAruvnKk"], "outputFormats": ["text"] }'import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("agenttoolworks/youtube-transcript-scraper").call({
channels: ["@3blue1brown"],
dateFrom: "30 days",
outputFormats: ["text", "chapters"],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const video of items.filter((v) => v.status === "ok")) console.log(video.title, video.wordCount);from apify_client import ApifyClient
client = ApifyClient("YOUR_TOKEN")
run = client.actor("agenttoolworks/youtube-transcript-scraper").call(run_input={
"videos": ["aircAruvnKk", "jNQXAC9IVRw"],
"outputFormats": ["text", "srt"],
})
for video in client.dataset(run["defaultDatasetId"]).iterate_items():
print(video["videoId"], video["status"], video.get("wordCount"))It costs $1.50 per 1,000 transcripts ($1.35 on Apify's Silver plan, $1.20 on Gold and up), with no start fee and no charge per format. Videos without captions, unavailable, private or age-restricted videos, failed videos and videos outside your dates are free.
The lines we keep
- Logged out, always. No Google or YouTube account, and no cookie at all: no request carries one.
- Public data only. What YouTube serves any visitor for a public or unlisted video. A private, members-only or age-restricted video gives a free row with that status; its wall is never passed.
- No challenge solved, no token forged. A refused address is left. The request is asked from another, and the run stops when every address refuses.
- Captions and public details only. Video and audio streams are never requested. Not collected either: comments, live chat, viewer or subscriber lists, a channel's contact details.
- What YouTube says. Its Terms of Service (dated 2022-01-05, read 2026-11-22) do not allow one to "access the Service using any automated means (such as robots, botnets or scrapers)" except for public search engines following its robots.txt, with YouTube's prior written permission, or as permitted by applicable law. We hold no such permission. Its robots.txt, read the same day, disallows
/api/and/youtubei/for every user agent: both interfaces this route uses are disallowed to crawlers. Weigh that for your own use. - A transcript is somebody's words. It is what the people in a video said in public, and the work of the channel. What you store, republish or train on is your responsibility under copyright and privacy law. This is not legal advice.
The same question, what a platform serves logged out and where it stops, for posts: how to scrape Threads.
Questions
Can you get YouTube transcripts without an account or an API key?
Yes, for public and unlisted videos that have captions. On 2026-11-22, YouTube's player interface, asked as its Android app, returned a video's caption tracks and their addresses to a client with no account and no cookie, and the captions were served on 4 of 4 videos. Private, members-only and age-restricted videos need a sign-in and are out of reach.
Why does a YouTube caption address return an empty answer?
On 2026-11-22, the caption track addresses carried by the watch page answered HTTP 200 with an empty body, on every video and format we tried. Those addresses now need a token only YouTube's own player page computes. The addresses returned to the Android client served the captions.
Why does YouTube say "Sign in to confirm you're not a bot"?
YouTube judges the address a request comes from. In our runs from datacenter addresses, a refused address was refused for every video, and an accepted one answered every video. Asking as four other clients from a refused address won 2 of 70. About one datacenter address in four answered, measured once.
Can you get translated YouTube captions without an account?
Not in our measurements. Asking a caption track for YouTube's machine translation returned HTTP 429 and Google's "Sorry..." page, on 4 of 4 from datacenter addresses and 20 of 20 through a residential proxy (2026-11-22). The languages a video has captions in are served; translations of them are not.
How many YouTube videos have captions?
Most of those with speech, not all. On 1,000 videos of ten large channels, 882 had captions, 117 had no caption track and 1 was age-restricted (run LjcuW8chum9dbO00f, 2026-11-22): about 1 video in 9 without any caption track. On 2,000 videos of 20 channels, 7 had no captions and 4 were unavailable.
Where do YouTube chapters come from?
From the timestamp list in the video's description, which YouTube itself builds chapters from. Our Actor reads that list and splits the transcript by it. Chapters that YouTube generates on its own for a video without such a list are not read.
Public data only, as YouTube serves any visitor: no login, no account, no cookies. Not affiliated with YouTube or Google.