# Export YouTube Playlist to CSV or Excel

**Use case:** 

Paste a playlist link and get every video as a table: position, title, channel, views, date, length and link. Download as CSV, Excel or JSON. Long playlists are read to the end, past the 200-video limit of the YouTube page: the 246-video example takes 5 seconds and costs $0.05.

## Input

```json
{
  "playlists": [
    "https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH"
  ],
  "resultType": "videos",
  "maxVideosPerPlaylist": 0,
  "maxPlaylistsPerChannel": 100,
  "maxPlaylistsPerSearch": 20,
  "includeUnavailable": true,
  "recoverDeletedTitles": false,
  "findReplacements": true,
  "maxRecoveries": 200,
  "onlyChanges": false,
  "monitorName": "default",
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "debugLog": false
}
```

## Output

```json
{
  "position": {
    "label": "#",
    "format": "number"
  },
  "title": {
    "label": "Video",
    "format": "text"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "previousTitle": {
    "label": "Title before deletion",
    "format": "text"
  },
  "replacementUrl": {
    "label": "Replacement",
    "format": "link"
  },
  "channelName": {
    "label": "Channel",
    "format": "text"
  },
  "views": {
    "label": "Views",
    "format": "number"
  },
  "publishedDate": {
    "label": "Published",
    "format": "text"
  },
  "duration": {
    "label": "Length",
    "format": "text"
  },
  "change": {
    "label": "Change",
    "format": "text"
  },
  "url": {
    "label": "Video link",
    "format": "link"
  },
  "playlistTitle": {
    "label": "Playlist",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [YouTube Playlist Scraper: Export CSV, Length & Deleted Videos](https://apify.com/s_actors/youtube-playlist-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/s_actors/youtube-playlist-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/s_actors/youtube-playlist-scraper.md

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`).
