# YouTube Transcript Scraper – Videos, Playlists & Channels (`pardoning_vacation/youtube-transcript-scraper`) Actor

Get YouTube transcripts and subtitles in any language from videos, Shorts, playlists and whole channels. Auto-translation, timestamps, SRT/VTT, video metadata. No API key, no login.

- **URL**: https://apify.com/pardoning_vacation/youtube-transcript-scraper.md
- **Developed by:** [Павел Тищенко](https://apify.com/pardoning_vacation) (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

Pay per event

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 (subtitles / captions) of any YouTube video — including **Shorts, whole playlists and entire channels** — in the language you choose. If a video has no transcript in your language, it is **auto-translated** using YouTube's own translation.

You get clean plain text for AI and analysis, timestamped segments, ready-made **SRT and WebVTT** subtitle files, and video metadata (title, channel, duration, views, description, keywords).

No YouTube API key, no login, no browser extensions. Run it from the Apify Console, through the API, on a schedule, or let your AI agent call it via MCP.

### Why use it?

- **Feed LLMs and RAG pipelines** with the spoken content of videos: summaries, Q\&A, embeddings, knowledge bases.
- **Repurpose content**: turn videos into blog posts, newsletters, social posts and show notes.
- **Research and monitoring**: analyse what competitors, creators or experts say across hundreds of videos.
- **SEO and accessibility**: get accurate subtitles to publish next to your own videos.
- **Language learning and translation**: get the same video's transcript in 100+ languages.

### Features

- ✅ Videos, Shorts, live replays, **playlists and channels** (Videos / Shorts / Live tabs) in one run
- ✅ **Any language** + automatic translation when the language is missing
- ✅ Human-made subtitles preferred over auto-generated ones (configurable)
- ✅ Plain text, timestamped segments, **SRT** and **VTT**
- ✅ Video metadata included
- ✅ Lists every language available for each video
- ✅ Clear per-video status: `ok`, `no_transcript`, or `error` with the reason — one bad URL never fails the whole run
- ✅ **You only pay for transcripts actually delivered.** Videos without captions are free.

### How to use it

1. Paste video, Shorts, playlist or channel URLs (or 11-character video IDs) into **YouTube URLs**.
2. Set the **Transcript language** (e.g. `en`, `es`, `de`, `pt-BR`, `ja`).
3. Click **Start**. Download results as JSON, CSV, Excel, or get them via API.

#### Input example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://www.youtube.com/shorts/aqz-KE-bpKQ",
    "https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI",
    "https://www.youtube.com/@veritasium"
  ],
  "language": "en",
  "translateIfMissing": true,
  "includeTimestamps": true,
  "outputFormats": ["srt"],
  "maxVideosPerSource": 20
}
```

#### Output example

```json
{
  "videoId": "dQw4w9WgXcQ",
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
  "channelName": "Rick Astley",
  "durationSeconds": 213,
  "viewCount": 1824820614,
  "status": "ok",
  "language": "en",
  "originalLanguage": "en",
  "isAutoGenerated": false,
  "isTranslated": false,
  "availableLanguages": [
    {
      "code": "en",
      "name": "English",
      "autoGenerated": false
    },
    {
      "code": "en",
      "name": "English (auto-generated)",
      "autoGenerated": true
    },
    {
      "code": "de-DE",
      "name": "German (Germany)",
      "autoGenerated": false
    }
  ],
  "wordCount": 487,
  "text": "[♪♪♪] ♪ We're no strangers to love ♪ ♪ You know the rules and so do I ♪ ♪ A full commitmen ...",
  "segments": [
    {
      "start": 1.36,
      "duration": 1.68,
      "text": "[♪♪♪]"
    },
    {
      "start": 18.64,
      "duration": 3.24,
      "text": "♪ We're no strangers to love ♪"
    }
  ],
  "srt": "1\n00:00:01,360 --> 00:00:03,040\n[♪♪♪]\n\n..."
}
```

Videos that have no captions return `"status": "no_transcript"` and are not charged.

### How much does it cost?

This Actor uses **pay-per-event** pricing: you pay a small fixed price **per transcript delivered** — see the Pricing tab for the current price. There is no charge for videos without captions, unavailable videos or invalid URLs. Platform usage is included in the price.

Example: transcripts of 1,000 videos cost the same as 1,000 delivered transcripts — no hidden compute or proxy fees.

### Tips

- To process a whole channel, paste the channel URL and raise **Max videos per playlist or channel**.
- Use **Channel tab** = `Shorts` to get transcripts of a channel's Shorts.
- Turn off **Include timestamped segments** if you only need the plain text — the dataset gets smaller and faster to download.
- Use the Apify API or the Apify MCP server to call this Actor from your own app or AI agent.

### FAQ

**Is it legal to scrape YouTube transcripts?** The Actor only reads publicly available captions that anyone can view on YouTube. You are responsible for how you use the data; respect copyright and YouTube's terms when republishing content.

**Why did a video return `no_transcript`?** The uploader disabled captions and YouTube did not generate automatic ones (common for music videos and videos without speech).

**Can I get auto-generated captions in another language?** Yes — set the language and keep **Auto-translate** on.

**Found a bug or need a feature?** Open an issue in the Issues tab — we respond quickly.

# Actor input Schema

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

Video, Shorts, playlist or channel URLs (e.g. https://www.youtube.com/@mkbhd), or plain 11-character video IDs. Playlists and channels are expanded to their videos.

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

Preferred language code, e.g. en, es, de, pt-BR, ja. If the video has no transcript in this language, the original transcript is auto-translated (see below).

## `translateIfMissing` (type: `boolean`):

Use YouTube's built-in translation when no transcript exists in the chosen language. If off, the original-language transcript is returned.

## `preferAutoGenerated` (type: `boolean`):

By default human-made subtitles are preferred over auto-generated ones when both exist.

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

Adds a `segments` array with start time, duration and text for every caption line. The full plain text is always included.

## `outputFormats` (type: `array`):

Also return the transcript as ready-to-use subtitle files.

## `includeMetadata` (type: `boolean`):

Title, channel, duration, view count, description, keywords and thumbnail.

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

How many videos to take from each playlist or channel URL.

## `channelTab` (type: `string`):

Which videos to take from channel URLs.

## `maxConcurrency` (type: `integer`):

How many videos are processed at the same time.

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "language": "en",
  "translateIfMissing": true,
  "preferAutoGenerated": false,
  "includeTimestamps": true,
  "outputFormats": [],
  "includeMetadata": true,
  "maxVideosPerSource": 20,
  "channelTab": "videos",
  "maxConcurrency": 5
}
```

# Actor output Schema

## `overview` (type: `string`):

Main results table.

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

Every field of every result item.

# 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("pardoning_vacation/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("pardoning_vacation/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 pardoning_vacation/youtube-transcript-scraper --silent --output-dataset

```

## MCP server setup

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