# YouTube Playlist Scraper: Videos and Lists (`herus13/youtube-playlist-scraper`) Actor

List the videos of any YouTube playlist, or every playlist a channel has published, with no login and no API key. Each row has the title, link, position, duration, views and the playlist's own stats. Export JSON, CSV or Excel.

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

## Pricing

from $0.50 / 1,000 youtube 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

The YouTube Playlist Scraper lists the videos of any YouTube playlist, or every playlist a channel has published, with no login and no API key. Get one clean row per video with its position, title, link, duration and views, plus the playlist's own title, owner, video count and last update, ready for course catalogues, content audits and research.

### What you get

Two kinds of row. A `playlist_video` row is one video of a playlist, in playlist order, with the playlist's title, description, video count, views, last update and owner repeated on it. A `playlist` row is one playlist a channel published, with its title, link and owner. The channel listing does not show a playlist's video count or date; read the playlist itself for those.

```json
{
  "kind": "playlist_video",
  "playlist_id": "PLWKjhJtqVAbnqBxcdjVGgT3uVR10bzTEB",
  "playlist_url": "https://www.youtube.com/playlist?list=PLWKjhJtqVAbnqBxcdjVGgT3uVR10bzTEB",
  "playlist_title": "Python Tutorials",
  "playlist_description": "A collection of Python tutorials.",
  "playlist_video_count": 12,
  "playlist_view_count": 2405792,
  "playlist_updated_at": "2023-04-17",
  "playlist_owner_id": "UC8butISFwT-Wl7EV0hUK0BQ",
  "playlist_owner_name": "freeCodeCamp.org",
  "position": 1,
  "video_id": "eWRfhZUzrAc",
  "video_url": "https://www.youtube.com/watch?v=eWRfhZUzrAc",
  "video_title": "Python for Beginners – Full Course",
  "duration_seconds": 16800,
  "view_count": 4900000,
  "video_channel_name": "freeCodeCamp.org",
  "thumbnail_url": "https://i.ytimg.com/vi/eWRfhZUzrAc/hqdefault.jpg",
  "scraped_at": "2026-10-30T09:00:00Z",
  "_meta": {"author": "https://apify.com/herus13", "status": "ok", "message": null}
}
```

`_meta` is run metadata, not scraped data. Columns a row kind has no value for stay empty. `view_count` of a video is the rounded figure the playlist page shows (like `4.9M`). For exact views, likes and publish dates, pass the video links to the [YouTube Video Scraper](https://apify.com/herus13/youtube-video-scraper).

### What it costs

| Event | Price |
|---|---|
| Actor Start (`apify-actor-start`) | $0.00005 |
| YouTube playlist video (`playlist-video`) | $0.0005 |
| YouTube playlist (`playlist`) | $0.0005 |

### Input

| Field | Type | Required | Default | What it does |
|---|---|---|---|---|
| `playlist_urls` | array | no | — | YouTube playlists to read, one per entry, for example `https://www.youtube.com/playlist?list=PLWKjhJtqVAbnqBxcdjVGgT3uVR10bzTEB` or the playlist id. Each playlist returns its videos in order. An entry that is not a playlist is skipped with a warning naming it. Leave empty to read no playlists; with neither playlists nor channels the run stops with an error, so give at least one. |
| `channel_urls` | array | no | — | YouTube channels whose published playlists to list, one per entry, for example `https://www.youtube.com/@TED` or `@TED`. Each channel returns one row per playlist, without the videos inside it; pass a playlist's link above for those. Leave empty to list no channel playlists; with neither playlists nor channels the run stops with an error, so give at least one. |
| `max_videos_per_playlist` | integer | no | `200` | How many videos to read from each playlist, in playlist order. Default 200, minimum 0. Set 0 to read none. |
| `max_playlists_per_channel` | integer | no | `50` | How many playlists to list for each channel. Default 50, minimum 0. Set 0 to list none. |
| `max_results_total` | integer | no | `2000` | Stop after this many rows across all playlists and channels. Default 2000, minimum -1. Set 0 for no rows. Set -1 for no limit. |
| `proxyUrls` | array | no | — | Leave empty: the run uses the residential proxy this actor ships with, included in the price of the run. To route the run through your own provider instead, add one gateway URL per entry, for example `http://user:pass@host:port` — works with any provider that issues URLs. When set, the run uses these first and switches to the included proxy if they stop working, so a broken proxy never fails the run. |

### How to run it

1. Add playlist links to list their videos, channel links to list their playlists, or both.
2. Set how many videos per playlist and playlists per channel.
3. Run it and export the dataset as JSON, CSV or Excel.

The first 100 videos of a playlist and the 20 playlists of a channel:

```json
{
  "playlist_urls": [
    "https://www.youtube.com/playlist?list=PLWKjhJtqVAbnqBxcdjVGgT3uVR10bzTEB"
  ],
  "channel_urls": [
    "@TED"
  ],
  "max_videos_per_playlist": 100,
  "max_playlists_per_channel": 20
}
```

Minimal input:

```json
{
  "playlist_urls": [
    "https://www.youtube.com/playlist?list=PLWKjhJtqVAbnqBxcdjVGgT3uVR10bzTEB"
  ]
}
```

Available as the MCP tool `herus13--youtube-playlist-scraper` on mcp.apify.com, so an AI agent can call it with the same input.

### Use cases

- **Course and series catalogues**: list every lesson of a playlist in order with its duration.
- **Channel audits**: see how a channel organises its content into playlists.
- **Competitor research**: find which playlists a creator promotes and what they contain.
- **Link collections**: turn a curated playlist into a table for a site, newsletter or sheet.
- **Datasets**: build ordered video lists for a topic to feed analysis or AI pipelines.

### FAQ

**Does it need a YouTube account or API key?** No. It reads what any visitor can see, without logging in.

**Can I get a channel's playlists and their videos in one run?** Yes, in two steps in the same run: pass the channel to list its playlists, and pass the playlist links to read their videos. A channel row does not expand into videos by itself.

**Are private or deleted videos in a playlist included?** No. Only videos YouTube shows to an anonymous visitor are returned.

**What happens with a playlist that does not exist?** It returns no rows, costs nothing, and the run log names the playlist.

**Can I use my own proxy?** Yes. Paste gateway URLs into Your own proxy URLs and the run uses them first, then falls back to the included residential proxy if they fail.

**Is the data fresh?** Every run reads YouTube live, so rows reflect the moment of the run, and each row carries its `scraped_at` time.

**I use another YouTube playlist actor. Do I have to rewrite my input?** Usually not. Over the API or MCP, the run also reads the input of the most-used YouTube actors as you would send it to them. Single names work too: `startUrls` (links or `{"url": ...}` objects), `playlistUrls`, `playlists` or `playlistIds` for the playlists, and `maxVideos`, `maxResults` or `maxItems` for the videos per playlist (`maxItems` is also the total). A channel link meant for another actor's channel videos is not read as this actor's channel playlists. A field you set on this actor's own form always wins. A limit of 0 means none here, never "all"; a form whose 0 means all gets this actor's own limit instead. Sorts and filters from another actor are not translated, and the run log names anything it cannot use. Each playlist video row also carries the column names of the most-used YouTube actor (`id`, `title`, `duration`, `channelName`, `url`, `viewCount`, `fromYTUrl`), filled from this actor's own data and left empty where it has none, so an export or integration built for that actor keeps working.

### Related actors

- [YouTube Video Scraper](https://apify.com/herus13/youtube-video-scraper) — full details of any YouTube video.
- [YouTube Channel Scraper](https://apify.com/herus13/youtube-channel-scraper) — profile, joined date and links of YouTube channels.
- [YouTube Search Scraper](https://apify.com/herus13/youtube-search-scraper) — find videos, channels and playlists by keyword.

# Actor input Schema

## `playlist_urls` (type: `array`):

YouTube playlists to read, one per entry, for example `https://www.youtube.com/playlist?list=PLWKjhJtqVAbnqBxcdjVGgT3uVR10bzTEB` or the playlist id. Each playlist returns its videos in order. An entry that is not a playlist is skipped with a warning naming it. Leave empty to read no playlists; with neither playlists nor channels the run stops with an error, so give at least one.

## `channel_urls` (type: `array`):

YouTube channels whose published playlists to list, one per entry, for example `https://www.youtube.com/@TED` or `@TED`. Each channel returns one row per playlist, without the videos inside it; pass a playlist's link above for those. Leave empty to list no channel playlists; with neither playlists nor channels the run stops with an error, so give at least one.

## `max_videos_per_playlist` (type: `integer`):

How many videos to read from each playlist, in playlist order. Default 200, minimum 0. Set 0 to read none.

## `max_playlists_per_channel` (type: `integer`):

How many playlists to list for each channel. Default 50, minimum 0. Set 0 to list none.

## `max_results_total` (type: `integer`):

Stop after this many rows across all playlists and channels. Default 2000, minimum -1. Set 0 for no rows. Set -1 for no limit.

## `proxyUrls` (type: `array`):

Leave empty: the run uses the residential proxy this actor ships with, included in the price of the run. To route the run through your own provider instead, add one gateway URL per entry, for example `http://user:pass@host:port` — works with any provider that issues URLs. When set, the run uses these first and switches to the included proxy if they stop working, so a broken proxy never fails the run.

## Actor input object example

```json
{
  "playlist_urls": [
    "https://www.youtube.com/playlist?list=PLWKjhJtqVAbnqBxcdjVGgT3uVR10bzTEB"
  ],
  "max_videos_per_playlist": 200,
  "max_playlists_per_channel": 50,
  "max_results_total": 2000
}
```

# Actor output Schema

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

One row per playlist video, or per playlist of a channel.

# 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 = {
    "playlist_urls": [
        "https://www.youtube.com/playlist?list=PLWKjhJtqVAbnqBxcdjVGgT3uVR10bzTEB"
    ]
};

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

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

```

## MCP server setup

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