# Export YouTube Playlist Videos by Playlist ID

**Use case:** 

Use a raw YouTube playlist ID to collect public playlist video records without manually building a full playlist URL.

## Input

```json
{
  "playlistUrls": [
    {
      "url": "https://www.youtube.com/playlist?list=PL590L5WQmH8fJ54F369BLDSqIwcs-TCfs"
    }
  ],
  "playlistIds": [
    "PL590L5WQmH8fJ54F369BLDSqIwcs-TCfs"
  ],
  "maxVideos": 25,
  "includeUnavailable": false
}
```

## Output

```json
{
  "playlistTitle": {
    "label": "Playlist",
    "format": "text"
  },
  "playlistId": {
    "label": "Playlist ID",
    "format": "text"
  },
  "position": {
    "label": "Position",
    "format": "number"
  },
  "title": {
    "label": "Video title",
    "format": "text"
  },
  "videoUrl": {
    "label": "Video URL",
    "format": "link"
  },
  "videoId": {
    "label": "Video ID",
    "format": "text"
  },
  "channelName": {
    "label": "Channel",
    "format": "text"
  },
  "channelId": {
    "label": "Channel ID",
    "format": "text"
  },
  "durationText": {
    "label": "Duration",
    "format": "text"
  },
  "durationSeconds": {
    "label": "Seconds",
    "format": "number"
  },
  "viewCountText": {
    "label": "Views / metadata",
    "format": "text"
  },
  "publishedTimeText": {
    "label": "Published",
    "format": "text"
  },
  "thumbnailUrl": {
    "label": "Thumbnail",
    "format": "link"
  },
  "isPlayable": {
    "label": "Playable",
    "format": "boolean"
  },
  "playlistChannelName": {
    "label": "Playlist channel",
    "format": "text"
  },
  "playlistChannelId": {
    "label": "Playlist channel ID",
    "format": "text"
  },
  "playlistUrl": {
    "label": "Playlist URL",
    "format": "link"
  },
  "scrapedAt": {
    "label": "Scraped at",
    "format": "date"
  }
}
```

## About this Actor

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