YouTube Playlist
0.5 creditsGet videos from a YouTube playlist.
/api/v1/tools/youtube/playlistParameters
YouTube playlist ID (e.g. "PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf").
Maximum number of videos to return. Defaults to 100.
Fields to include per playlist video. Omit for defaults: videoId, title, channelName, duration, index. Use ["*"] for all fields. Available fields: videoId, title, channelName, duration, index, thumbnailUrl, thumbnails, durationSeconds. Playlist metadata is always returned.
Response Schema
YouTube playlist result
Playlist ID
Playlist title
Playlist description
Playlist author name
Total videos in the playlist
Total playlist view count
When the playlist was last updated
Sum of all video durations in seconds
Array of playlist video objects.
Number of videos returned
True if results were cut short. Only present when truncation occurred.
Request metadata
Tool name (youtube-playlist)
Credits consumed (1)
Unique request ID
Request
curl -X POST https://scraper.run/api/v1/tools/youtube/playlist \-H "Authorization: Bearer sc_live_..." \-H "Content-Type: application/json" \-d '{"playlistId": "PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf","maxVideos": 50}'
Response Example
{"data": {"playlistId": "PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf","title": "JavaScript Crash Course","description": "Learn JS from scratch.","author": "Traversy Media","videoCount": 12,"viewCount": 450000,"lastUpdated": "Updated 2 months ago","totalDurationSeconds": 14400,"videos": [{"videoId": "hdI2bqOjy3c","title": "JavaScript Crash Course For Beginners","channelName": "Traversy Media","duration": "1:40:30","index": 0}],"count": 1},"meta": {"tool": "youtube-playlist","creditsUsed": 0.5,"requestId": "req_abc123"}}