YouTube API

YouTube Playlist API

List every video in a YouTube playlist (title, length, and channel per video plus playlist owner and totals).

$1.20/1k req, pay per request, no subscription.

What the API returnedvideos[0]
{
"id": "aK7pQm3nVxY",
"title": "Rainy Window - lofi hip hop mix",
"url": "https://www.youtube.com/watch?v=aK7pQm3nVxY",
"thumbnail": "https://i.ytimg.com/vi/aK7pQm3nVxY/hqdefault.jpg",
"lengthText": "58:12",
"lengthSeconds": 3492,
"channel": "Driftline Records"
}
Uptime
92.86%
30d · 28 calls
Requests
28
30d · weekly, last 12 wks
Response
1.2s
median · 30d

Pricing

YouTube Playlist API pricing

You pay
$12.00
$1.20/1k req, only for what you use. No monthly plan.
Your first 83 requests are free with the $0.10 starting balance.

Try it

Get YouTube playlist in one request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.

This sample shows 16 of 17 fields. See every field

{
  "found": true,
  "data": {
    "title": "Lo-fi Beats to Focus To",
    "owner": "Driftline Records",
    "totalVideos": 3,
    "authorId": "UC9Qz1s5o8vX3P0nZk4Rr6bA",
    "authorUrl": "https://www.youtube.com/@driftlinerecords",
    "authorHandle": "driftlinerecords",
    "videos": [
      {
        "id": "aK7pQm3nVxY",
        "title": "Rainy Window - lofi hip hop mix",
        "url": "https://www.youtube.com/watch?v=aK7pQm3nVxY",
        "thumbnail": "https://i.ytimg.com/vi/aK7pQm3nVxY/hqdefault.jpg",
        "lengthText": "58:12",
        "lengthSeconds": 3492,
        "channel": "Driftline Records"
      },
      {
        "id": "bL8qRn4oWyZ",
        "title": "Late Night Study Session - chill beats",
        "url": "https://www.youtube.com/watch?v=bL8qRn4oWyZ",
        "thumbnail": "https://i.ytimg.com/vi/bL8qRn4oWyZ/hqdefault.jpg",
        "lengthText": "1:12:40",
        "lengthSeconds": 4360,
        "channel": "Driftline Records"
      },
      {
        "id": "cM9rSo5pXzA",
        "title": "Coffee Shop Ambience with Soft Piano",
        "url": "https://www.youtube.com/watch?v=cM9rSo5pXzA",
        "thumbnail": "https://i.ytimg.com/vi/cM9rSo5pXzA/hqdefault.jpg",
        "lengthText": "45:03",
        "lengthSeconds": 2703,
        "channel": "Driftline Records"
      }
    ]
  }
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-10-31 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • playlistIdstring

    PLxK2osoDoY4gAiRxvIYUY5Fz4uMtVYnCk

    The playlist ID: the "list" parameter in a playlist URL (e.g. "PLu0W_9lII9ahIappRPN0MCAgtOu3lQjQi").

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

datadata
  • authorHandlestring

    driftlinerecords

    The playlist owner's @handle, without the leading @.

  • authorIdstring

    UC9Qz1s5o8vX3P0nZk4Rr6bA

    YouTube channel ID of the playlist owner.

  • authorUrlstring

    https://www.youtube.com/@driftlinerecords

    Canonical URL of the playlist owner's channel, tracking query parameters stripped.

  • ownerstring

    Driftline Records

    Populated whenever the provider has data for the entity.

  • titlestring

    Lo-fi Beats to Focus To

    Populated whenever the provider has data for the entity.

  • totalVideosinteger

    3

each videodata.videos[]

Populated whenever the provider has data for the entity.

  • channelstring

    Driftline Records

    Populated whenever the provider has data for the entity.

  • idstring

    aK7pQm3nVxY

    Populated whenever the provider has data for the entity.

  • lengthSecondsinteger

    3492

  • lengthTextstring

    58:12

    Populated whenever the provider has data for the entity.

  • thumbnailstring

    https://i.ytimg.com/vi/aK7pQm3nVxY/hqdefault.jpg

    Populated whenever the provider has data for the entity.

  • titlestring

    Rainy Window - lofi hip hop mix

  • urlstring

    https://www.youtube.com/watch?v=aK7pQm3nVxY

    Populated whenever the provider has data for the entity.

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

FAQ

About the YouTube Playlist API

The AnyAPI YouTube Playlist API returns YouTube playlist data as normalized JSON from one POST call to /v1/run/youtube.playlist. List every video in a YouTube playlist (title, length, and channel per video plus playlist owner and totals). AnyAPI returns one normalized schema whichever source serves it. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 92.9% of YouTube playlist calls through AnyAPI succeeded, with a median response time of 1.2 seconds across 28 measured calls.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

List every video in a YouTube playlist (title, length, and channel per video plus playlist owner and totals). The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 92.9% of YouTube playlist calls through AnyAPI succeeded, with a median response time of 1.2 seconds across 28 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required, which covers 83 YouTube Playlist calls at $0.0012 each.

Send a POST request to https://api.getanyapi.com/v1/run/youtube.playlist with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.