# YouTube Playlist Scraper - All Videos & Channel Playlists (`scrolahdata/youtube-playlist-scraper`) Actor

Scrape YouTube playlists: every video with position, views, duration and channel, plus playlist title, video count, views and last update. All playlists of a channel or playlist search. No API key. $1 per 1,000 videos.

- **URL**: https://apify.com/scrolahdata/youtube-playlist-scraper.md
- **Developed by:** [Leping Gong](https://apify.com/scrolahdata) (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.80 / 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.
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: Videos, Channel Playlists & Playlist Search

Export **every video of any YouTube playlist** in playlist order: position, title, views, duration, channel and thumbnail. Each playlist also gets an info row with **title, description, video count, total views and last update date**. Paste a **channel URL** to list **all playlists of that channel**, or **search YouTube for playlists** by keyword. No YouTube API key, no quota, no login.

### What can it do?

- **Playlist videos**: all videos of a playlist (up to 5,000 per playlist) with `position`, `title`, `viewCount`, `durationSeconds`, `channelName`, `url`
- **Playlist info**: `playlistTitle`, `playlistDescription`, `videoCount`, `playlistViewCount`, `lastUpdated`, channel
- **All playlists of a channel**: paste `https://www.youtube.com/@name` and get each playlist (with or without its videos)
- **Playlist search**: find playlists for a keyword, e.g. courses, music mixes, tutorials
- **Optional full details**: likes, comment count, exact publish date, tags, description for every video
- Accepts playlist URLs, `watch?v=...&list=...` links and bare IDs (`PL...`, `UU...` uploads, `OL...` albums)

### Example input

Export a playlist:

```json
{
  "startUrls": [{ "url": "https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH" }],
  "maxResults": 500
}
```

List all playlists of a channel (info rows only):

```json
{
  "startUrls": [{ "url": "https://www.youtube.com/@TED" }],
  "includeVideos": false,
  "maxPlaylists": 100
}
```

Search playlists:

```json
{ "searchQueries": ["python course"], "maxPlaylists": 10, "maxResults": 50 }
```

### Output

Playlist row:

```json
{
  "type": "playlist",
  "playlistId": "PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH",
  "playlistTitle": "Coding Challenges",
  "videoCount": 246,
  "playlistViewCount": 2721980,
  "lastUpdated": "2026-04-27",
  "channelName": "The Coding Train",
  "channelUrl": "https://www.youtube.com/@TheCodingTrain"
}
```

Video row:

```json
{
  "type": "video",
  "playlistId": "PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH",
  "position": 1,
  "videoId": "17WoOqgXsRM",
  "title": "Coding Challenge 1: Starfield Simulation",
  "viewCount": 1300000,
  "durationSeconds": 834,
  "url": "https://www.youtube.com/watch?v=17WoOqgXsRM"
}
```

### Use cases

- **Course and tutorial catalogs**: export full course playlists with durations to build syllabi or learning apps
- **Music and podcast playlists**: track order, views and changes over time
- **Competitor research**: list every playlist a channel runs and how big each one is
- **Monitoring**: schedule runs and see when a playlist was last updated or which videos were added
- **Datasets for AI agents**: feed playlist video lists to transcript or summary pipelines (pair with our YouTube Transcript Scraper)

### Pricing

Pay per result: a small fixed price per row, plus an optional add-on for full details. Failed requests are never charged. Set *Maximum cost per run* to cap spending.

### More YouTube tools from ScrolahData

- [YouTube Scraper](https://apify.com/scrolahdata/youtube-scraper): search, channels, Shorts, playlists in one
- [YouTube Transcript Scraper](https://apify.com/scrolahdata/youtube-transcript-scraper): transcripts, SRT, LLM chunks
- [YouTube Comments Scraper](https://apify.com/scrolahdata/youtube-comments-scraper): comments and replies
- [YouTube Shorts Scraper](https://apify.com/scrolahdata/youtube-shorts-scraper) · [YouTube Channel Scraper](https://apify.com/scrolahdata/youtube-channel-scraper) · [YouTube Search Scraper](https://apify.com/scrolahdata/youtube-search-scraper)
- [YouTube Playlist Scraper](https://apify.com/scrolahdata/youtube-playlist-scraper): playlist videos and channel playlists
- [YouTube Rank Checker](https://apify.com/scrolahdata/youtube-rank-checker) · [YouTube Video Details Scraper](https://apify.com/scrolahdata/youtube-video-details-scraper)

### FAQ

**Do I need a YouTube API key?** No, and there's no daily quota.

**Why are likes or publish date empty?** Listings don't include them; switch on *Fetch full video details*.

**Is it legal?** It collects publicly available video metadata. Use the data responsibly and in line with applicable law.

**Need a feature?** Open an issue in the *Issues* tab, we answer fast.

# Actor input Schema

## `startUrls` (type: `array`):

Playlist URLs or IDs (PL..., UU..., OL...) to export, or channel URLs to list all their playlists.

## `searchQueries` (type: `array`):

Keywords: find playlists in YouTube search (e.g. "python course").

## `maxResults` (type: `integer`):

Videos to export from each playlist, in playlist order.

## `includeVideos` (type: `boolean`):

Off = only one info row per playlist (title, video count, views, last update) - handy for listing all playlists of a channel.

## `maxPlaylists` (type: `integer`):

For channel URLs and playlist search.

## `fetchDetails` (type: `boolean`):

Also fetch likes, comment count, exact publish date, tags and description for each video (charged extra).

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

Parallel requests.

## `residentialFallback` (type: `boolean`):

If YouTube blocks a request, retry through Apify residential proxy.

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

Proxy for the first attempts.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH"
    }
  ],
  "searchQueries": [],
  "maxResults": 100,
  "includeVideos": true,
  "maxPlaylists": 20,
  "fetchDetails": false,
  "maxConcurrency": 5,
  "residentialFallback": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH"
        }
    ],
    "searchQueries": [],
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrolahdata/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 = {
    "startUrls": [{ "url": "https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH" }],
    "searchQueries": [],
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("scrolahdata/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 '{
  "startUrls": [
    {
      "url": "https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH"
    }
  ],
  "searchQueries": [],
  "maxResults": 100
}' |
apify call scrolahdata/youtube-playlist-scraper --silent --output-dataset

```

## MCP server setup

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