Appearance
Playlist
GET /v1/youtube/playlist
Retrieves all videos in a YouTube playlist, including the playlist title, owner info, total video count, and each video's title, URL, thumbnail, duration, and channel. Accepts the playlist ID found in the 'list' URL parameter.
Authentication
All requests require the x-api-key header. Get your key at scrapecreators.com.
Query Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
playlist_id | string | yes | The ID of the YouTube playlist. In the YouTube URL it will be the 'list' parameter. | PLP32wGpgzmIlInfgKVFfCwVsxgGqZNIiS |
Example Request
curl
bash
curl 'https://api.scrapecreators.com/v1/youtube/playlist?playlist_id=PLP32wGpgzmIlInfgKVFfCwVsxgGqZNIiS' \
-H 'x-api-key: $SCRAPECREATORS_API_KEY'Node / TypeScript
js
const params = new URLSearchParams({ playlist_id: 'PLP32wGpgzmIlInfgKVFfCwVsxgGqZNIiS' });
const res = await fetch(`https://api.scrapecreators.com/v1/youtube/playlist?${params}`, {
headers: { 'x-api-key': process.env.SCRAPECREATORS_API_KEY }
});
const data = await res.json();
console.log(data);Python
python
import os, requests
r = requests.get(
'https://api.scrapecreators.com/v1/youtube/playlist',
headers={'x-api-key': os.environ['SCRAPECREATORS_API_KEY']},
params={'playlist_id': 'PLP32wGpgzmIlInfgKVFfCwVsxgGqZNIiS'},
)
r.raise_for_status()
print(r.json())CLI
bash
scrapecreators youtube playlist --helpExample Response
json
{
"success": true,
"credits_remaining": 99404,
"title": "Songs with Lyrics 2025 - New Songs 2025 - Music 2025 New Songs",
"owner": {
"id": "UC0-wiBH12UgtWqLjo-EvpOw",
"name": "Lovely Tunes",
"url": "https://www.youtube.com/@lovelytunes7622",
"handle": "lovelytunes7622"
},
"totalVideos": 98,
"videos": [
{
"id": "AdBzzpq3xV4",
"title": "Lady Gaga, Bruno Mars - Die With A Smile",
"thumbnail": "https://i.ytimg.com/vi/AdBzzpq3xV4/hqdefault.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLABnTkQJmfW0s1BMl_qa0FGqIGGqw",
"url": "https://www.youtube.com/watch?v=AdBzzpq3xV4",
"lengthText": "4:15",
"lengthSeconds": 255,
"channel": {
"title": "LatinHype",
"url": "https://www.youtube.com/@LatinHype."
}
}
]
}Credits
Most ScrapeCreators endpoints consume 1 credit per successful response. Some heavier endpoints (transcripts, AI-driven enrichment, ad detail lookups) may cost more. Check GET /v1/credit-balance for your remaining balance.
Errors
| Status | Meaning | Action |
|---|---|---|
| 200 | Success. | Use the JSON payload. |
| 400 | Invalid or missing parameter. | Verify required parameters and value format. |
| 401 | Missing or invalid x-api-key. | Pass a valid API key in the header. |
| 402 | Out of credits. | Top up at scrapecreators.com or wait for plan reset. |
| 404 | Resource not found or private. | Confirm the handle, URL, or id and that the resource is public. |
| 429 | Rate limited. | Backoff and retry with exponential delay. |
| 500 | Server error or upstream platform failure. | Retry with backoff; report persistent errors to support. |