# YouTube Transcripts & Subtitles: Bulk, Channels, Playlists (`stoplus/youtube-transcripts`) Actor

Get YouTube transcripts in bulk from video, Shorts, channel and playlist URLs. Clean text, timestamps or SRT, any caption language. You pay only for transcripts delivered.

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

## Pricing

$2.50 / 1,000 transcript delivereds

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 Transcripts do?

**YouTube Transcripts** gets the transcript (captions / subtitles) of YouTube videos in bulk. Paste video links, Shorts, channel or playlist URLs, and get clean transcript text for each video, with optional timestamps and SRT subtitles.

- **Bulk input:** video URLs, video IDs, Shorts, live streams, channels (`@handle` or `/channel/UC…`) and playlists in one run
- **Clean text** ready for LLMs, RAG, summaries and search, plus title, channel, duration and caption language
- **Timestamps and SRT** when you need them
- **Any caption language:** choose your preferred languages; manual captions win over auto-generated ones
- **Fair pricing:** you pay only for transcripts actually delivered. Videos without captions cost nothing
- **No YouTube API key, no login, no proxy setup**

### What can I use YouTube transcripts for?

- Feed video content to ChatGPT, Claude or your own RAG pipeline
- Summarize lectures, podcasts and webinars
- Research competitors' channels and content strategy
- Repurpose videos into blog posts, newsletters and social posts
- Build datasets for NLP and sentiment analysis
- Make videos searchable inside your app

### How much does it cost to get YouTube transcripts?

This Actor uses **pay per event** pricing: you are charged a fixed price **per transcript delivered**. The current price is shown on the Pricing tab. Failed videos and videos without captions are free, and platform usage is included in the price.

You can cap the cost of each run with the **Maximum cost per run** setting: the Actor stops when the limit is reached.

### How to get YouTube transcripts

1. Click **Try for free**.
2. Paste video links into **Video URLs or IDs**, or channel and playlist links into **Channel or playlist URLs**.
3. Choose preferred languages (default `en`) and whether you want timestamps or SRT.
4. Click **Start** and download results as JSON, CSV, Excel or HTML, or get them through the Apify API.

### Input example

```json
{
  "videos": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ", "https://youtu.be/jNQXAC9IVRw"],
  "channelsAndPlaylists": ["https://www.youtube.com/@TED"],
  "maxVideosPerChannel": 5,
  "languages": "en,es",
  "includeTimestamps": false,
  "includeSrt": false
}
```

### Output example

```json
{
  "videoId": "dQw4w9WgXcQ",
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "status": "ok",
  "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
  "channel": "Rick Astley",
  "language": "en",
  "isAutoGenerated": false,
  "availableLanguages": ["de-DE", "en", "es-419", "ja", "pt-BR"],
  "durationSec": 211,
  "chars": 2089,
  "text": "[♪♪♪] ♪ We're no strangers to love ♪ ♪ You know the rules and so do I ♪ ..."
}
```

With **Include timestamped segments**, each row also has `segments: [{ "start": 18.64, "duration": 3.24, "text": "♪ We're no strangers to love ♪" }, …]`. With **Include SRT subtitles**, the `srt` field holds a ready subtitle file.

Videos that have no captions come back as `"status": "no_transcript"` with the reason, and you are not charged for them.

### Using the API and integrations

Run the Actor from your code with the Apify API or the [Apify JavaScript](https://docs.apify.com/api/client/js/) and [Python](https://docs.apify.com/api/client/python/) clients, or connect it to Make, Zapier, n8n, Google Sheets and other integrations. It also works as a tool for AI agents through the Apify MCP server.

### FAQ

**Which videos work?** Any public video that has captions, manual or auto-generated. Private, age-restricted and caption-less videos return `no_transcript` for free.

**How many videos per channel?** Channels and playlists use the official YouTube feed, which lists the latest 15 videos. For older videos, paste their links into **Video URLs or IDs**.

**What about very long videos?** Text is limited to 200,000 characters and timestamps to 10,000 segments per video, enough for several hours of speech. If a video goes over the limit, the row has `"truncated": true`.

**Does it translate?** It returns the caption tracks that YouTube has. Ask for a language in **Preferred languages**: if no track matches, the first available track is returned, and `availableLanguages` lists all of them.

**Is it legal?** The Actor reads only publicly available captions. Make sure your use of the data complies with YouTube's terms and copyright law in your country.

**Something does not work?** Open an issue on the Issues tab with the video link. Temporary YouTube errors are retried automatically.

# Actor input Schema

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

YouTube video links (watch, youtu.be, Shorts, live) or 11-character video IDs.

## `channelsAndPlaylists` (type: `array`):

Channel (@handle, /channel/UC…) or playlist URLs. Transcripts are fetched for the latest videos of each (up to 15, from the YouTube feed).

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

How many of the latest videos to take from each channel or playlist (1–15).

## `languages` (type: `string`):

Comma-separated caption language codes in order of preference, e.g. "en,es". Manual captions are preferred over auto-generated. If none match, the first available track is returned.

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

Add a list of segments with start time and duration (up to 10,000 per video, enough for about 6 hours).

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

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

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "maxVideosPerChannel": 15,
  "languages": "en",
  "includeTimestamps": false,
  "includeSrt": false
}
```

# Actor output Schema

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

One row per video: transcript text, title, channel, language and status.

# 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("stoplus/youtube-transcripts").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("stoplus/youtube-transcripts").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 stoplus/youtube-transcripts --silent --output-dataset

```

## MCP server setup

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

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/LkDtbCSZJoe9rDTkJ/builds/dvqCfB0UQZbdDLNQl/openapi.json
