# YouTube Transcript Scraper - Channels & Playlists, $2/1K (`mibedk/youtube-transcript-scraper-reliable`) Actor

YouTube transcript scraper: timestamped transcripts (manual and auto-generated captions) for videos, whole channels and playlists. Plain text, segments, SRT and VTT. Language fallback, no login, no API key. $2 per 1,000 transcripts.

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

## Pricing

$2.00 / 1,000 transcript scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 - Channels & Playlists, $2/1K

Get the transcript of any public YouTube video, or of every video in a channel or playlist. Give it video, channel or playlist URLs and it returns one record per video with the full transcript as plain text, timestamped segments, and ready-to-use SRT and WebVTT subtitle files. It reads both creator-uploaded captions and YouTube's auto-generated ones, picks your preferred language, and falls back to the video's own language if yours isn't there. No YouTube login, no API key, no browser. You pay $2 per 1,000 transcripts, and only for videos where a transcript was actually delivered.

### What you can put in

Mix any of these in the **URLs** list:

| You paste | What happens |
|---|---|
| `https://www.youtube.com/watch?v=8jPQjjsBbIc`, `https://youtu.be/...`, `/shorts/...`, `/live/...`, or a bare 11-character video ID | Transcript of that video |
| `https://www.youtube.com/@TED`, `@TED`, `/channel/UC...`, `/c/name` | Transcripts of the channel's newest videos (up to *Max videos per channel or playlist*) |
| `https://www.youtube.com/playlist?list=PL...` or a bare playlist ID | Transcripts of the playlist's videos, in playlist order |

### Input

| Field | Type | Default | Notes |
|---|---|---|---|
| `urls` | array of strings | `["https://www.youtube.com/watch?v=8jPQjjsBbIc"]` | Video, channel and playlist URLs, IDs or @handles. Entries that aren't YouTube links are skipped with a warning. |
| `maxVideosPerSource` | integer | `10` | Videos taken from each channel or playlist, newest first. 1 to 5,000. Single video URLs are always included. |
| `channelVideoType` | `videos` | `shorts` | `streams` | `all` | `videos` | Which channel uploads to take: long-form videos, Shorts, past live streams, or everything. Ignored for playlists and single videos. |
| `languages` | array of strings | `["en"]` | Preferred language codes in order, e.g. `["es", "en"]`. `en` also matches `en-GB`, `en-US`. |
| `fallbackToAnyLanguage` | boolean | `true` | If no preferred language exists, return the transcript in the video's spoken language (`requestedLanguageFound` will be `false`). If `false`, the video is reported as `no_captions` and not charged. |
| `captionType` | `any` | `manual` | `auto` | `any` | `any` prefers creator-uploaded captions and falls back to auto-generated. |
| `includeSegments` | boolean | `true` | Add the `segments` array (start, duration, text per caption line). |
| `includeSrt` | boolean | `true` | Add an SRT subtitle file as the `srt` string. |
| `includeVtt` | boolean | `true` | Add a WebVTT subtitle file as the `vtt` string. |
| `includeVideosWithoutTranscript` | boolean | `true` | Add a free record with the reason for videos that have no usable transcript (`no_captions`, `unavailable`, `error`). |
| `proxyConfiguration` | proxy object | Apify Proxy, residential | Leave it on. YouTube bot-checks Apify server IPs and Apify datacenter proxies, so runs need residential IPs. If you turn it off and YouTube blocks the run, the actor switches to residential proxy automatically. |

Example input for the 50 newest videos of a channel, Spanish first, English as backup, text only:

```json
{
    "urls": ["https://www.youtube.com/@TEDxTalks"],
    "maxVideosPerSource": 50,
    "languages": ["es", "en"],
    "includeSrt": false,
    "includeVtt": false
}
```

### Output

One record per video. A real record (from a test run; `text`, `segments`, `srt`, `vtt` and `availableLanguages` shortened here):

```json
{
  "videoId": "RCNO3k4QL5M",
  "url": "https://www.youtube.com/watch?v=RCNO3k4QL5M",
  "source": "https://www.youtube.com/@TED",
  "scrapedAt": "2026-10-05T23:24:47.511Z",
  "title": "How to Use Tech to Outsmart Dictators | Leopoldo López | TED",
  "channelName": "TED",
  "channelId": "UCAuUUnT6oDeKwE6v1NGQxug",
  "durationSeconds": 889,
  "viewCount": 30082,
  "availableLanguages": [
    { "code": "ar", "name": "Arabic", "isAutoGenerated": false },
    { "code": "en", "name": "English", "isAutoGenerated": false },
    { "code": "iw", "name": "Hebrew", "isAutoGenerated": false }
  ],
  "status": "ok",
  "language": "en",
  "languageName": "English",
  "isAutoGenerated": false,
  "requestedLanguageFound": true,
  "segmentCount": 271,
  "wordCount": 1913,
  "text": "Four months ago, my house was raided by the agents of the Venezuelan regime. They destroyed the walls, the ceilings and even killed my dogs. ...",
  "segments": [
    { "start": 4.335, "duration": 1.568, "text": "Four months ago," },
    { "start": 5.903, "duration": 3.904, "text": "my house was raided by the agents of the Venezuelan regime." },
    { "start": 10.307, "duration": 2.837, "text": "They destroyed the walls," }
  ],
  "srt": "1\n00:00:04,335 --> 00:00:05,903\nFour months ago,\n\n2\n00:00:05,903 --> 00:00:09,807\nmy house was raided by the agents of the Venezuelan regime.\n\n...",
  "vtt": "WEBVTT\n\n00:00:04.335 --> 00:00:05.903\nFour months ago,\n\n..."
}
```

| Field | Meaning |
|---|---|
| `status` | `ok` (transcript delivered, charged), `no_captions` (video has no transcript matching your settings), `unavailable` (private, deleted, members-only or age-restricted), `error` (gave up after retries). Only `ok` is charged. |
| `error` | For non-`ok` records, the reason, e.g. `No manual transcript in [en]. Available: en (auto).` |
| `source` | The input entry this video came from, so you can group channel/playlist results. |
| `segments[].start` / `duration` | Seconds, millisecond precision. |
| `isAutoGenerated` | `true` for YouTube's speech-recognition captions, `false` for captions the creator uploaded. |
| `availableLanguages` | Every caption track the video has, so you can re-run for a different language. |

The Console shows two table views: **Transcripts** (title, language, word count, text) and **Subtitles** (SRT and VTT). Download as JSON, CSV, Excel or via the API.

### Cost

$0.002 per transcript delivered, i.e. **$2 per 1,000 transcripts**. Videos without a transcript, unavailable videos and failures are never charged.

- 1 video: $0.002
- A 50-video channel back catalogue: about $0.10
- 1,000 transcripts: $2.00

Speed: in testing from a home connection, 130 videos from one channel took about 1 minute. If you set a maximum charge per run, the actor stops cleanly when it is reached and keeps everything already delivered.

### Known limitations

- **Only videos that have captions.** If a video has neither creator captions nor auto-generated ones (common for music-only videos, very new uploads and some non-English content), there is nothing to return. You get a free `no_captions` record saying so.
- **No machine translation.** You get the languages the video actually has (listed in `availableLanguages`). YouTube's "auto-translate" captions are not supported.
- **Live streams** only get captions after the broadcast ends and YouTube processes it. Ongoing and upcoming streams come back as `no_captions` or `unavailable`.
- **No private, members-only or age-restricted videos.** Those need a logged-in account, which this actor deliberately doesn't use.
- **Needs residential proxy on Apify.** Since October 2026, YouTube answers requests from Apify's servers and from Apify datacenter proxies with "Sign in to confirm you're not a bot". The actor uses Apify residential proxy by default. If you switch it off, it falls back to residential automatically when YouTube blocks it. If your account has no residential proxy access, the run fails with a clear message instead of returning an empty dataset.
- **Rate limits on very large runs.** YouTube throttles by IP. The actor paces requests, rotates proxy sessions, backs off and retries on throttling.
- **Rarely, YouTube serves an empty caption file** for a track it lists (seen on some auto-generated tracks). The actor retries, and if it stays empty, reports it as `no_captions` without charging.
- **Channel lists come from the channel's uploads**, newest first. Sorting by popularity and date ranges are not supported.
- This actor uses the same internal endpoints as YouTube's own apps. If YouTube changes them, runs may fail until the actor is updated; runs that deliver nothing fail loudly instead of reporting success with an empty dataset.

### Legal

This actor is not affiliated with, endorsed by or sponsored by YouTube or Google.

It reads publicly viewable caption data through the same unauthenticated endpoints YouTube's own web and mobile apps use. It does not log in and does not collect personal data about viewers. However, YouTube's Terms of Service restrict accessing the service by automated means without YouTube's permission, and that applies whether or not the data is publicly visible. Using this actor may therefore not comply with YouTube's Terms of Service. Transcripts are also the copyrighted content of the video's creator. You are responsible for your own compliance with YouTube's terms and with applicable law, including copyright, and for how you use the transcripts you collect.

# Actor input Schema

## `urls` (type: `array`):

One per line. Accepts video URLs (youtube.com/watch?v=..., youtu.be/..., /shorts/..., /live/...), bare 11-character video IDs, channel URLs (youtube.com/@handle, /channel/UC..., /c/name), @handles, and playlist URLs (youtube.com/playlist?list=...). Channels and playlists are expanded into their videos, newest first.

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

How many videos to take from each channel or playlist (newest first). Single video URLs are always included. 1 to 5000.

## `channelVideoType` (type: `string`):

Which uploads to take from channel URLs: regular videos, Shorts, past live streams, or all uploads. Has no effect on playlists or single videos.

## `languages` (type: `array`):

Language codes in order of preference, e.g. "en", "es", "pt-BR". "en" also matches regional variants such as "en-GB". The first one the video has is used.

## `fallbackToAnyLanguage` (type: `boolean`):

If none of the preferred languages exist, return the transcript in the video's spoken language instead of skipping it. The record's "requestedLanguageFound" field tells you when this happened.

## `captionType` (type: `string`):

"Any" prefers creator-uploaded (manual) captions and falls back to YouTube's auto-generated ones. "Manual only" and "Auto-generated only" restrict to one kind.

## `includeSegments` (type: `boolean`):

Add a "segments" array with start time, duration and text for every caption line.

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

Add the transcript as an SRT subtitle file in the "srt" field.

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

Add the transcript as a WebVTT subtitle file in the "vtt" field.

## `includeVideosWithoutTranscript` (type: `boolean`):

Add a free record (status "no_captions", "unavailable" or "error", with the reason) for videos that have no usable transcript, so you can see what was skipped. These records are never charged.

## `proxyConfiguration` (type: `object`):

Defaults to Apify residential proxy. YouTube bot-checks Apify server IPs and Apify datacenter proxies ("Sign in to confirm you're not a bot"), so without residential IPs most runs fail. If you turn the proxy off and YouTube blocks the run, the actor switches to residential proxy automatically.

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=8jPQjjsBbIc"
  ],
  "maxVideosPerSource": 10,
  "channelVideoType": "videos",
  "languages": [
    "en"
  ],
  "fallbackToAnyLanguage": true,
  "captionType": "any",
  "includeSegments": true,
  "includeSrt": true,
  "includeVtt": true,
  "includeVideosWithoutTranscript": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `transcripts` (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 = {
    "urls": [
        "https://www.youtube.com/watch?v=8jPQjjsBbIc"
    ],
    "languages": [
        "en"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("mibedk/youtube-transcript-scraper-reliable").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 = {
    "urls": ["https://www.youtube.com/watch?v=8jPQjjsBbIc"],
    "languages": ["en"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("mibedk/youtube-transcript-scraper-reliable").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 '{
  "urls": [
    "https://www.youtube.com/watch?v=8jPQjjsBbIc"
  ],
  "languages": [
    "en"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call mibedk/youtube-transcript-scraper-reliable --silent --output-dataset

```

## MCP server setup

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

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/TnkwBW5FflACmTGtr/builds/YpnEKExuugnfzjynJ/openapi.json
