YouTube Transcript Scraper: Videos, Channels & Playlists avatar

YouTube Transcript Scraper: Videos, Channels & Playlists

Pricing

from $1.50 / 1,000 transcript returneds

Go to Apify Store
YouTube Transcript Scraper: Videos, Channels & Playlists

YouTube Transcript Scraper: Videos, Channels & Playlists

YouTube transcript scraper: get the transcript of any YouTube video as clean text or timestamped segments, ready for AI, RAG and content repurposing. Paste video URLs, or a channel or playlist for all its videos. Manual or auto-generated captions, language choice, optional translation.

Pricing

from $1.50 / 1,000 transcript returneds

Rating

0.0

(0)

Developer

Onibaku

Onibaku

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Get the YouTube transcript of any video as clean plain text, or as timestamped segments. Paste video URLs, or a channel or playlist to get the transcripts of all its videos, and get one row per video with the title, channel, publish date, length, language and the full transcript, ready to drop into an LLM, a vector database or a spreadsheet.

It reads the captions YouTube itself shows under the video: the creator's own subtitles where there are any, and YouTube's auto-generated captions otherwise. No video or audio is downloaded and nothing is re-transcribed, so it's fast and cheap: a 15-minute talk takes about a second.

What it's for

  • AI and RAG: feed a channel's back catalogue into a knowledge base or a custom GPT, or let an agent read a video before answering a question about it (see MCP below).
  • Content repurposing: turn videos and podcasts into blog posts, newsletters, threads, show notes and quotes.
  • Research: search what was actually said across hundreds of talks, lectures, interviews or earnings calls.
  • Subtitles and chapters: timestamped segments link each line to the exact second of the video.
  • Competitor and brand monitoring: pull the latest uploads of a set of channels on a schedule.

Input

FieldWhat it does
videosVideo URLs or IDs: watch?v= links, youtu.be links, Shorts, embeds, live links or the bare 11-character ID.
channelsChannel URLs, @handles or UC... channel IDs. Gets the channel's newest uploads.
playlistsPlaylist URLs or IDs.
maxVideosPerChannelHow many videos to take from each channel or playlist (default 50).
languagePreferred language code, e.g. en, en-GB, es, de (default en). Leave empty for each video's own language.
translateWhen the video has no captions in your language, ask YouTube to machine-translate them.
includeTimestampsAdds segments: every caption line with its start time and duration in seconds.
maxResultsStop after this many videos in total (default 1,000).
proxyConfigurationResidential proxy by default. Leave it as it is (see Good to know).

How the language is chosen: human-made captions in your language first, then YouTube's auto-generated ones. If the video has neither, you get the transcript in the video's original language and a warning saying so, unless translate is on.

Three talks, as plain text:

{
"videos": [
"https://www.youtube.com/watch?v=arj7oStGLkU",
"https://youtu.be/UF8uR6Z6KLc",
"8S0FDjFBj8o"
]
}

The latest 100 videos of two channels, with timestamps:

{
"channels": ["@TED", "https://www.youtube.com/@veritasium"],
"maxVideosPerChannel": 100,
"includeTimestamps": true
}

A playlist in Spanish, translated where needed:

{
"playlists": ["https://www.youtube.com/playlist?list=PL..."],
"language": "es",
"translate": true
}

Output

One row per video:

{
"videoId": "arj7oStGLkU",
"url": "https://www.youtube.com/watch?v=arj7oStGLkU",
"title": "Inside the Mind of a Master Procrastinator | Tim Urban | TED",
"channelName": "TED",
"channelId": "UCAuUUnT6oDeKwE6v1NGQxug",
"publishedAt": "2016-04-06T16:59:35.000Z",
"durationSeconds": 844,
"language": "en",
"isAutoGenerated": false,
"isTranslated": false,
"availableLanguages": [
{ "code": "ar", "name": "Arabic", "isAutoGenerated": false },
{ "code": "en", "name": "English", "isAutoGenerated": false },
{ "code": "en", "name": "English (auto-generated)", "isAutoGenerated": true }
],
"transcript": "So in college, I was a government major, which means I had to write a lot of papers. Now, when a normal student writes a paper...",
"segments": [
{ "start": 12.645, "duration": 1.37, "text": "So in college," },
{ "start": 15.349, "duration": 1.564, "text": "I was a government major," }
],
"wordCount": 2277,
"warning": null,
"error": null
}

segments is only there when includeTimestamps is on. Videos that have no transcript (no captions at all, private, removed, age-restricted or members-only) still get a row, with transcript empty and the reason in error, so you can see what happened to every video you asked for.

Pricing

$0.0015 per transcript returned, plus a token $0.00005 per run. 1,000 transcripts cost $1.50, proxy included. Videos without a transcript, and videos that fail, cost nothing.

Good to know

  • Proxy: YouTube blocks most cloud servers, so the actor goes through Apify's residential proxy by default. That's included in the price; just leave the setting alone. If YouTube still blocks a request, the actor retries from a few different IPs before giving up on that video (which then isn't charged).
  • Auto-generated captions have no punctuation in some languages, and their lines overlap slightly in time, as they do on YouTube.
  • YouTube rations machine translation heavily. With translate on, some videos may come back in their original language, with a warning.
  • For channels you get the newest uploads first, including Shorts and past live streams.
  • Only public videos and captions anyone can see without signing in. Age-restricted and members-only videos are skipped with an error.

Use it from Claude, ChatGPT or Cursor (MCP)

AI assistants can call this actor as a tool through Apify's MCP server, so they can read any YouTube video you point them at. Add this server URL to your MCP client and sign in with your Apify account when prompted:

https://mcp.apify.com?tools=onibaku/youtube-transcripts

Data source

The captions YouTube publishes with each public video, the same ones you see when you press CC or open "Show transcript" on youtube.com, read logged out. Every row's url links to the video.

Questions or feature requests? Open an issue on the actor's Issues tab or email admin@onibaku.co.uk.