YouTube Scraper
Get YouTube Playlist
Retrieves a page of videos in a YouTube playlist, including each video's title, URL, thumbnail, duration, and channel. Accepts the playlist ID found in the 'list' URL parameter. The first page includes title, owner, and totalVideos. Later pages return videos and continuationToken without playlist metadata. Pass the previous response's continuationToken to get the next page. Stop when continuationToken is null.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| playlist_idstring · required | string | required | The ID of the YouTube playlist. In the YouTube URL it will be the 'list' parameter. |
| limitnumber · optional | number | optional | Maximum number of results to return from this request. Leave empty for everything this request returns. This trims the response — it does not fetch more; use the returned cursor for the next batch. The price is the same either way. |
| continuationTokenstring · optional | string | optional | Token from the previous response to get the next page. Omit for the first page. Stop when the returned continuationToken is null. |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"owner": {
"type": "object",
"additionalProperties": {}
},
"title": {
"type": "string"
},
"videos": {
"type": "array"
},
"totalVideos": {
"type": "number"
},
"limitApplied": {
"type": "boolean",
"description": "True when a Limit trimmed the results; there were more in this response."
},
"continuationToken": {}
},
"additionalProperties": true
}