YouTube Transcript API for researchers: code videos at scale

By the YouTubeTranscriptAPI engineering team · Published · Updated

YouTube's own program for academic researchers gives you metadata for the whole platform. It doesn't give you a single transcript.

To get YouTube transcripts for research, list the videos you want to study, draw a seeded random sample, fetch each transcript with timestamps through an API, and export SRT for ATLAS.ti or MAXQDA and plain text for NVivo. Keep a manifest of retrieval dates and hashes so the corpus can be rebuilt. Our free script does all of it, plus first-pass coding and Krippendorff's alpha.

Research workflow: sample videos, fetch timestamped transcripts, export SRT, TXT and CSV, code with a codebook, double-code a sample and compute Krippendorff's alpha, write the methods paragraph
Six steps from a video list to a corpus your reviewers can check.

The manual way is well documented, and it goes like this. Open the video, click "Show transcript", copy, paste into Word, fix the timestamps, repeat.

That works for 12 videos. It falls apart at 300, and it leaves no record of what you collected or when.

We make YouTubeTranscriptAPI, so we sell the fetching step. Everything else in this guide (sampling, QDA import, coding, reliability, ethics) works whatever tool you use to get the text.

Everything below was checked or run on November 26, 2026.

How do you get YouTube transcripts for research?

The most practical route at scale is an API that returns each video's caption track with start times, called from a script that also records what it collected. You give it a video list, a channel, a playlist or a search query. It returns timestamped text you can import into qualitative software, plus a manifest showing which videos had no captions and when each transcript was retrieved.

There are three other routes, and each one breaks somewhere.

YouTube's transcript panel is free, but it's one video at a time. A 2021 MAXQDA guide walks through copying it into Excel, wrapping each timestamp with a formula, pasting into Word and importing. The same guide notes that automatic transcripts "cannot be automatically downloaded by MAXQDA."

The University of Toronto Map & Data Library suggests uploading a video to your own YouTube account to get a caption file. That only works for recordings you own, like your interviews. It can't touch someone else's channel.

Open-source scrapers break often. We covered why in our guide to scraping YouTube transcripts at scale: cloud IPs get blocked, and in our November 2026 test the caption URLs came back empty.

In short, the text is easy to see and hard to collect cleanly.

Published work runs into the same wall. A 2023 study by Christodoulou and colleagues classified vaccine misinformation from 652 misinformation and 636 non-misinformation transcripts, gathered through the YouTube API. They could only keep transcripts "where they were still available."

Videos get deleted, made private or re-edited, so the corpus you collect in March may not be the corpus anyone can collect in June.

That's why the manifest matters as much as the text. Record the date, the language you got back and a hash of every transcript, and you can at least prove what you analyzed.

Does the YouTube Researcher Program give you transcripts?

No. The YouTube Researcher Program gives approved academics "scaled, expanded access to global video metadata" through the YouTube Data API. That means titles, descriptions, statistics and comments, with more quota. Its pages don't mention captions or transcripts, and the Data API's caption download only works for videos whose owner authorizes you.

Eligibility is narrow too. You need to be a student, research staff or faculty member at an accredited, degree-granting, not-for-profit institution, and apply with your institutional email.

The popular academic tools fill different gaps. Here's what each one gives you for someone else's videos:

ToolWhat you getTranscripts of other people's videos
YouTube Researcher ProgramMetadata and comments via the Data API, extra quotaNo
YouTube Data API captions.downloadCaption filesOnly with the owner's authorization
DMI YouTube Data ToolsChannel and video lists, networks, commentsNo
MAXQDA YouTube importVideo data and up to 10,000 newest comments per videoSome, one video at a time
Transcript panel + copy/pasteThe text you seeYes, one video at a time
Transcript API + scriptTimestamped transcripts, any public captioned videoYes, in batches

The Leibniz Social Media Observatory's list of YouTube research tools tells the same story. Only one tool on it mentions captions, and only "closed captions of videos you own."

That's the gap. Researchers have good tools for metadata and comments, and almost nothing for the spoken content.

What YouTube research tools return for other people's videos: the Researcher Program, DMI YouTube Data Tools and the Data API give metadata and comments; only the transcript panel and a transcript API return spoken content, and only an API does it in batches
Metadata is easy to get. The spoken words are not.

How do you choose which YouTube videos to study?

Decide the population first, then sample from it with a fixed random seed. A population can be every upload from a set of channels, a playlist, or the results of a search run on a recorded date. Drawing a seeded random sample means anyone with your seed and candidate list gets exactly the same videos, which is the closest YouTube research gets to a replicable sample.

Search results deserve a warning. They change over time and can differ between viewers, so write down the date, the exact query and the result limit.

Our API's search endpoint returns up to 50 videos per query for 4 credits. Channel and playlist listings return up to 100 videos for 20 credits each, as the channel endpoint docs explain.

Run a dry run first. It lists and samples without fetching a single transcript, so you see the size of the study before you spend anything.

If you need more than the newest 100 uploads of a channel, list the full channel through the official Data API and pass the IDs in as a file. Our playlist transcript guide shows that route.

How do you import YouTube transcripts into NVivo, ATLAS.ti or MAXQDA?

Use SRT files for ATLAS.ti and MAXQDA, and plain text for NVivo. MAXQDA's documentation says SRT timestamps "are converted into MAXQDA timestamps," and clicking one plays the video from that point. ATLAS.ti 9 imports VTT or SRT as a transcript next to the media file. NVivo links YouTube videos rather than embedding them, so transcript text comes in through its transcript-row import.

Here's how the three line up:

SoftwareBest formatWhat you get
MAXQDA.srtTimestamps linked to the video; click to play
ATLAS.ti 9 (desktop).srt or .vttTranscript beside the media, several transcripts per video allowed
NVivo.txtText you can code; YouTube videos stay linked, not embedded

A practical catch: these packages link the transcript to a media file. You don't need the video to code text, but you do need it for click-to-play. Our script writes both an SRT and a TXT per video, so you can start coding text today and attach media later if your ethics approval allows it.

For quantitative work in R or Python, use the corpus.csv file instead. It has one row per caption segment, with start and end times and a link that opens the video at that second.

Are YouTube auto-generated captions accurate enough for research?

Often good enough for coding themes, rarely good enough for quoting without checking. YouTube's own help page warns that automatic captions "might misrepresent the spoken content due to mispronunciations, accents, dialects, or background noise." I couldn't find an independent, peer-reviewed error rate for YouTube's captions specifically, so treat any single accuracy number you see online with suspicion.

What I can give you is how often you're dealing with machine captions at all. On November 26, 2026, I checked the five newest long-form videos from nine large channels (news, health, science, education and entertainment) and read which caption tracks each one had.

32 of the 45 videos had English captions uploaded by the creator. The other 13 had only YouTube's automatic track.

The split wasn't even. PBS NewsHour, Kurzgesagt, NASA and MrBeast uploaded captions on all five. Huberman Lab, a long-form podcast, had automatic captions only on all five, and Vox had them on four of five.

Caption tracks on 45 recent videos from nine large channels: 32 had creator-uploaded English captions and 13 had only automatic captions; the podcast channel had automatic captions on all five videos
Big studios upload captions. Long podcasts mostly don't.

That's a small sample of big, well-funded channels, so don't generalize it. Smaller creators and long conversations are where I'd expect more machine captions, and they're often exactly what researchers study.

One gap on our side: our API returns the caption text and its language, but it doesn't say whether a track was uploaded by the creator or generated automatically. If that matters for your method, check a sample by hand and say so.

YouTube also lists reasons captions may not exist at all, including overlapping speakers, poor sound and long silences at the start. Those videos come back as 404s, which cost nothing, and the manifest records them.

So build a check into your method. Pick a random 5% of the segments you plan to quote, listen to the audio and fix what's wrong. Report how many needed fixing.

Speaker labels are the other gap. Captions don't say who is talking, so panels and interviews need speakers added by hand.

How do you code YouTube transcripts and check reliability?

Write a codebook, run a keyword first pass to find candidate passages, then have two people code a random sample independently and compute Krippendorff's alpha. Hayes and Krippendorff proposed alpha as the standard reliability measure in Communication Methods and Measures (2007) because it works with any number of coders, any level of measurement and missing data.

The keyword pass is a finder, not a coder. It turns "vaccin*" into every segment that mentions vaccines, with the sentences around it and a link to that second of video.

Humans decide what each passage means. The keyword list just saves you from scrolling through hundreds of hours of talk to find them.

Keywords miss things, too. Sarcasm, euphemisms and "you know what I mean" never match a term, so read a few full transcripts before you trust the counts in the code matrix.

Then the script draws a seeded sample of segments into a sheet with one empty column per coder. Each coder fills in their own column without seeing the other.

From codebook to reliability: keyword terms find candidate segments with context and timestamp links, a seeded sample goes to two coders, and Krippendorff's alpha is computed from their columns
The keyword pass finds passages. People code them.

Our alpha function reproduces the worked example in Krippendorff's own tutorial (4 coders, 12 units, nominal alpha of 0.743). It's one of the script's tests, and it passes.

What alpha is high enough depends on the stakes. In their paper's worked example, Hayes and Krippendorff treat 0.800 as a demanding standard and 0.700 as a relaxed one. Your field's norms decide.

What ethics rules apply to public YouTube videos?

Public doesn't mean free of obligations. The Association of Internet Researchers' guidelines (IRE 3.0, 2019) note that researchers commonly pseudonymize data and keep the keys separate from the dataset, and that quoting someone can make them identifiable "through a string search." YouTube's Terms of Service also restrict automated access. Check both with your ethics board before collecting.

Here's what that means in practice.

Pseudonymize when the speakers aren't public figures. Our script's --pseudonymize flag replaces channels with codes like C001 and videos with V0001, strips titles and links, and writes the key to a separate folder you can store elsewhere.

Be careful with verbatim quotes. A sentence from a transcript is searchable, so a quote can lead straight back to a person. AoIR's guidelines suggest asking whether the exact quote is needed at all.

Know your data rules. YouTube's Developer Policies ask apps to delete or refresh stored API data after 30 days, and the Researcher Program's terms add their own refresh rules until you fix data for final analysis. If you pull metadata through the official API, plan for that.

On automated access, YouTube's Terms of Service prohibit it except for public search engines, with prior written permission, or as allowed by applicable law. Take that question to your institution's legal or research office. I'm not a lawyer, and this isn't legal advice.

How do you build the corpus with one script?

Download research_corpus.py, set your API key and run four commands: build, code, sample and alpha. It needs Python 3.9 or newer and nothing else. Re-running it skips videos already fetched, so an interrupted run picks up where it stopped without paying twice.

There's nothing to install. Start with a dry run:

bash
export YTT_API_KEY=tk_live_...
python research_corpus.py build --channel @SomeChannel --channel @OtherChannel \
  --sample 200 --seed 42 --out corpus --dry-run

Drop --dry-run to fetch. You get srt/, txt/, corpus.csv, manifest.csv and a METHODS.md with a draft paragraph using your real counts and dates.

The codebook is a two-column CSV:

csv
code,terms
vaccination,vaccin*|jab*|booster*
harms,side effect*|adverse|injur*
trust,trust*|distrust*|believe

Then code, sample and score:

bash
python research_corpus.py code --corpus corpus --codebook codebook.csv
python research_corpus.py sample --corpus corpus --from-coded --n 150 --seed 7
python research_corpus.py alpha corpus/reliability_sample.csv --coders coder_1 coder_2

A new video takes 10 to 30 seconds to fetch the first time, and a stored one about a second. The script runs one video at a time, so a 500-video study can take a few hours. Run it overnight.

We tested it against mocked API responses: sampling, resume, pseudonymization, the exports, the codebook and the alpha example all pass. Our transcript endpoint docs list every field it uses.

What does a YouTube transcript study cost?

One credit per transcript, and nothing for videos without captions. A 500-video study drawn from ten channel listings costs about 700 credits, which fits the 1,000 credits in a Monthly plan. A 2,000-video study fits the 15,000-credit Annual plan with room to re-run. New accounts can get founding prices within seven days of sign-up.

The math, with the listings included:

StudyCreditsPlan that covers it
100 videos from 5 channels100 + 100 = 200Monthly, 1,000 credits
500 videos from 10 channels200 + 500 = 700Monthly, 1,000 credits
2,000 videos from 40 searches160 + 2,000 = 2,160Annual, 15,000 credits

Monthly is $3 at the founding price or $7 standard. Annual is $30 founding or $60 standard. Current numbers are on the pricing page.

Credits for three study sizes: 100 videos uses 200 credits, 500 videos uses 700, 2,000 videos uses 2,160; the first two fit a Monthly plan and the third fits an Annual plan
Listings cost 20 credits, searches 4, transcripts 1. Missing captions cost nothing.

For a grant budget, I'd list it as a small software line and attach the credit math above. Re-running a cached build costs nothing extra, which helps when a reviewer asks for a re-run.

Frequently asked questions

How do I get transcripts of YouTube videos for my thesis?

For a handful of videos, copy them from YouTube's transcript panel. For more than about twenty, use a transcript API with a script, so every transcript arrives with timestamps and a retrieval date. Export SRT for ATLAS.ti or MAXQDA and plain text for NVivo, keep the manifest, and describe the collection in your methods chapter.

Does the YouTube Researcher Program include transcripts?

No. The YouTube Researcher Program gives approved academics expanded access to public video metadata through the YouTube Data API, including titles, statistics and comments. Its pages don't mention transcripts or captions, and the Data API only lets you download captions for videos whose owner authorizes you. For other channels' spoken content, you need a separate transcript source.

Can I import YouTube transcripts into NVivo with timestamps?

NVivo links YouTube videos instead of embedding them, so the simplest path is importing the transcript as a text document with timestamps written into it. ATLAS.ti and MAXQDA handle this better: both import SRT subtitle files, and MAXQDA turns each SRT timestamp into a clickable link that plays the video from that point.

Are YouTube auto-generated captions accurate enough for academic research?

They're usually fine for finding and coding themes, but check them before quoting. YouTube itself warns that automatic captions can misrepresent speech because of accents, dialects, mispronunciations and background noise. Spot-check a random sample of quoted segments against the audio, add speaker labels by hand, and report the error rate you found.

Do I need ethics approval to analyze public YouTube videos?

Usually yes, or at least a formal exemption, depending on your institution. Public videos still involve real people, and AoIR's 2019 guidelines note that researchers commonly pseudonymize data and keep the keys separate. Verbatim quotes can identify speakers through a simple search, so plan how you'll quote. Ask your ethics board before collecting, not after.

How do I describe YouTube transcript collection in a methods section?

State the population, how you sampled it, the seed, the retrieval dates and the tool used. Say how many videos had no captions, whether captions were machine-generated and how you checked accuracy. Our script writes a draft paragraph with your real counts into METHODS.md, plus a manifest with each transcript's SHA-256 hash for replication.

Run a dry run on your sample today

Pick the channels or search terms that define your population, then run research_corpus.py with --dry-run to see how many videos you'd study and what it costs. When the numbers look right, get 100 free credits and fetch the first 100. If your corpus is one big channel, our YouTube channel transcripts guide covers that step in more detail.