# YouTube Playlist Scraper: Chapters, Most Replayed & Transcripts (`kizukidata/youtube-playlist-chapters-scraper`) Actor

Paste YouTube playlist, channel or video URLs and get one row per video: playlist position, length, views, date, likes, comments, chapters with end times and links, and the 5 most replayed moments. Full transcripts optional. Private videos are free. Not affiliated with YouTube or Google.

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

## Pricing

from $0.32 / 1,000 video rows

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 Scraper: Chapters, Most Replayed & Transcripts

Put in YouTube playlist, channel or video URLs and get back one row per video: its position in the playlist, title, channel, length, views, publication date, likes and comment count, its chapters with start and end times and a link to each, the 5 most replayed moments, and YouTube's replay graph. Turn on **Add the full transcript** to get each video's transcript too. This is an unofficial tool, not affiliated with YouTube or Google.

Playlists are read in playlist order past the first 100 videos, as far as `maxItems` allows. Empty input (`{}`) reads 20 videos of one sample playlist.

### Use cases

- **Course and playlist indexes.** List a course playlist with every lesson's chapters and their lengths, ready for a syllabus, a search page or a spreadsheet.
- **Clips and highlights.** `mostReplayed` gives the moments viewers replay most in each video, with a link that opens the video at that second. With the transcript on, each moment carries the words said in it.
- **Channel research.** Name a channel and get its uploads, newest first, with views, likes, comments and how much of each video viewers rewatch.
- **Playlist monitoring.** With **Only new videos**, a scheduled run returns only videos added since the last run.
- **AI agents and RAG.** Chapters and transcripts give an agent the structure of a whole playlist in one call.

### What data can you get?

| Field | Description |
|---|---|
| `id`, `videoId`, `url` | The 11-character video ID (also the row ID) and `https://www.youtube.com/watch?v=<videoId>` |
| `playlistId`, `playlistTitle`, `playlistChannelName`, `playlistVideoCount` | The playlist the video was listed in, its title, its owner and the size its header shows. A channel's uploads are its `UU…` playlist (YouTube shows no size for it, so `playlistVideoCount` is `null`). `null` for a video named on its own |
| `playlistPosition` | The video's place in the playlist, `1` for the first. A video listed twice is returned once, and the videos after it move up one place |
| `title`, `channelName`, `channelId` | Video title and the uploader's channel |
| `durationSeconds`, `durationText` | Length in seconds and as YouTube shows it (`13:54`) |
| `viewCount`, `publishedAt`, `publishedTimeText` | Views, the publication date (`YYYY-MM-DD`) and the age the playlist shows (`10 years ago`). Views are exact; when the watch page shows none, the playlist's rounded count is used (`12K` is `12000`) |
| `likeCount`, `commentCount`, `commentCountText` | Likes, and the comment count as a number and as YouTube shows it (`1.7K` is `1700`; exact below 1,000) |
| `chapters`, `chapterCount`, `chaptersSource` | The chapters on the progress bar: `index`, `title`, `start`, `end`, `durationSeconds`, `timestamp` and `url` (the video opened at the chapter). `chaptersSource` is `description` (written by the uploader) or `auto` (generated by YouTube) |
| `mostReplayed` | Up to 5 most replayed moments, most replayed first: `rank`, `start`, `end`, `timestamp`, `url`, `intensity` (0-1), `labeledByYouTube` and `text` (what is said, with the transcript on) |
| `heatmap` | The replay graph of the whole video: `intervalSeconds` and `values` (heights from 0 to 1, usually 100 points) |
| `transcript`, `transcriptLanguage`, `captionKind`, `transcriptNote` | With **Add the full transcript**: the transcript as plain text, its language, `manual` or `auto`, and one sentence when it is missing or not in your language |
| `fetchedAt` | When the video was read |
| `error` | `null`, or `{type, message}` on an uncharged status row: `unavailable` (private, removed or not a video), `blocked`, `timeout`, `too-large` |
| `isNew` | Only with `onlyNewItems`: whether the video is new since the previous run |
| `source` | `YouTube` |

Every row has every field except `isNew`. Comment text and commenter names are not collected.

### How to use YouTube Playlist Scraper

1. Put **Playlists**, **Channels** and/or **Videos** into the input. Any YouTube link works in any of the three fields: a watch link that carries `list=` is read as its playlist.
2. Set **Maximum videos** (`maxItems`). The default is 20; raise it to read a long playlist.
3. Turn on **Add the full transcript** if you need the words as well.
4. Run it and read the dataset. Sort by `playlistPosition` for playlist order.

#### Input example: a whole course playlist

```json
{
    "playlists": ["https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH"],
    "maxItems": 300
}
```

#### Input example: a channel's newest videos with transcripts

```json
{
    "channels": ["https://www.youtube.com/@veritasium"],
    "includeTranscript": true,
    "languages": ["en"],
    "maxItems": 30
}
```

### Input

| Field | Default | What it does |
|---|---|---|
| `playlists` | `[]` | Playlist URLs or IDs, up to 50. A watch link with `list=` counts as the playlist. Videos come in playlist order, all pages, until `maxItems` |
| `channels` | `[]` | Channel URL, `@handle`, `/c/` or `/user/` URL, or channel ID, up to 20. The channel's uploads, newest first |
| `videos` | `[]` | Video URLs, Shorts links or IDs, up to 1,000, for videos you want without a playlist |
| `includeTranscript` | `false` | Add `transcript` and the words of each most replayed moment. Charged as an extra event per video that has a transcript |
| `languages` | `["en"]` | Transcript languages in order of preference (up to 10); used only with the transcript |
| `maxItems` | `20` | Maximum rows in one run, 1 to 5,000, across all inputs. Status rows count toward it but are not charged |
| `onlyNewItems` | `false` | Return only videos that earlier runs with the same input have not returned |
| `maxConcurrency` | `4` | Requests at once (1 to 5) |
| `proxyConfiguration` | Apify Proxy | Proxy settings (country, groups, or your own proxy URLs) |

#### Switching from another playlist Actor

The input also accepts field names other playlist tools use: `startUrls`, `urls`, `playlistUrls` and `playlist_url` are read as `playlists` (any YouTube link in them is sorted by what it names); `channelUrls` as `channels`; `videoUrls` as `videos`; `maxVideos`, `maxResults` and `limit` as `maxItems`.

### Output

One row per video, every field present. A video that is private or removed, or that YouTube did not answer for, still gets a row with `error` set, and that row is not charged. A video listed in two of your playlists is returned once.

#### Output example

One row of a real run (2026-11-17), the second video of CrashCourse's [Computer Science](https://www.youtube.com/playlist?list=PL8dPuuaLjXtNlUrzyH5r6jN9ulIgZBpdo) playlist. `chapters` (5 in the run), `mostReplayed` (5) and `heatmap.values` (100) are shortened here.

```json
{
    "id": "O5nskjZ_GoI",
    "source": "YouTube",
    "videoId": "O5nskjZ_GoI",
    "url": "https://www.youtube.com/watch?v=O5nskjZ_GoI",
    "title": "Early Computing: Crash Course Computer Science #1",
    "channelName": "CrashCourse",
    "channelId": "UCX6b17PVsYBQ0ip5gyeme-Q",
    "playlistId": "PL8dPuuaLjXtNlUrzyH5r6jN9ulIgZBpdo",
    "playlistTitle": "Computer Science",
    "playlistChannelName": "CrashCourse",
    "playlistVideoCount": 41,
    "playlistPosition": 2,
    "durationSeconds": 713,
    "durationText": "11:53",
    "viewCount": 4628706,
    "publishedAt": "2017-02-22",
    "publishedTimeText": "9 years ago",
    "likeCount": 83329,
    "commentCount": 1700,
    "commentCountText": "1.7K",
    "chapterCount": 5,
    "chaptersSource": "auto",
    "chapters": [
        {
            "index": 1,
            "title": "Introduction",
            "start": 0,
            "end": 148,
            "durationSeconds": 148,
            "timestamp": "0:00",
            "url": "https://www.youtube.com/watch?v=O5nskjZ_GoI&t=0s"
        },
        {
            "index": 2,
            "title": "Computing Origins",
            "start": 148,
            "end": 397,
            "durationSeconds": 249,
            "timestamp": "2:28",
            "url": "https://www.youtube.com/watch?v=O5nskjZ_GoI&t=148s"
        }
    ],
    "mostReplayed": [
        {
            "rank": 1,
            "start": 641.7,
            "end": 663.1,
            "timestamp": "10:41",
            "url": "https://www.youtube.com/watch?v=O5nskjZ_GoI&t=641s",
            "intensity": 0.99,
            "labeledByYouTube": true,
            "text": null
        },
        {
            "rank": 2,
            "start": 285.2,
            "end": 306.6,
            "timestamp": "4:45",
            "url": "https://www.youtube.com/watch?v=O5nskjZ_GoI&t=285s",
            "intensity": 0.976,
            "labeledByYouTube": true,
            "text": null
        }
    ],
    "heatmap": {
        "intervalSeconds": 7.13,
        "values": [
            0.56,
            0.396,
            0.393,
            0.424,
            0.37,
            0.305
        ]
    },
    "transcript": null,
    "transcriptLanguage": null,
    "captionKind": null,
    "transcriptNote": null,
    "fetchedAt": "2026-11-17T04:32:50.910Z",
    "error": null
}
```

With **Add the full transcript** on, the same row also carries `transcript` (the text), `transcriptLanguage` (`en`), `captionKind` (`manual` or `auto`) and a `text` in each `mostReplayed` moment. A video without a transcript keeps `transcript: null` with `transcriptNote: "This video has no caption track"`. A private or removed video returns `error: {"type": "unavailable", "message": "..."}` and is not charged.

### How much does it cost?

YouTube Playlist Scraper uses **pay-per-event** pricing: you pay per video row it returns, plus a run start fee, not for the time the run takes. There is no per-playlist fee: a 41-video playlist costs 41 rows.

| Apify plan (discount tier) | Per 1,000 videos | Transcript add-on per 1,000 videos |
|---|---|---|
| **Free** | $0.50 | $1.50 |
| **Starter (Bronze)** | $0.40 | $1.40 |
| **Scale (Silver)** | $0.36 | $1.35 |
| **Business (Gold)** | $0.32 | $1.30 |

Apify's Free plan includes USD 5 of monthly usage, which covers about 10,000 videos at the Free tier price, or about 2,500 videos with the transcript add-on, run start fees aside.

- **Run start fee**: USD 0.00005 per GB of memory per run (USD 0.00005 at this Actor's default 512 MB, as one GB is the minimum).
- One price covers the whole row: playlist fields, chapters, most replayed moments, replay graph, likes and comment count.
- The transcript add-on is charged only with **Add the full transcript** on, and only for videos that have a transcript. A video without one costs the video price only.
- Private, removed and unanswered videos return a row with `error` set and are not charged.
- Videos beyond `maxItems` are not requested and not charged.

### Use with AI agents (MCP)

Add this Actor to an MCP client through Apify's MCP server:

```
https://mcp.apify.com?tools=fetch-actor-details,kizukidata/youtube-playlist-chapters-scraper
```

- **Claude Code**: run `claude mcp add apify "https://mcp.apify.com?tools=fetch-actor-details,kizukidata/youtube-playlist-chapters-scraper" -t http`.
- **Claude (web or desktop app)**: open **Customize → Connectors**, choose **Add custom connector**, name it `Apify` and paste the server URL above.
- **Cursor**: add the server to `~/.cursor/mcp.json`:

```json
{
    "mcpServers": {
        "apify": { "url": "https://mcp.apify.com?tools=fetch-actor-details,kizukidata/youtube-playlist-chapters-scraper" }
    }
}
```

The server signs you in to Apify with OAuth. A client that cannot use OAuth can send your Apify API token in an `Authorization: Bearer <APIFY_TOKEN>` header instead. From an agent, always set `maxItems`; `heatmap` is 100 numbers per video, so ask the agent to read `chapters` and `mostReplayed` first.

### Integrations and API

#### Zapier, Make and n8n

Use the Apify integration, choose **Run Actor**, and pass `playlists` plus `maxItems`. Add **Get dataset items** and map `playlistPosition`, `title`, `url`, `chapters` and `mostReplayed`. For a playlist you watch, set `onlyNewItems: true` and use the new rows as the trigger.

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/kizukidata~youtube-playlist-chapters-scraper/runs" \
  -H "Authorization: Bearer <APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"playlists":["https://www.youtube.com/playlist?list=PL8dPuuaLjXtNlUrzyH5r6jN9ulIgZBpdo"],"maxItems":50}'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("kizukidata/youtube-playlist-chapters-scraper").call(run_input={"playlists": ["PL8dPuuaLjXtNlUrzyH5r6jN9ulIgZBpdo"], "maxItems": 50})
for item in sorted(client.dataset(run["defaultDatasetId"]).iterate_items(), key=lambda r: r["playlistPosition"] or 0):
    print(item["playlistPosition"], item["title"], [c["timestamp"] for c in item["chapters"]])
```

#### JavaScript

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<APIFY_TOKEN>' });
const run = await client.actor('kizukidata/youtube-playlist-chapters-scraper').call({ videos: ['https://www.youtube.com/watch?v=O5nskjZ_GoI'] });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0].mostReplayed);
```

### Limitations

- This Actor is unofficial and independent: it is not affiliated with, endorsed by or sponsored by YouTube or Google. It needs no login and no API key, and it never downloads video or audio.
- Only public videos are read. Private, removed, members-only and age-gated videos in a playlist return an uncharged status row. YouTube Mixes (`RD…`) are made per viewer and are not read.
- Chapters are the ones YouTube shows on the progress bar. A video without chapters returns an empty list.
- Most replayed needs enough views: new or little-watched videos have no replay graph, so `mostReplayed` is empty and `heatmap` is `null`.
- Comment counts above 999 are rounded by YouTube (`1.7K`). Like counts are exact unless the uploader hides them.
- Transcripts are the video's own caption tracks, never machine-translated. A video without one returns `transcript: null` with `transcriptNote` saying why, and is charged as a video only.
- `maxItems` is shared by all inputs. Playlists and channels are read in parallel, so with several of them a long one can fill the cap before a short one is read. Raise `maxItems` or run them separately when each needs its own count.
- Length of a single video named in `videos` comes from the replay graph (rounded to the second) when YouTube shows one; videos from a playlist take the length the playlist shows. A single video without a replay graph has `durationSeconds: null`, and its last chapter has `end: null`.

### FAQ

#### How long does a run take?

Each video is one small request, sent four at a time. In our test runs, 246 videos took about 90 seconds and 1,000 videos about 5 and a half minutes. With the transcript on, each video waits about a second longer.

#### Why are rows not in playlist order?

Videos are read in parallel, so rows arrive as they finish. Sort by `playlistPosition`.

#### Why is `mostReplayed` empty?

YouTube shows a replay graph only once a video has enough views, and not for very new videos.

#### Can I get only the videos added to a playlist since last time?

Yes: set `onlyNewItems` to `true`, save the input as a Task and schedule it.

### Related Kizuki Actors

- [YouTube Transcript Scraper](https://apify.com/kizukidata/youtube-transcripts): transcripts of single videos as text, Markdown, SRT, VTT or RAG chunks, with phrase search (`find`), time windows and `maxChars` for long videos.
- [YouTube Channel Scraper & Monitor](https://apify.com/kizukidata/youtube-channel-monitor): a channel's new videos with views, likes, length and the newest comments.
- [YouTube Comments Scraper](https://apify.com/kizukidata/youtube-comments-scraper): top or newest comments and reply rows of videos, Shorts and channels, with `onlyNewItems` for scheduled runs.
- [YouTube Shorts Scraper](https://apify.com/kizukidata/youtube-shorts-search): Shorts by keyword, channel or URL, with view counts, hashtags and optional transcripts.

### Your feedback

Bugs, a video whose chapters or moments came out wrong, and feature requests go to the Actor's **Issues** tab in Apify Console.

# Actor input Schema

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

Playlist URLs (/playlist?list=, or a watch link with list=) or playlist IDs, up to 50. Videos come in playlist order, past the first 100, until maxItems. Empty input reads 1 sample playlist.

## `channels` (type: `array`):

Channel URLs (/channel/, @handle, /c/, /user/) or channel IDs, up to 20. Reads the channel's uploads, newest first, until maxItems.

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

Single video URLs or 11-character IDs, up to 1000, for chapters and most replayed moments without a playlist. Playlist and channel links are accepted here too.

## `includeTranscript` (type: `boolean`):

Add each video's transcript as plain text and the words said in each most replayed moment. Charged as an extra event per video that has a transcript; videos without one are not charged for it.

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

Up to 10 caption language codes in priority order (e.g. en, ja). Used only with the transcript. Falls back to the spoken auto-captions with a note; never machine-translated.

## `maxItems` (type: `integer`):

Max rows per run (1-5000), across all playlists, channels and videos. Default 20; raise it for long playlists. Rows for private or removed videos count toward it but are not charged.

## `onlyNewItems` (type: `boolean`):

Skip videos returned in earlier runs with the same input, so a schedule returns only videos newly added to the playlist or channel. Failed rows are retried.

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

Concurrent requests (1-5, default 4). Lower it if many rows come back blocked.

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

Proxy settings (country, groups, or your own proxy URLs). Defaults to Apify Proxy.

## Actor input object example

```json
{
  "playlists": [],
  "channels": [],
  "videos": [],
  "includeTranscript": false,
  "languages": [
    "en"
  ],
  "maxItems": 20,
  "onlyNewItems": false,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Video rows returned by this run, one per video, in playlist order.

## `runSummary` (type: `string`):

Status code, counters and skipped input entries of this run.

# 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": [],
    "channels": [],
    "videos": [],
    "includeTranscript": false,
    "languages": [
        "en"
    ],
    "maxItems": 20,
    "onlyNewItems": false,
    "maxConcurrency": 4,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("kizukidata/youtube-playlist-chapters-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 = {
    "playlists": [],
    "channels": [],
    "videos": [],
    "includeTranscript": False,
    "languages": ["en"],
    "maxItems": 20,
    "onlyNewItems": False,
    "maxConcurrency": 4,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("kizukidata/youtube-playlist-chapters-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 '{
  "playlists": [],
  "channels": [],
  "videos": [],
  "includeTranscript": false,
  "languages": [
    "en"
  ],
  "maxItems": 20,
  "onlyNewItems": false,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call kizukidata/youtube-playlist-chapters-scraper --silent --output-dataset

```

## MCP server setup

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