---
title: "YouTube Playlist Scraper | ScrapeCrate"
description: "Every video of a YouTube playlist, in order. $0.01 per 1,000 videos, free monthly credit to try it. Run it from the web, the API or MCP."
url: https://scrapecrate.com/apps/youtube-playlist-videos
markdown: https://scrapecrate.com/apps/youtube-playlist-videos.md
---

# YouTube Playlist Scraper

Every video of a YouTube playlist, in order.

**Price:** $0.01 per 1,000 videos.

The videos of a playlist in their order, with title, channel, duration and position.

## Input

- `playlist_id` (string, required): Playlist ID: the list= value of a playlist URL (PL..., UU..., OLAK5uy_...)

## Use it from your code

```bash
curl -X POST "https://api.scrapecrate.com/v1/apps/youtube-playlist-videos/runs?wait=60" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"playlist_id":"PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI"},"max_items":100}'
```

```javascript
const res = await fetch("https://api.scrapecrate.com/v1/apps/youtube-playlist-videos/runs?wait=60", {
  method: "POST",
  headers: { "X-API-Key": process.env.API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": {
      "playlist_id": "PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI"
    },
    "max_items": 100
  }),
});
const { run } = await res.json();
console.log(run.status, run.result_count);

// The results
const items = await fetch(`https://api.scrapecrate.com/v1/runs/${run.id}/items?format=json`, {
  headers: { "X-API-Key": process.env.API_KEY },
}).then((r) => r.json());
```

```python
import os, requests

res = requests.post(
    "https://api.scrapecrate.com/v1/apps/youtube-playlist-videos/runs?wait=60",
    headers={"X-API-Key": os.environ["API_KEY"]},
    json={
      "input": {
        "playlist_id": "PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI"
      },
      "max_items": 100
    },
)
run = res.json()["run"]
print(run["status"], run["result_count"])

items = requests.get(
    f"https://api.scrapecrate.com/v1/runs/{run['id']}/items?format=json",
    headers={"X-API-Key": os.environ["API_KEY"]},
).json()["items"]
```

```bash
# Claude Code
claude mcp add --transport http scrapecrate https://api.scrapecrate.com/mcp

# Then ask, in Claude, ChatGPT or Cursor:
All videos of playlist PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI
```

## Output example

```json
{
  "video_id": "dQw4w9WgXcQ",
  "title": "Never Gonna Give You Up",
  "position": 1,
  "duration": 213,
  "view_count": 1600000000,
  "published_time_text": "15 years ago",
  "channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw",
  "channel_name": "Rick Astley",
  "thumbnail_url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg"
}
```

[API reference](https://scrapecrate.com/youtube-api.md)

You pay only for the results you get. Results are kept 30 days.
