# YouTube Playlist Scraper - Export Playlist Videos to CSV (`pipiagent/youtube-playlist-scraper`) Actor

Export every video of any public YouTube playlist to CSV, JSON or Excel, in playlist order: title, views, duration, publish time, channel and thumbnail, plus playlist data such as title, owner and size. Works for playlists of any length. No YouTube playlist API key, no quota, no login.

- **URL**: https://apify.com/pipiagent/youtube-playlist-scraper.md
- **Developed by:** [Frank0306](https://apify.com/pipiagent) (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.70 / 1,000 results

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

Export every video of any public [YouTube](https://www.youtube.com) playlist, in playlist order, without an API key and without the quota limits of the official YouTube Data API.

Use it to save a course or tutorial series as a table, to analyze a creator's series, to track playlists that a brand or a music label curates, or to collect video lists for research and AI datasets.

- **Every video, in order.** Each result has its `playlistPosition`, page after page until the playlist ends or your limit is reached. A 246-video playlist takes about 3 seconds.
- **Playlist details on every row.** Title, description, owner, number of videos and total views of the playlist.
- **Videos from any channel.** Playlists that mix channels keep the right channel on each video.
- **Numbers you can sort.** Text like "1.3M views" is parsed into a number, and the original text is kept.
- **No API key, no login and no proxy setup.**
- **Low price.** $1 per 1,000 videos.

### How to use it

1. Click **Try for free**.
2. Paste playlist links in **Playlist URLs**. Open the playlist on YouTube and copy the address, or copy a video link that contains `&list=`.
3. Click **Start**, then download the results as JSON, CSV or Excel.

### Input example

```json
{
    "playlistUrls": [
        "https://www.youtube.com/playlist?list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp",
        "https://www.youtube.com/watch?v=17WoOqgXsRM&list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH"
    ],
    "maxItemsPerQuery": 500
}
```

### Output example

```json
{
    "type": "video",
    "videoId": "X0kjv0MozuY",
    "url": "https://www.youtube.com/watch?v=X0kjv0MozuY",
    "title": "Coding Challenge #103: Fire Effect",
    "viewCount": 108000,
    "viewCountText": "108K views",
    "durationSeconds": 1776,
    "durationText": "29:36",
    "publishedTimeText": "8 years ago",
    "publishedAtEstimated": "2018-10-30T20:39:00Z",
    "isLive": false,
    "isShort": false,
    "channelName": "The Coding Train",
    "channelId": "UCvjgXvBlbQiydffZU7m1_aw",
    "channelHandle": "@TheCodingTrain",
    "channelUrl": "https://www.youtube.com/channel/UCvjgXvBlbQiydffZU7m1_aw",
    "channelIsVerified": true,
    "thumbnailUrl": "https://i.ytimg.com/vi/X0kjv0MozuY/hqdefault.jpg",
    "playlistPosition": 151,
    "playlistId": "PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH",
    "playlistUrl": "https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH",
    "playlistTitle": "Coding Challenges",
    "playlistDescription": "Is it the gravy train or a train wreck? Watch me take on some viewer submitted coding projects!",
    "playlistOwnerName": "The Coding Train",
    "playlistOwnerId": "UCvjgXvBlbQiydffZU7m1_aw",
    "playlistVideoCount": 246,
    "playlistViewCount": 2720005,
    "scrapedAt": "2026-10-28T20:39:00Z"
}
```

### How much does it cost?

You pay per saved result: **$1.00 per 1,000 videos**. There is no start fee and no monthly rental.

| Run | Results | Cost |
|---|---|---|
| One tutorial series | 40 | $0.04 |
| A 250-video playlist | 250 | $0.25 |
| A channel's full uploads playlist with 2,000 videos | 2,000 | $2.00 |

Set a maximum charge per run in the run options and the Actor stops when it is reached.

### Limits you should know

- **Public and unlisted playlists only.** Private playlists, Watch Later and Liked videos need a login and are skipped.
- **Mixes cannot be scraped.** Playlists whose id starts with `RD` are generated for each viewer.
- **Private, deleted and unavailable videos are left out**, as YouTube hides them from the playlist page. So the number of results can be lower than `playlistVideoCount`.
- **Dates are estimates.** Playlists show relative times such as "8 years ago". The Actor keeps that text and adds an estimated date in `publishedAtEstimated`. For exact dates and likes, feed the `url` values into the [YouTube Scraper](https://apify.com/pipiagent/youtube-scraper) in video details mode.
- **Likes and comment counts are not in the playlist.** YouTube does not show them there.

### Related Actors

- [YouTube Shorts Scraper](https://apify.com/pipiagent/youtube-shorts-scraper): Shorts by keyword or channel, with views, likes and hashtags.
- [YouTube Channel Videos Scraper](https://apify.com/pipiagent/youtube-channel-videos-scraper): every upload of a channel.
- [YouTube Search Scraper](https://apify.com/pipiagent/youtube-search-scraper): videos by keyword, upload date and sort order.
- [YouTube Comments Scraper](https://apify.com/pipiagent/youtube-comments-scraper): comments and replies of videos, top or newest first.
- [YouTube Scraper](https://apify.com/pipiagent/youtube-scraper): video details, comments with replies and channel profiles in one Actor.

### FAQ

**Is it legal?** The Actor collects only data that YouTube shows publicly to every visitor. Results can contain personal data such as usernames. Make sure you have a legitimate reason to process it, as required by the GDPR and similar laws.

**Something is broken or missing?** Open a ticket in the Issues tab. Issues are usually answered within a day.

# Actor input Schema

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

YouTube playlist URLs (youtube.com/playlist?list=...), video URLs that contain \&list=, or playlist ids like PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp. A channel's uploads playlist (UU...) works too.

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

Maximum number of results to save in this run. You are only charged for saved results.

## `maxItemsPerQuery` (type: `integer`):

Optional. Limits results for each playlist, so that one long playlist does not use up the whole run. Videos come in playlist order.

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

Optional. The Actor works without a proxy. Turn one on only if runs start failing with blocked requests.

## Actor input object example

```json
{
  "playlistUrls": [
    "https://www.youtube.com/playlist?list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp"
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Videos saved by the run, one item per video.

# 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=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pipiagent/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=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp"] }

# Run the Actor and wait for it to finish
run = client.actor("pipiagent/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=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp"
  ]
}' |
apify call pipiagent/youtube-playlist-scraper --silent --output-dataset

```

## MCP server setup

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