YouTube Playlist Videos
List all video IDs from a YouTube playlist
/v1/youtube/playlist/videos
curl "https://youtube.toolkitapi.io/v1/youtube/playlist/videos?id=PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf"
import httpx
resp = httpx.get(
"https://youtube.toolkitapi.io/v1/youtube/playlist/videos?id=PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf",
)
print(resp.json())
const resp = await fetch("https://youtube.toolkitapi.io/v1/youtube/playlist/videos?id=PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf", {
});
const data = await resp.json();
console.log(data);
# See curl example
{
"playlistId": "PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf",
"videoIds": [
"rfscVS0vtbw",
"kqtD5dpn9C8",
"Z1Yd7upQsXY",
"N4mEzFDjqtA"
],
"shortIds": [],
"liveIds": []
}
Try It Live
Description
How to Use
1. Pass a playlist ID or full playlist URL in the `id` query parameter.
2. The API returns arrays of video IDs categorised by content type.
3. Feed the returned IDs into the batch transcript endpoint, video metadata endpoint, or any other video-level endpoint.
4. Use the categorisation to filter out Shorts or live streams if you only want standard videos.
About This Tool
The YouTube Playlist Videos endpoint returns all video IDs from a YouTube playlist, categorised into regular videos, Shorts, and live streams. This provides a lightweight way to enumerate playlist contents without fetching full metadata for each video.
Use this to discover what videos are in a playlist before making targeted requests to the video metadata or transcript endpoints. It pairs naturally with the batch transcript endpoint for processing entire playlists.
The response format matches the channel videos endpoint, using the same `videoIds`, `shortIds`, and `liveIds` structure for consistency.
Why Use This Tool
- Playlist processing pipelines — Extract all video IDs for batch transcript or metadata retrieval
- Content enumeration — Build ordered lists of playlist contents for display or analysis
- Playlist comparison — Compare video IDs across playlists to find overlaps or unique content
- Automated workflows — Trigger downstream processing for each video in a playlist
- Content type filtering — Separate regular videos from Shorts and live streams
Frequently Asked Questions
Are the video IDs returned in playlist order?
Is there a limit on playlist size?
Can I get video metadata along with the IDs?
Start using YouTube Playlist Videos now
Get your free API key and make your first request in under a minute.