YouTube Playlist Videos
YouTube Playlist Videos are entries grouped in a public playlist, with video identity, titles, channel context, thumbnails, duration, and playlist provenance. These records support playlist cataloging, series indexing, content review, and video-link enrichment.
YouTube Playlist Videos API Features
- Multi-playlist URL and ID inputProcess one or more public playlist URLs or raw playlist IDs in a task, with results_limit applied separately to each resolved playlist.
- Normalized video catalog rowsThe YouTube Playlist Videos API returns video IDs, titles, canonical URLs, channel identity, one thumbnail, duration in seconds, and collection time in a consistent structure.
- Playlist and owner provenanceRetain playlist ID, playlist title, readable duration text, and playlist-owner context when a video row does not expose its own channel fields.
YouTube Playlist Videos API Parameters
| Parameters | Required | Description |
|---|---|---|
urls | Required | One or more public playlist URLs containing a list query value or raw playlist IDs, separated by commas or new lines. |
results_limit | Optional | Maximum records to keep from each playlist's returned video array; defaults to 100 and accepts integers from 10 through 2,000. |
How to Use the YouTube Playlist Videos API
Submit known public playlist references to the YouTube Playlist Videos API as an asynchronous task, then page through the persisted normalized video rows after the task succeeds.
- Prepare one or more public playlist URLs containing a list query value or raw playlist IDs, and remove duplicate references.
- POST urls and an optional results_limit from 10 through 2,000 to /v1/youtube/playlist-videos, then save the returned task_id.
- Poll /v1/tasks/{task_id} until the task status is succeeded or failed.
- Read data.results.items and continue with results.next_cursor while results.has_more is true; reconcile playlist IDs and video IDs with your source set.
curl -X POST "https://api.socq.ai/v1/youtube/playlist-videos" \
-H "Authorization: Bearer $SOCQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"urls":["https://www.youtube.com/playlist?list=PLP32wGpgzmIlInfgKVFfCwVsxgGqZNIiS"],"results_limit":100}'
# Poll GET /v1/tasks/{task_id}
# Read data.results.items and follow next_cursor while has_more is trueYouTube Playlist Videos API Use Cases
- Public playlist inventories: Build a structured inventory of video IDs, titles, URLs, channel identity, thumbnails, duration, and playlist provenance for selected public playlists.
- Course and series indexing: Index playlist titles with their video titles, channel context, durations, and source links from the YouTube Playlist Videos API to organize public courses, talks, or episodic collections.
- Video enrichment seed lists: Use the returned canonical video URLs and IDs as a deduplicated queue for separate detail, transcript, review, or archival workflows.
YouTube Playlist Videos API Pro Tips
- Use either a raw playlist ID or a URL whose list query value is populated; other URL parts are not used to resolve the playlist and a URL without list is skipped.
- Treat results_limit as a per-playlist ceiling over the first returned video array, not a guarantee of deep extraction for a large playlist.
- Canonicalize each playlist to one representation before batching because only exact duplicate strings are removed and URL variants for the same playlist can trigger repeated work.
- Compare returned extra.playlist_id and video id values with your input set because private, deleted, restricted, hidden, malformed, or unavailable entries can be absent.
- Use collected_at for record lineage and request separate video details when publication dates or engagement are required because metrics is empty and created_at is null.
Related APIs
Beyond the YouTube Playlist Videos API, use these APIs when you need a different type of public YouTube data.
- YouTube Channel Videos API — Collect regular public videos from channel URLs, excluding Shorts and live streams.
- YouTube Comments API — Collect public comments, authors, engagement, source videos, and conversation context.
- YouTube Transcripts API — Retrieve available plain-text transcripts with optional language selection.
- YouTube Videos API — Retrieve metadata, thumbnails, duration, and engagement for known video or Short URLs.
- YouTube Shorts API — Collect public Shorts, thumbnails, duration, publication details, and engagement by channel.
- YouTube Channel Live Videos API — Collect public broadcast records exposed on channel live surfaces, with source context and visible metrics.
- YouTube Channels API
- YouTube Search API
- YouTube Comment Replies API
- YouTube Community Posts API
- YouTube Hashtag Search API
- YouTube Trending Shorts API
- YouTube Community Post API
- YouTube Community Post Comments API
- YouTube Related Videos API
- YouTube Channel Search API
- YouTube Shorts Search API
- YouTube Search Suggestions API
- YouTube Email Finder API
- YouTube Trending Videos API