# YouTube Transcript Scraper (`ai_simplified/youtube-transcript-scraper`) Actor

Get YouTube transcripts from videos, channels, playlists or search. Clean text, timestamps, SRT/VTT, chapters and AI-ready chunks with jump-to-moment links. Only pay for transcripts returned: $2.50 per 1,000.

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

## Pricing

from $2.00 / 1,000 transcript returneds

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

YouTube Transcript Scraper gets the transcript of any YouTube video, channel, playlist or search: clean text,
timestamps, SRT and WebVTT subtitles, the video's chapters, and **AI-ready chunks** with a link that opens the video
at that exact moment. **$2.50 per 1,000 transcripts**, less on bigger Apify plans. **Videos without a transcript are
listed with the reason, and never charged.**

### What does YouTube Transcript Scraper do?

Give it videos, channels, playlists or search terms. It finds the videos, picks the right caption track for each one
and returns the full transcript as structured data you can read, search, subtitle or feed to AI.

- **AI-ready chunks.** Optional chunks sized for ChatGPT, Claude or a search index. They never cut a caption line
  in half, never run across two chapters, and each one links to its moment in the video, so an AI answer can cite
  the exact spot.
- **Chapters** taken from the video description, the way YouTube shows them.
- **You only pay for transcripts.** Captions turned off, private, members-only, age-restricted, live right now or
  blocked: each is listed with a plain reason and costs nothing.
- **Clean text.** YouTube's escaped characters (`&#39;`, `&quot;`) are fixed, so you get "don't", not "don't".
- **The right language.** The original-language captions are picked correctly, even on dubbed videos with 20 audio
  tracks or talks that list Arabic first.
- **Every way in.** Video links or IDs (watch, youtu.be, Shorts, embed, live), channels, playlists and YouTube search.
- **Tested before launch.** In our November 2026 test on 172 recent videos from 12 big channels, every public video
  with captions returned a transcript, at about one minute per 100 videos.

### Who is it for?

- **AI builders**: question-answering over a channel, RAG search indexes and summaries, with timestamp links as
  citations.
- **Content and marketing teams**: turn videos into blog posts, newsletters, social posts and show notes.
- **Researchers and analysts**: study what creators, brands or experts say across hundreds of videos.
- **Educators and students**: notes and searchable text from lectures and talks.
- **Subtitle work**: SRT and WebVTT files ready for editors and players.

### How to use it

1. Click **Try for free** (or Start).
2. Paste video links, or add channels, playlists or search terms.
3. Turn on **AI-ready chunks**, SRT or VTT if you want them.
4. Run it, then download the transcripts as JSON, CSV or Excel, or connect them to your app.

#### Examples

One video:

```json
{ "videos": ["https://www.youtube.com/watch?v=UF8uR6Z6KLc"] }
```

A channel's latest 50 videos, chunked for AI:

```json
{ "channels": ["@TED"], "maxVideosPerSource": 50, "chunkForAI": true }
```

The top 20 search results, with SRT subtitles:

```json
{ "searchQueries": ["AI agents tutorial"], "maxVideosPerSource": 20, "includeSrt": true }
```

Prefer a language when the video has it:

```json
{ "videos": ["https://www.youtube.com/watch?v=UF8uR6Z6KLc"], "language": "es" }
```

### Input

| Field | What it does |
|---|---|
| `videos` | Video links or IDs. Watch, youtu.be, Shorts, embed and live links all work. |
| `channels` | Channel links or @handles. Takes the latest videos from the Videos tab; paste a `/shorts` or `/streams` link for those tabs. |
| `playlists` | Playlist links, in playlist order. |
| `searchQueries` | YouTube search terms; takes the top results. |
| `maxVideosPerSource` | Videos to take from each channel, playlist or search (default 20, up to 500). Finding videos is free. |
| `language` | Optional language code (`en`, `es`, `hi`...). Uses captions in that language when the video has them, otherwise the original language with a `note`. |
| `includeSrt` / `includeVtt` | Add the transcript as an SRT or WebVTT subtitle file (text). |
| `chunkForAI` | Add AI-ready chunks. |
| `chunkWords` | Target words per chunk (default 250). |

### Output

One item per video. A real example (the first video ever uploaded, shortened here):

```json
{
  "status": "ok",
  "videoId": "jNQXAC9IVRw",
  "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "title": "Me at the zoo",
  "channel": "jawed",
  "channelId": "UC4QobU6STFB0P71PMvOGN5A",
  "durationSeconds": 19,
  "viewCount": 448921303,
  "chapters": [],
  "language": "en",
  "languageName": "English",
  "isGenerated": false,
  "note": null,
  "text": "All right, so here we are, in front of the elephants the cool thing about these guys is that they have really... really really long trunks and that's cool (baaaaaaaaaaahhh!!) and that's pretty much all there is to say",
  "segments": [
    { "start": 1.2, "duration": 2.16, "text": "All right, so here we are, in front of the\nelephants" },
    { "start": 5.318, "duration": 2.656, "text": "the cool thing about these guys is that they\nhave really..." }
  ],
  "chunks": [
    { "index": 0, "start": 1.2, "end": 18.881, "text": "All right, so here we are, in front of the elephants ...", "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw&t=1s", "chapter": null }
  ]
}
```

- `segments` are the timed caption lines; `text` is the whole transcript as one string.
- `isGenerated` is `true` for YouTube's automatic captions and `false` for captions the creator added.
- `chapters` lists `{title, start, end}` in seconds when the creator added chapters to the description.
- `srt`, `vtt` and `chunks` appear when you ask for them.
- `tries` shows how many attempts the video needed.

**Status of each video** (only `ok` is charged):

| `status` | Meaning |
|---|---|
| `ok` | Transcript returned. |
| `no_transcript` | The video has no captions. |
| `unavailable` | Private, deleted, members-only, age-restricted, upcoming or live right now (`reason` says which). |
| `blocked` | YouTube blocked every attempt. Run it again later. |
| `error` | A link that isn't a YouTube video, or something unexpected (`reason` says what). |

Each run also saves a `SUMMARY` record with counts per status and any channel, playlist or search that couldn't be
listed.

### How much does it cost?

You pay one `transcript` event for each video that returns a transcript. Videos without one, finding videos in
channels, playlists and searches, and platform usage are all free.

| Your Apify plan | Price per 1,000 transcripts |
|---|---|
| Free and Starter | $2.50 |
| Scale | $2.25 |
| Business and above | $2.00 |

Plus a tiny start fee per run ($0.00005). Some examples at the $2.50 price:

- 1 video: **$0.0025**
- A channel's latest 100 videos: **$0.25**
- 2,000 lectures for a course search index: **$5.00**

Set a maximum cost per run and the scraper stops cleanly when it's reached.

### Use it from an AI agent (MCP)

Connect Apify's MCP server (`https://mcp.apify.com`) to Claude, Cursor, VS Code or any MCP client and ask in plain
language, for example:

> "Get the transcripts of TED's last 10 videos, split into chunks, and summarise what each talk argues."

### Use it from code (API)

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("ai_simplified/youtube-transcript-scraper").call(
    run_input={"videos": ["https://www.youtube.com/watch?v=UF8uR6Z6KLc"], "chunkForAI": True}
)
for video in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(video["status"], video.get("title"), len(video.get("text") or ""))
```

Node.js:

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('ai_simplified/youtube-transcript-scraper').call({ channels: ['@TED'], maxVideosPerSource: 10 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((v) => v.status === 'ok').length, 'transcripts');
```

cURL (runs and returns the transcripts in one call):

```bash
curl -X POST "https://api.apify.com/v2/acts/ai_simplified~youtube-transcript-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"videos": ["https://www.youtube.com/watch?v=UF8uR6Z6KLc"]}'
```

### Integrations

Like any Apify Actor, it connects to **Make, Zapier, n8n, Google Sheets, Slack** and **webhooks** from the
Integrations tab, and you can **schedule** runs (for example, transcripts of a channel's new videos every morning).

### Limits

- **Captions only.** Videos need captions from the creator or YouTube's automatic captions. There's no
  speech-to-text yet.
- **No translation** and **no publish date** in this version.
- **No logins, ever.** Age-restricted and members-only videos need one, so they're listed as `unavailable`.
- **Live streams** get captions after the stream ends.

### Is it legal to use YouTube transcripts?

The transcripts are the captions YouTube shows publicly on each video, and no login is used. Copyright in the words
stays with the creators, so use the text in line with your own rights and YouTube's terms (summaries, research and
search are common uses). This isn't legal advice.

### FAQ

**Which language do I get?** The video's original language by default. Set `language` to prefer another one when
the video has it; otherwise you get the original, with a `note` saying so.

**Why `blocked`?** YouTube sometimes refuses requests. We retry on fresh connections before giving up, and blocked
videos are free. Run them again later.

**How do I get only new videos from a channel?** Schedule a run with a small `maxVideosPerSource` and keep the
`videoId`s you already have.

**Need something else?** Speech-to-text for videos without captions, translation, publish dates, or a bulk feed:
open an issue on the Issues tab and tell us what you need.

### More tools from AI Simplified

- [YouTube Search Scraper](https://apify.com/ai_simplified/youtube-search-scraper): search YouTube by keyword with
  date and length filters, add transcripts, or get only the new videos since your last run.
- [Google Ads Transparency Scraper + Video Ad Transcripts](https://apify.com/ai_simplified/google-ads-transparency-scraper):
  any company's Google ads, and what their video ads actually say.
- [Career Page Jobs API](https://apify.com/ai_simplified/career-page-jobs): 577,000+ jobs straight from company
  career pages on Workday, Greenhouse, Lever and Ashby.

### Support

Found a problem or need a feature? Open an issue on the **Issues** tab. We read every one.

# Actor input Schema

## `videos` (type: `array`):

YouTube video links or IDs. Watch, youtu.be, Shorts, embed and live links all work.

## `channels` (type: `array`):

Channel links or @handles (e.g. @TED). Takes the channel's latest videos, up to the limit below.

## `playlists` (type: `array`):

Playlist links. Takes videos in playlist order, up to the limit below.

## `searchQueries` (type: `array`):

Search terms (e.g. "AI agents tutorial"). Takes the top results, up to the limit below.

## `maxVideosPerSource` (type: `integer`):

How many videos to take from each channel, playlist or search. Finding the videos is free; you pay only for transcripts returned.

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

Optional language code (e.g. en, es, hi). Uses captions in this language when the video has them; otherwise the video's original language. Leave empty for the original language.

## `includeSrt` (type: `boolean`):

Add the transcript as an SRT subtitle file (text) to each result.

## `includeVtt` (type: `boolean`):

Add the transcript as a WebVTT subtitle file (text) to each result.

## `chunkForAI` (type: `boolean`):

Add chunks sized for ChatGPT, Claude or a search index. Each chunk has its start time, its chapter and a link that opens the video at that moment.

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

Target size of each AI chunk in words. Chunks never cut a caption line in half.

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=UF8uR6Z6KLc"
  ],
  "maxVideosPerSource": 20,
  "includeSrt": false,
  "includeVtt": false,
  "chunkForAI": false,
  "chunkWords": 250
}
```

# Actor output Schema

## `transcripts` (type: `string`):

One item per video: the transcript (segments and plain text), video details, chapters, and optional SRT, VTT and AI chunks. Videos without a transcript are listed with a status and are not charged.

## `summary` (type: `string`):

Counts per status, how many videos were served, and any channel, playlist or search that could not be listed.

# 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 = {
    "videos": [
        "https://www.youtube.com/watch?v=UF8uR6Z6KLc"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ai_simplified/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 = { "videos": ["https://www.youtube.com/watch?v=UF8uR6Z6KLc"] }

# Run the Actor and wait for it to finish
run = client.actor("ai_simplified/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 '{
  "videos": [
    "https://www.youtube.com/watch?v=UF8uR6Z6KLc"
  ]
}' |
apify call ai_simplified/youtube-transcript-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ai_simplified/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/cb3zX4wNJfJmdT8Ez/builds/KoCWVpd9HDNK7RTcm/openapi.json
