Get the transcript of any YouTube video, playlist or channel

Clean text, timestamps, RAG-ready chunks, Markdown, SRT and VTT. No YouTube API key, no Google Cloud project, and no proxies to run. Works from AWS and other cloud servers.

Try it on Apify Examples on GitHub

$3.90 per 1,000 transcripts. Videos without captions and failed requests are free, and Apify’s free plan includes $5 of monthly credit. Made by CodePulse; these pages document our hosted Actor.

Quick start

export APIFY_TOKEN=...   # free Apify account: Console > Settings > API & Integrations

curl -sS -X POST \
  "https://api.apify.com/v2/acts/codepulsehq~youtube-transcript-api/run-sync-get-dataset-items?token=${APIFY_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{"videos": ["https://www.youtube.com/watch?v=UF8uR6Z6KLc"], "includeSegments": false}'

You get the transcript text, plus title, channel, description, thumbnail, view count, the caption language, and whether the captions were auto-generated. A video that can’t be fetched comes back as a row with success: false and a plain-English reason, and is not charged.

Guides

Summarise a whole YouTube channel with an LLM

Fetch transcripts for a channel, summarise each video with an LLM and ask questions across all of them.

How to get YouTube transcripts in Python

Get YouTube transcripts in Python with a few lines of code, for videos, playlists and whole channels, without getting blocked on cloud servers.

Without the YouTube Data API

Why the official API can't do it, and the one-request alternative.

Fix RequestBlocked / IpBlocked

Why scripts fail on AWS and cloud servers, and five fixes.

Transcripts for RAG

Chunks with start and end times, so answers cite the exact second.

MCP server for AI agents

Let Claude or Cursor fetch transcripts with a two-line config.

Bulk channel and playlist downloads

Every video in a channel or playlist in one run, with a spend cap.

SRT and VTT subtitles

Captions as subtitle files, without downloading the video.

Compare the options

Library, yt-dlp, official API and hosted services side by side.

Frequently asked questions

Do I need a YouTube API key? No.

Does it work from AWS, Vercel and other cloud servers? Yes. YouTube blocks most datacenter IP addresses, which is why plain scripts fail there. The Actor handles that for you. See the fix guide.

Can it get a whole channel or playlist? Yes. Pass a channel or playlist link and set maxVideosPerSource (up to 2,000).

What if a video has no captions? You get a success: false row with error_code: "no_captions" and you are not charged. The Actor reads captions YouTube already has; it does not transcribe audio.

What does it cost? $3.90 per 1,000 transcripts, so 10,000 is about $39. Failed videos are free.

Is it legal? It reads captions that YouTube shows publicly. How you use the text is up to you: respect creators’ copyright and YouTube’s terms. This is not legal advice.

More from CodePulse