# YouTube Playlist Transcripts: all videos of a playlist, one run (`steadydata/youtube-playlist-transcripts`) Actor

Transcripts for the videos of a YouTube playlist in one run, up to 50 playlists: give a playlist URL or id, get one row per video with full transcript text, language, duration and views. Videos without captions cost nothing. Pay per transcript.

- **URL**: https://apify.com/steadydata/youtube-playlist-transcripts.md
- **Developed by:** [Steadydata Team](https://apify.com/steadydata) (community)
- **Categories:** Videos, AI, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.75 / 1,000 transcript fetcheds

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 Playlist Transcripts: all videos of a playlist, one run

Transcripts for the videos of a YouTube playlist in one run, up to 50 playlists: give a playlist URL or id, get one row per video with full transcript text, language, duration and views. Videos without captions cost nothing. Pay per transcript.

### Why this scraper

- **Only delivered results are charged.** Inputs that fail come back as clear error
  records at no cost.
- One run, no glue: the playlist is walked over the slim Innertube route (about 2 KB per video instead of the tens of kilobytes a playlist page costs) and every video is sent straight into the transcript route. Measured on a 5-video review playlist: 5 transcripts of roughly 12,000 characters each, one row per video, in a single run.
- Honest counting: a video without captions is never a row and never charged; it is counted in `skippedNoCaptions` on every row of that playlist, so the gap is visible instead of silent. A playlist that YouTube does not know comes back as one error row with `NOT_FOUND`.

### Who this is for

Paste playlist URLs or bare playlist ids in `playlists` (up to 50 per run), set `maxVideosPerPlaylist` (default 20, ceiling 200) and press Start. Every delivered row carries the playlist id and title, the video's position in the list, its channel, the transcript language, whether the captions were auto-generated and the full transcript text. Turn on `includeTimestampedSnippets` when the text has to be aligned to the video.

### Who this is not for

Only videos that have captions (manual or auto-generated) produce a row. Music playlists and very new uploads often have none; those videos are counted in `skippedNoCaptions` rather than delivered. Private, deleted and members-only videos are skipped the same way. The transcript is text, not a translation: the language you get is the language the captions are in, unless you list preferred `languages`.

### Input example

```json
{
    "playlists": [
        "https://www.youtube.com/playlist?list=PLBsP89CPrMeNm71T5gYC6jebm9vPbLBiP"
    ],
    "maxVideosPerPlaylist": 20,
    "languages": [],
    "preferManualCaptions": true,
    "includeTimestampedSnippets": false
}
```

### Output example

- `playlistId`
- `playlistTitle`
- `position`
- `videoId`
- `url`
- `title`
- `channelName`
- `durationSeconds`
- `language`
- `isAutoGenerated`
- `text`
- `snippets`
- `skippedNoCaptions`

Error codes: `INVALID_PLAYLIST`, `PLAYLIST_NOT_FOUND`, `NO_VIDEOS`, `NO_TRANSCRIPT`, `BLOCKED`.

One delivered row looks like this:

```json
{
  "playlistId": "PLBsP89CPrMeNm71T5gYC6jebm9vPbLBiP",
  "playlistTitle": "Reviews!",
  "position": 1,
  "videoId": "ohqxP8EEumo",
  "url": "https://www.youtube.com/watch?v=ohqxP8EEumo",
  "title": "iPhone 18 Pro Review: All About that Chip",
  "channelName": "Marques Brownlee",
  "channelId": "UCBJycsmduvYEL83R_U4JriQ",
  "durationSeconds": 995,
  "language": "en",
  "isAutoGenerated": false,
  "text": "So if this were back in 2011, this is what we would call an S update. The iPhone 18 Pro is basically an iPhone 17 Pro with a chip update, a camera upgrade, and ...",
  "skippedNoCaptions": 0,
  "status": "ok"
}
```

### Related actors from steadydata

- [youtube-playlist-videos](https://apify.com/steadydata/youtube-playlist-videos): the video list of the playlist, without transcripts
- [youtube-channel-transcripts](https://apify.com/steadydata/youtube-channel-transcripts): the same idea for a whole channel
- [youtube-transcript-bulk](https://apify.com/steadydata/youtube-transcript-bulk): transcripts for a list of specific videos

### Pricing

Pay per event: one `transcript-fetched` event per delivered result. No charge for inputs
that fail, no separate platform-usage surcharge.

**Free Apify plan:** this actor delivers up to 25 rows per run for accounts on the Apify free
plan, and then stops with a message. That limit is set by us, not by Apify. It exists so the
actor keeps paying for itself for the people who do pay. Any paid Apify plan runs it at full
size, billed per delivered row, with failed rows never charged.

**Reviews:** if this actor saves you time, a short review on this page is the one thing that
helps most. Ratings are what other buyers look at first, and we have no other way to ask.

### FAQ

**Do I pay for videos without captions?** No. Only a delivered transcript is charged; a playlist that fails or a video without captions costs nothing.

**How long can the playlist be?** Up to 200 videos per playlist per run (`maxVideosPerPlaylist`); larger playlists are cut at that ceiling, in playlist order.

**Which language do I get?** The manual captions of the video when they exist, otherwise the auto-generated ones. Pass `languages` (for example `["en", "nl"]`) to prefer specific tracks, and `preferManualCaptions: false` to take auto-generated captions first.

**Can I get timestamps?** Yes, set `includeTimestampedSnippets` to true and every row gets a `snippets` list with start time, duration and text per caption line.

**What about a private or unlisted playlist?** Private playlists cannot be read; unlisted ones work as long as you have the URL.

**Is personal data collected?**
The transcript is the caption track YouTube exposes for that video; it is not generated by this actor and the text follows the captioner, including its punctuation and line breaks.

**What happens when the source changes?**
Sources change from time to time; that is the nature of this work. The actor is
monitored daily and fixed fast, and while it is broken you are not charged, because
only delivered results cost anything.

# Changelog

This Actor's version history is a separate document: https://apify.com/steadydata/youtube-playlist-transcripts/changelog.md

# Actor input Schema

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

One per row, up to 50: a playlist id (PL...) or any YouTube URL with list=.

## `maxVideosPerPlaylist` (type: `integer`):

Cost ceiling per playlist, in playlist order.

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

Language codes in order of preference, for example en, nl, de. Empty takes the video's default track.

## `preferManualCaptions` (type: `boolean`):

On, a human-made track wins over an auto-generated one when both exist.

## `includeTimestampedSnippets` (type: `boolean`):

On, each row also carries the transcript as timed snippets.

## Actor input object example

```json
{
  "playlists": [
    "https://www.youtube.com/playlist?list=PLBsP89CPrMeNm71T5gYC6jebm9vPbLBiP"
  ],
  "maxVideosPerPlaylist": 20,
  "languages": [],
  "preferManualCaptions": true,
  "includeTimestampedSnippets": false
}
```

# Actor output Schema

## `results` (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 = {
    "playlists": [
        "https://www.youtube.com/playlist?list=PLBsP89CPrMeNm71T5gYC6jebm9vPbLBiP"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadydata/youtube-playlist-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 = { "playlists": ["https://www.youtube.com/playlist?list=PLBsP89CPrMeNm71T5gYC6jebm9vPbLBiP"] }

# Run the Actor and wait for it to finish
run = client.actor("steadydata/youtube-playlist-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 '{
  "playlists": [
    "https://www.youtube.com/playlist?list=PLBsP89CPrMeNm71T5gYC6jebm9vPbLBiP"
  ]
}' |
apify call steadydata/youtube-playlist-transcripts --silent --output-dataset

```

## MCP server setup

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