# YouTube Transcript Scraper: Channels & Playlists (`paul_studio/youtube-transcript-scraper`) Actor

Transcripts from YouTube videos, Shorts, whole channels, playlists and searches in one run. Clean paragraphs, chapters, timestamp links, SRT/VTT and AI-ready chunks. Videos without captions are listed with the reason and never charged.

- **URL**: https://apify.com/paul_studio/youtube-transcript-scraper.md
- **Developed by:** [Paul Yu](https://apify.com/paul_studio) (community)
- **Categories:** Videos, Social media, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.80 / 1,000 transcripts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What does YouTube Transcript Scraper do?

It gets the transcript of YouTube videos in bulk, and works as a YouTube transcript API: extract subtitles and captions as JSON, CSV, Excel, plain text, SRT or WebVTT. Paste any mix of video links, Shorts, channels, playlists and search terms, and every video comes back as one row: the transcript in clean paragraphs, the video's details, its chapters, and the formats you choose.

- **Paste anything.** Video and Shorts links in any format, `@handles`, channel and playlist links, or plain search words, all in one list.
- **No language codes to look up.** By default you get the language spoken in the video, detected from YouTube's own caption and audio information. Pick a language and you get it where it exists; where it does not, you get the original and a note, or a list of the languages the video does have.
- **Any language YouTube has captions in.** English, Spanish, Hindi, Chinese, Japanese, Korean and 100+ more; search terms and channels can be in any language too. Chinese and Japanese text is joined without stray spaces.
- **Every video is accounted for.** Videos without a transcript still get a row with the reason in plain words: no captions, private, members only, age-restricted, removed, not yet premiered. You are not charged for them.
- **Ready to read or to feed an AI.** Paragraphs instead of 2-second fragments, chapter headings, a link to the exact moment for each paragraph, SRT and WebVTT, and chunks sized for embeddings.
- **Follow channels on a schedule.** *Only new videos* returns, and charges for, only uploads you have not received before.

**Price:** $0.004 per transcript on the Free plan, down to $0.0028 on Gold. $1 ≈ 250 transcripts on the Free plan, up to 357 on Gold. Videos without a transcript are free. Each run also has a start fee of $0.001 ($0.0007 on Gold), so a scheduled run that finds nothing new costs a tenth of a cent. To cap spending, set Maximum cost per run in Run options; the run never goes over it. The cost limit always uses your own plan's price.

![Results page: search inside every transcript and jump to the moment in the video](https://raw.githubusercontent.com/daupaul/apify-actor-assets/main/youtube-transcripts/hero.png)

### What you get for each video

| Video | Transcript | Extras you can add |
|---|---|---|
| Title, channel, channel link | Plain text in paragraphs | Readable Markdown with chapter headings and timestamp links |
| Published date, length, views, likes | Language and whether captions are by the creator or auto-generated | Timed segments (start, end, text) |
| Thumbnail, category, link | Word count | Chunks for AI tools, about N words each, with start time and link |
| Status in plain words | Chapters from the description | SRT and WebVTT subtitles |
| Languages the video has captions in | | Video description |

After each run, the **Results page** in the Output tab lets you search inside the transcripts and jump to the matching moment on YouTube, filter by channel and language, read or copy a transcript, and download the shown transcripts as one Markdown file. The page holds up to 1,000 videos and about 6 million characters of text; for bigger runs it says so, and the complete data is always in the dataset (Output tab, Export).

### How to use it

1. Paste videos, channels, playlists or search terms into **Videos, channels, playlists or searches**, one per line.
2. For channels, playlists and searches, set **Videos per channel, playlist or search**. Channels are read newest first; with several tabs chosen (Videos, Shorts, Live), the newest of each tab are taken in turn and share the limit. A link to a tab, such as `youtube.com/@name/shorts`, reads only that tab.
3. Leave **Transcript language** on *Original language* unless you need a specific one.
4. Click **Start**. A run of 10 videos usually takes under a minute.

To follow channels, turn on **Only new videos**, give the monitor a name, and add a [schedule](https://docs.apify.com/platform/schedules) (for example daily). Each run looks at the newest uploads (as many as **Videos per channel, playlist or search**) and returns only those you have not received, so it never digs into older videos. Set the number a little above the uploads you expect between runs. A video without captions, or without captions in your language, is checked again on later runs until it is a week old. The monitor remembers delivered videos for a year. It remembers videos, not settings: to get videos it already delivered again, in another language for example, use a new monitor name.

### Input example

```json
{
  "sources": [
    "https://www.youtube.com/watch?v=aircAruvnKk",
    "@veritasium",
    "https://www.youtube.com/playlist?list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi",
    "sourdough bread recipe"
  ],
  "maxVideos": 20,
  "language": "original",
  "publishedAfter": "30 days",
  "minMinutes": 3,
  "outputs": ["readable", "chunks"],
  "chunkWords": 300
}
```

Rows for videos without a transcript have the video details and the reason, but no transcript or chapters (subtitles you asked for are kept when the captions are only music or sound cues). Fields that do not apply are `null` or left out.

### Output example

```json
{
  "videoId": "aircAruvnKk",
  "title": "But what is a neural network? | Deep learning chapter 1",
  "channel": "3Blue1Brown",
  "publishedAt": "2017-10-05",
  "duration": "18:40",
  "views": 25311138,
  "status": "ok",
  "statusMessage": "Transcript saved.",
  "language": "en",
  "languageName": "English",
  "captionType": "creator",
  "availableLanguages": ["ar", "bn", "cs", "de", "en", "es", "fr", "zh-CN", "zh-TW"],
  "wordCount": 3357,
  "transcript": "This is a 3. It's sloppily written and rendered at an extremely low resolution of 28x28 pixels, but your brain has no trouble recognizing it as a 3. ...",
  "readable": "## Introduction example\n\n[0:04](https://www.youtube.com/watch?v=aircAruvnKk&t=4s) This is a 3. It's sloppily written ...",
  "chapters": [{ "start": 0, "time": "0:00", "title": "Introduction example" }],
  "url": "https://www.youtube.com/watch?v=aircAruvnKk",
  "source": "https://www.youtube.com/watch?v=aircAruvnKk",
  "sourceType": "video"
}
```

A video without a transcript looks like this, and is free:

```json
{
  "videoId": "...",
  "title": "...",
  "status": "language_unavailable",
  "statusMessage": "No German captions. Available: English, Spanish.",
  "availableLanguages": ["en", "es"]
}
```

### Use cases

- **AI and research:** turn a channel or a playlist into text for summaries, search or a knowledge base. Chunks come with timestamps, so every answer can link to the moment in the video.
- **Content and SEO:** repurpose videos into articles and posts; find what competitors' videos actually say.
- **Market and media monitoring:** follow channels or search terms on a schedule and get new transcripts only.
- **Education and accessibility:** subtitles as SRT or WebVTT, readable notes with chapter headings.

### FAQ

#### Which language do I get?

*Original language* is the language spoken in the video, as far as YouTube's caption and audio information shows it. YouTube's auto-generated captions are always in that language, so almost every video with speech has one. If you choose a language, creator captions in that language come first, then auto-generated ones. Codes are matched sensibly: *Spanish* also finds `es-419` and `es-US`, *Chinese (Traditional)* finds `zh-TW` and `zh-HK`.

#### Why does a video have no transcript?

Some videos have no captions at all (often music, or very new uploads; YouTube adds auto-generated captions within hours to a few days). Private, members-only and removed videos cannot be read, and age-restricted videos need a signed-in account. Each case gets its own status and is not charged.

#### How accurate are the transcripts?

You get the captions exactly as YouTube has them. Checked word by word against the open-source youtube-transcript-api on English, Chinese, Japanese and Spanish videos: same lines, same words, same timings. The only change is in the `transcript` and `readable` fields, where sound cues such as \[Music] are removed and lines are joined into paragraphs.

How good the captions are depends on who made them. Creator captions are written or checked by the channel. YouTube's auto-generated captions are usually close on clear speech, such as lectures, and often wrong on songs.

For music, creator captions are always preferred when the video has them. When a music video has only auto-generated captions, its row says so (`statusMessage`), so you can decide whether to use it.

#### Are creator captions better than auto-generated ones?

Usually. They have punctuation and fewer errors. Turn on **Creator captions only** if you need that quality and can accept fewer results.

#### Can it translate?

No. YouTube's automatic translations cannot be read reliably, and we do not list features that do not work. You get the captions a video actually has; `availableLanguages` shows which those are.

#### Can I search in other languages?

Yes. Search words can be in any language, and **Search results language** asks YouTube to rank searches and hashtags for one language, for example Japanese.

#### Is there a limit?

Up to 200 lines per run and up to 5,000 videos per channel, playlist or search. Very large channels take longer; set **Published after** to limit a run to recent uploads.

#### What happens when YouTube blocks a request?

A blocked video is tried again up to eight times, each time from a new IP address and alternating between YouTube's Android and iOS apps, and then up to eight more times in a second round at the end of its channel, playlist or search. If datacenter IPs keep getting blocked, the run switches to residential IPs when your Apify plan includes them. A video that still cannot be read is listed as `blocked` and not charged.

#### Is it legal to scrape YouTube transcripts?

The Actor reads captions that YouTube shows publicly to any viewer. It does not download videos or audio and does not sign in. How you use the text is up to you: respect copyright and YouTube's terms, and check with a lawyer for commercial reuse.

### Use it from AI assistants and code

The Actor works as a tool in Claude, ChatGPT, Cursor and other assistants through the [Apify MCP server](https://mcp.apify.com/). Add `https://mcp.apify.com?tools=paul_studio/youtube-transcript-scraper` to your MCP client and ask, for example: "Get the transcripts of the last 5 videos on @veritasium and summarize each one."

From code, run it with the [Apify API](https://docs.apify.com/api/v2) or the Python and JavaScript clients:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("paul_studio/youtube-transcript-scraper").call(run_input={
    "sources": ["@veritasium"], "maxVideos": 5, "outputs": ["chunks"],
})
for video in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(video["title"], video["wordCount"])
```

### Pricing

You pay per transcript saved. Videos without a transcript, duplicates, videos outside your filters, and blocked requests are free. Proxies are included.

Set a maximum cost per run in the run options and the Actor never goes over it.

### Feedback

Found a video that should work but does not? Open an issue on the **Issues** tab with the link, and it will be looked at quickly.

# Actor input Schema

## `sources` (type: `array`):

One per line: a video or Shorts link, a channel (@handle or link), a playlist link, or words to search for, e.g. "sourdough bread recipe". End a line with | 50 to take 50 videos from that source.

## `maxVideos` (type: `integer`):

Newest first for channels. Single video links are always included. A "| number" at the end of a line overrides this.

## `language` (type: `string`):

Original language needs no setup. Pick a language to get creator or YouTube captions in it where they exist. Also: ms (Malay), vi (Vietnamese), th (Thai), fil (Filipino), ja (Japanese), ko (Korean), zh-Hans (Chinese (Simplified)), zh-Hant (Chinese (Traditional)), sv (Swedish), no (Norwegian), da (Danish), fi (Finnish), cs (Czech), el (Greek), ro (Romanian), hu (Hungarian).

## `fallbackToOriginal` (type: `boolean`):

Off: such videos get a row that lists the languages they do have, and are not charged.

## `creatorCaptionsOnly` (type: `boolean`):

Skip auto-generated captions. Creator captions have punctuation and fewer errors, but many videos have none.

## `publishedAfter` (type: `string`):

A date, or a period such as 30 days. Applies to channels, playlists and searches.

## `minMinutes` (type: `integer`):

e.g. 5 to skip short clips.

## `maxMinutes` (type: `integer`):

e.g. 90 to skip full-length streams.

## `channelTabs` (type: `array`):

Newest of each tab in turn, sharing the limit. A link to a tab (…/@name/shorts) reads only that tab.

## `searchLanguage` (type: `string`):

For searches and hashtags: the language YouTube ranks results for, e.g. Japanese to find Japanese videos. Also: ms (Malay), vi (Vietnamese), th (Thai), fil (Filipino), ja (Japanese), ko (Korean), zh-Hans (Chinese (Simplified)), zh-Hant (Chinese (Traditional)), sv (Swedish), no (Norwegian), da (Danish), fi (Finnish), cs (Czech), el (Greek), ro (Romanian), hu (Hungarian).

## `searchOrder` (type: `string`):

Newest first is useful for keeping track of a topic.

## `outputs` (type: `array`):

Rows with a transcript always have the plain text, video details and chapters. Add the formats you need.

## `chunkWords` (type: `integer`):

For chunks for AI tools. Chunks also break at chapter boundaries.

## `includeDescription` (type: `boolean`):

The text under the video, with its links.

## `onlyNewVideos` (type: `boolean`):

Each run checks the newest videos (the number above) and returns and charges only those this monitor has not delivered. Videos without captions are checked again until they are a week old.

## `monitorName` (type: `string`):

Give each schedule its own name, e.g. "ai-podcasts". Use a new name to start over or to change the language. Runs with the same name share one history, also across Tasks.

## Actor input object example

```json
{
  "sources": [
    "https://www.youtube.com/watch?v=aircAruvnKk"
  ],
  "maxVideos": 10,
  "language": "original",
  "fallbackToOriginal": true,
  "creatorCaptionsOnly": false,
  "channelTabs": [
    "videos"
  ],
  "searchLanguage": "any",
  "searchOrder": "relevance",
  "outputs": [
    "readable"
  ],
  "chunkWords": 300,
  "includeDescription": false,
  "onlyNewVideos": false,
  "monitorName": "default"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `videos` (type: `string`):

No description

## `report` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "sources": [
        "https://www.youtube.com/watch?v=aircAruvnKk"
    ],
    "maxVideos": 10,
    "language": "original",
    "channelTabs": [
        "videos"
    ],
    "searchLanguage": "any",
    "searchOrder": "relevance",
    "outputs": [
        "readable"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("paul_studio/youtube-transcript-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "sources": ["https://www.youtube.com/watch?v=aircAruvnKk"],
    "maxVideos": 10,
    "language": "original",
    "channelTabs": ["videos"],
    "searchLanguage": "any",
    "searchOrder": "relevance",
    "outputs": ["readable"],
}

# Run the Actor and wait for it to finish
run = client.actor("paul_studio/youtube-transcript-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "sources": [
    "https://www.youtube.com/watch?v=aircAruvnKk"
  ],
  "maxVideos": 10,
  "language": "original",
  "channelTabs": [
    "videos"
  ],
  "searchLanguage": "any",
  "searchOrder": "relevance",
  "outputs": [
    "readable"
  ]
}' |
apify call paul_studio/youtube-transcript-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,paul_studio/youtube-transcript-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/o2EvmbrXwPM70hXFy/builds/XLPq12RWC30F5G4wI/openapi.json
