# YouTube Playlist Scraper (`myagizm/youtube-playlist-scraper`) Actor

Collect public YouTube playlist video titles, order, channels, durations and direct watch URLs.

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

## Pricing

$0.20 / 1,000 playlist videos

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

## YouTube Playlist Scraper — Playlist Videos, Order & Channel Details

### Access and content limits

This Actor reads public playlist entries available to automated requests. It does not require a YouTube login, cookies, or a user-supplied API key. A public playlist page does not guarantee that every entry will be available to automated retrieval.

- Private playlists, removed videos, restricted entries, login requirements, bot verification, access denials, and rate limits are not bypassed. The Actor stops on an explicit restriction and does not switch identities.
- A run with no usable video rows fails and does not charge for error rows. Valid dataset rows are the billable unit.
- Playlist membership and order can change over time. The Actor returns a snapshot, not a permanent archive.

### What the Actor does

Provide one or more public YouTube playlist URLs. The Actor returns video records with playlist position, video title, channel, duration when available, playlist title, and a direct watch URL. Each row includes its source playlist URL so results from multiple playlists remain traceable.

This Actor lists playlist videos; it does not download the media, retrieve transcripts, or extract private playlist data.

### Quick start

1. Paste a public playlist URL into **Playlist URLs**. A public sample is prefilled.
2. Choose **Maximum videos per playlist** from 1 to 100.
3. Run the Actor and open the **Playlist videos** dataset view.
4. Export as JSON, CSV, Excel, or XML, or use the Apify API.

```json
{
  "playlistUrls": [
    "https://www.youtube.com/playlist?list=PLfZlP1BqbK6fSy07KdrHCXev-iV-Z7N_o"
  ],
  "maxItems": 20
}
```

### Input fields

| Field | Required | Description |
|---|---:|---|
| `playlistUrls` | Yes | One or more public YouTube playlist URLs containing a `list=` ID. Up to 10 playlists per run. |
| `maxItems` | No | Maximum video rows to collect from each playlist, from 1 to 100. Default: 20. |

The limit is per playlist. Two playlists with `maxItems: 10` can return up to 20 rows total. Shorter playlists and restricted entries may result in fewer rows.

### Output fields

Each row represents one playlist video.

| Field | Meaning |
|---|---|
| `id` | YouTube video ID. |
| `playlistUrl` | Playlist URL supplied for this result. |
| `playlistTitle` | Playlist title when available. |
| `position` | Position reported for the video in the playlist. |
| `title` | Public video title. |
| `url` | Direct video watch URL. |
| `channel` | Channel name when available. |
| `channelUrl` | Channel page URL when available. |
| `duration` | Duration in seconds when available. |

Optional values remain empty when the source does not provide them. The **Playlist videos** view is optimized for scanning; **Full result details** includes the complete row.

### Common uses

- **Playlist cataloging:** save playlist entries to a spreadsheet or database.
- **Course and lesson indexes:** collect the public video order from an educational playlist.
- **Music and podcast research:** keep titles, channels, durations, and positions together.
- **Channel and creator discovery:** see which channels appear in a public collection.
- **Change monitoring:** schedule repeat runs and compare snapshots in your own workflow.
- **Research datasets:** create a starting list for manual review or analysis.

### Billing and free-plan limits

The current price is **$0.20 per 1,000 valid video rows**. There is no separate charge for starting a run or submitting a playlist URL. Only valid video records are written to the dataset and charged; errors and empty runs are not billable rows.

On the Apify Free plan, this Actor is limited to 40 requested results per Apify user per UTC day. Paid Apify plans are not subject to that free-plan limit. A clear plan-limit message appears in the run log when the limit is reached.

### Limits and troubleshooting

- **Invalid URL:** use a YouTube playlist URL containing a `list=` playlist ID. A single video watch URL is not a playlist.
- **No rows:** the playlist may be empty, private, unavailable, or temporarily inaccessible. Check the URL and retry later if appropriate.
- **Some entries are missing:** deleted, private, or restricted videos may not be returned, and playlist order may have changed since a previous run.
- **Verification or access message:** the source has restricted automated access. The Actor stops rather than changing identities or attempting to bypass the restriction.
- **More than 100 rows per playlist:** run the Actor again with a different segment in your own workflow; each playlist is capped at 100 rows per run.

### Frequently asked questions

#### Does this download videos?

No. It returns public playlist metadata and watch URLs only.

#### Does it include private playlists?

No. Only public playlist entries accessible to automated requests can be returned.

#### Is `position` guaranteed to stay the same?

No. Playlist owners can reorder or edit entries at any time. Treat position as a snapshot.

#### Why did a run fail without dataset items?

An empty result is not treated as a successful billable extraction. Review the run message for invalid URL, temporary failure, or an explicit access restriction.

#### Can I submit more than one playlist?

Yes. Add up to 10 playlist URLs. Each output row includes `playlistUrl` to show its source.

### Related searches

YouTube playlist scraper, export YouTube playlist to CSV, playlist video list, YouTube playlist metadata, playlist order extractor, YouTube course playlist data, music playlist video list, podcast playlist index, YouTube playlist titles and durations, public YouTube playlist export.

***

## YouTube 播放列表抓取器 — 视频顺序、频道与时长

### 访问限制

本 Actor 会读取自动化请求能够访问的 YouTube 公开播放列表条目。无需 YouTube 登录、Cookie 或用户提供的 API 密钥。公开视频页面不代表每个条目都能被自动读取。

- 私人播放列表、已删除视频、受限条目、登录要求、人机验证、访问拒绝和速率限制都不会被规避。遇到明确限制时，Actor 会停止，不会更换身份。
- 没有可用视频行时，任务会失败，错误行不会收费。有效数据行才是计费单位。
- 播放列表内容和顺序可能变化。结果是当次快照，不是永久存档。

### 功能

输入一个或多个 YouTube 公开播放列表链接，获取视频顺序、标题、频道、可用时长、播放列表标题和直接观看链接。每条记录都保留来源播放列表 URL，方便追踪多个播放列表的结果。

本 Actor 用于列出播放列表视频，不下载媒体、不获取字幕，也不读取私人播放列表数据。

### 快速开始

1. 在 **Playlist URLs（播放列表链接）** 中粘贴公开播放列表链接，表单已预填一个公开示例。
2. 将 **Maximum videos per playlist（每个播放列表的最大视频数）** 设置为 1–100。
3. 运行后打开 **Playlist videos（播放列表视频）** 数据视图。
4. 可导出 JSON、CSV、Excel 或 XML，也可使用 Apify API。

```json
{
  "playlistUrls": [
    "https://www.youtube.com/playlist?list=PLfZlP1BqbK6fSy07KdrHCXev-iV-Z7N_o"
  ],
  "maxItems": 20
}
```

### 输入字段

| 字段 | 必填 | 说明 |
|---|---:|---|
| `playlistUrls` | 是 | 包含 `list=` 播放列表 ID 的 YouTube 公开播放列表链接，每次最多 10 个。 |
| `maxItems` | 否 | 每个播放列表最多收集的视频行数，范围 1–100，默认 20。 |

上限按每个播放列表计算。两个播放列表的 `maxItems` 均为 10 时，总共最多返回 20 行。播放列表较短或包含受限条目时，实际行数可能更少。

### 输出字段

每条数据行对应一个播放列表视频。

| 字段 | 含义 |
|---|---|
| `id` | YouTube 视频 ID。 |
| `playlistUrl` | 本条结果对应的播放列表链接。 |
| `playlistTitle` | 可用时提供的播放列表标题。 |
| `position` | 来源返回的视频播放列表顺序。 |
| `title` | 公开视频标题。 |
| `url` | 视频观看链接。 |
| `channel` | 可用时提供的频道名称。 |
| `channelUrl` | 可用时提供的频道页面链接。 |
| `duration` | 可用时提供的视频时长（秒）。 |

来源未提供的可选值会为空。**Playlist videos** 视图用于快速浏览；**Full result details** 包含完整记录。

### 常见用途

- **播放列表目录：** 将视频清单保存到表格或数据库。
- **课程索引：** 收集公开课程播放列表中的视频顺序。
- **音乐和播客研究：** 将标题、频道、时长和顺序保存在一起。
- **频道发现：** 查看公开播放列表中出现的频道。
- **变化监测：** 定期重复运行，并在自己的流程中比较快照。
- **研究数据集：** 建立供人工审核或分析使用的初始视频列表。

### 计费与免费计划限制

当前价格为 **每 1,000 条有效视频结果 $0.20**。启动任务或提交播放列表 URL 不另收费。只有有效视频记录会写入数据集并计费；错误信息和空运行不是可计费数据行。

Apify 免费计划用户每天（UTC）每个 Actor 最多请求 40 条结果。付费 Apify 计划不受此免费计划限额影响。达到限额时，运行日志会显示明确说明。

### 使用限制与排查

- **链接无效：** 使用包含 `list=` 播放列表 ID 的 YouTube 链接；单个视频观看链接不是播放列表。
- **没有结果：** 播放列表可能为空、私人、不可用或暂时无法访问。检查链接，必要时稍后重试。
- **部分视频缺失：** 已删除、私人或受限视频可能不会返回；播放列表也可能在两次运行之间被修改。
- **验证或访问提示：** 来源限制了自动访问。Actor 会停止，不会更换身份或尝试规避限制。
- **每个播放列表超过 100 行：** 可在自己的流程中分段安排后续运行；单次每个播放列表最多 100 行。

### 常见问题

#### 这个 Actor 会下载视频吗？

不会。它只返回公开视频列表元数据和观看链接。

#### 能读取私人播放列表吗？

不能。只返回自动化请求可访问的公开播放列表条目。

#### `position` 会保持不变吗？

不会。播放列表所有者随时可以重新排序或编辑条目，请把顺序视为当次快照。

#### 为什么没有数据行时任务会失败？

空结果不会被当作成功的数据提取收费。请查看运行消息中的链接错误、临时失败或明确访问限制。

#### 可以一次提交多个播放列表吗？

可以，最多 10 个。每行都会包含 `playlistUrl`，标明其来源。

### 相关搜索

YouTube 播放列表抓取器、YouTube 播放列表导出 CSV、播放列表视频清单、YouTube 播放列表元数据、播放顺序提取、YouTube 课程播放列表数据、音乐播放列表视频清单、播客播放列表索引、YouTube 视频标题和时长、公开播放列表导出。

### Errors & billing

Input errors finish with status SUCCEEDED, no results and no charge; see the OUTPUT record for the reason.

### 错误与计费

输入错误会以 SUCCEEDED 状态结束，不产生结果且不收费；原因请查看 OUTPUT 记录。

#### Shared YouTube free-plan daily budget

All free-plan YouTube users share one $1 daily service budget across all YouTube Actors (not $1 per user or Actor), resetting at 00:00 UTC. When exhausted, the run finishes SUCCEEDED with 0 rows and no charge; OUTPUT contains ok:false and errorType:FREE_LIMIT. Any paid Apify plan is unlimited.

#### YouTube 免费计划共享每日预算

所有 YouTube 免费计划用户、所有 YouTube Actor 共用一个每日 $1 的服务预算（不是每位用户或每个 Actor 各 $1），于 UTC 00:00 重置。预算耗尽时运行以 SUCCEEDED 结束，0 条结果、无收费；OUTPUT 返回 ok:false 和 errorType:FREE_LIMIT。任何付费 Apify 计划均不受此限制。

# Actor input Schema

## `playlistUrls` (type: `array`):

Public YouTube playlist URLs containing a list= playlist ID. Up to 10 playlists per run.

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

Maximum video rows to return from each playlist (1–100). Only valid dataset results are charged.

## Actor input object example

```json
{
  "playlistUrls": [
    "https://www.youtube.com/playlist?list=PLfZlP1BqbK6fSy07KdrHCXev-iV-Z7N_o"
  ],
  "maxItems": 3
}
```

# Actor output Schema

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

Video titles, playlist positions, channels, durations and watch URLs.

## `fullJson` (type: `string`):

All result fields as JSON.

# 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 = {
    "playlistUrls": [
        "https://www.youtube.com/playlist?list=PLfZlP1BqbK6fSy07KdrHCXev-iV-Z7N_o"
    ],
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("myagizm/youtube-playlist-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 = {
    "playlistUrls": ["https://www.youtube.com/playlist?list=PLfZlP1BqbK6fSy07KdrHCXev-iV-Z7N_o"],
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("myagizm/youtube-playlist-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 '{
  "playlistUrls": [
    "https://www.youtube.com/playlist?list=PLfZlP1BqbK6fSy07KdrHCXev-iV-Z7N_o"
  ],
  "maxItems": 3
}' |
apify call myagizm/youtube-playlist-scraper --silent --output-dataset

```

## MCP server setup

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