📺

YouTube Playlist Videos

List all video IDs from a YouTube playlist

GET 1 credit /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
Response 200 OK
{
  "playlistId": "PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf",
  "videoIds": [
    "rfscVS0vtbw",
    "kqtD5dpn9C8",
    "Z1Yd7upQsXY",
    "N4mEzFDjqtA"
  ],
  "shortIds": [],
  "liveIds": []
}

Try It Live

Live Demo

Description

List all video IDs from a YouTube playlist

How to Use

1

1. Pass a playlist ID or full playlist URL in the `id` query parameter.

2

2. The API returns arrays of video IDs categorised by content type.

3

3. Feed the returned IDs into the batch transcript endpoint, video metadata endpoint, or any other video-level endpoint.

4

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

Frequently Asked Questions

Are the video IDs returned in playlist order?
Yes. Video IDs are returned in the order they appear in the playlist, preserving the playlist creator's intended sequence.
Is there a limit on playlist size?
The endpoint returns all video IDs from the playlist regardless of size. Very large playlists (hundreds of videos) are fully enumerated.
Can I get video metadata along with the IDs?
No. This endpoint returns only IDs for performance. Use the video metadata endpoint (`/v1/youtube/video`) or the universal metadata endpoint for full details on individual videos.

Start using YouTube Playlist Videos now

Get your free API key and make your first request in under a minute.