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

Extract YouTube transcripts/captions as text + timestamps for videos, Shorts, whole channels and playlists. Any language, auto-translation, video metadata. $2 per 1,000 transcripts, no charge if no captions.

- **URL**: https://apify.com/thecreat0r/youtube-transcript-scraper.md
- **Developed by:** [Bob Stevens](https://apify.com/thecreat0r) (community)
- **Categories:** Videos, 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.00 / 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.

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?

**YouTube Transcript Scraper** extracts the **full transcript (captions/subtitles) of YouTube videos** – including whole **channels** and **playlists** – as clean text plus optional timestamped segments. Works with manual and auto-generated captions in any language, with optional auto-translation.

- 🎬 Videos, Shorts, live streams – paste URLs or IDs
- 📺 **Entire channels** (`@handle`, `/channel/UC…`) and **playlists** – transcribe the latest N videos in one run
- 🌍 Any language, falls back to the original language, optional YouTube auto-translation
- ⏱️ Plain text **and** timestamped segments (start, duration, text)
- 🧾 Video metadata: title, channel, duration, views, available caption languages
- 🔁 Built-in proxy fallback for reliable results

### Use cases

- **AI / LLM & RAG** – feed video content into ChatGPT, Claude, vector databases
- **Content repurposing** – turn videos into blog posts, newsletters, social posts
- **Research & monitoring** – analyse what a channel or competitor talks about
- **SEO** – quotes and keywords from videos
- **Accessibility & translation**

### Input example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://www.youtube.com/@veritasium",
    "https://www.youtube.com/playlist?list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab"
  ],
  "maxVideosPerChannel": 20,
  "language": "en",
  "translate": false,
  "includeTimestamps": true
}
```

### Output example

```json
{
  "videoId": "aircAruvnKk",
  "url": "https://www.youtube.com/watch?v=aircAruvnKk",
  "title": "But what is a neural network? | Deep learning chapter 1",
  "channel": "3Blue1Brown",
  "durationSeconds": 1121,
  "viewCount": 21000000,
  "language": "en",
  "isAutoGenerated": false,
  "wordCount": 3357,
  "text": "This is a 3. It's sloppily written and rendered at an extremely low resolution…",
  "segments": [{ "start": 4.22, "duration": 2.1, "text": "This is a 3." }],
  "availableLanguages": [{ "language": "en", "name": "English", "auto": false }]
}
```

Videos without captions are returned with an `error` field and are **not charged**.

### How much does it cost?

**$2 per 1,000 transcripts** ($0.002 per video) plus a tiny start fee per run. No charge for videos without a transcript.

Questions or feature requests? Open an issue – I usually reply within 24 hours.

# Actor input Schema

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

Video URLs/IDs (watch, youtu.be, shorts, live), playlist URLs (…?list=…) or channel URLs/handles (https://www.youtube.com/@mkbhd, @mkbhd, /channel/UC…). Playlists and channels are expanded to their videos.

## `maxVideosPerChannel` (type: `integer`):

For channel and playlist inputs: how many of the latest videos to transcribe.

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

Language code of the transcript, e.g. en, de, es. If not available, the Actor falls back to the original language (or auto-translates if 'Translate' is on).

## `translate` (type: `boolean`):

If the preferred language is missing, use YouTube's automatic translation.

## `includeTimestamps` (type: `boolean`):

Adds a 'segments' array with start time, duration and text for each caption line.

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

YouTube may block data-center IPs. Residential proxy is used automatically as a fallback.

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "maxVideosPerChannel": 50,
  "language": "en",
  "translate": false,
  "includeTimestamps": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All extracted records (dataset).

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

Counts per input and any inputs without results.

# 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=dQw4w9WgXcQ"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("thecreat0r/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=dQw4w9WgXcQ"] }

# Run the Actor and wait for it to finish
run = client.actor("thecreat0r/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=dQw4w9WgXcQ"
  ]
}' |
apify call thecreat0r/youtube-transcript-scraper --silent --output-dataset

```

## MCP server setup

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