---
title: "YouTube Playlist API"
method: GET
path: "/v1/youtube/playlist"
tags: ["YouTube"]
---

# YouTube Playlist API

`GET /v1/youtube/playlist`

## Request

- Base URL: `https://api.captapi.com`
- URL: `https://api.captapi.com/v1/youtube/playlist`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Playlist metadata only — title, channel{}, totalVideos, thumbnailUrl.

Paste a YouTube playlist URL and get identity JSON: platform, url, id, title, channel{id,title,handle,url}, totalVideos, thumbnailUrl, timings. No videos array — use Playlist Videos for paginated contents. Flat 1 credit (single HTML fetch, no player enrich).

Docs: https://captapi.com/apis/youtube-playlist

## Query parameters

- `url` string, required
- `cache` boolean

## Response `200`

Success. The data object for this endpoint.

- object
  - `success` unknown, required
  - `data` object, required
    - `platform` string: Platform identifier for this response (matches the endpoint's platform).
    - `url` string: Canonical URL of the item.
    - `id` string: Stable platform ID for the item.
    - `title` string: Title of the item.
    - `channel` object
      - `id` string: Id of this channel item.
      - `title` string: Title of this channel item.
      - `url` string: Canonical URL of the item.
      - `handle` string: Account handle.
    - `totalVideos` integer: Full playlist size from the header (not the page length).
    - `thumbnailUrl` string: Playlist cover thumbnail from the sidebar when YouTube exposes one.

## Other responses

- `400`: Bad request: wrong platform URL, unknown endpoint, or an invalid parameter value. Not billed.
- `401`: Missing, invalid or revoked API key. Not billed.
- `402`: Not enough credits for this request. Not billed.
- `404`: The resource does not exist or is not public. Not billed.
- `422`: A required parameter is missing or has the wrong type. Not billed.
- `429`: Rate limit reached. Wait for Retry-After seconds. Not billed.
- `502`: The platform could not be reached or returned nothing usable. Retryable, not billed. 503 and 504 use the same envelope.

---

[API](https://skmtc.dev/captapi/apis/captapi-api.md) · [All operations](https://skmtc.dev/captapi/apis/captapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/captapi/apis/captapi-api/revisions/c9b9ac5ff1bd?raw)
