API di YouTube

YouTube Playlist API

Elenca ogni video di una playlist YouTube (titolo, durata e canale per video più proprietario e totali della playlist).

1,20 USD/1k richieste, paghi a richiesta, nessun abbonamento.

Lo-fi Beats to Focus To - YouTube
youtube.com/playlist?list=PLxK2osoDoY4gAiRxvIYUY5Fz4uMtVYnCk
YouTube
Sign in

Lo-fi Beats to Focus To

Playlist · 3 videos

Play all
58:12

Rainy Window - lofi hip hop mix

Driftline Records

2
3
Cosa ha restituito l'APIvideos[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"
}
Disponibilità
94,38%
30d · 249 chiamate
Richieste
249
30 g · settimanale, ultime 12 sett.
Risposta
1,2s
mediana · 30d

Prezzi

Prezzi dell'API YouTube Playlist

Paghi
12,00 USD
1,20 USD/1k richieste, solo per ciò che usi. Nessun piano mensile.
Le tue prime 83 richieste sono gratuite con il saldo iniziale di 0,10 USD.

Provalo

Ottieni YouTube Playlist in una sola richiesta

Apri in
Risposta di esempio
Le esecuzioni gratuite restituiscono solo i primi 3 risultati. Ricarica una chiave per ottenere la risposta completa.

Questo esempio mostra 16 campi su 18. Vedi tutti i campi

{
  "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"
      }
    ]
  }
}

Riferimento completo di parametri e risposta - ogni campo, tipo ed esempio per questo endpoint.

Riferimento

Una richiesta, una sola forma di risposta.

Ogni campo che invii e ogni campo che ricevi, ciascuno con un esempio reale.

Ultima verifica 2026-11-21 · disponibilità e latenza misurate su 30d

Corpo della richiesta

JSON, inviato a questo endpoint.

  • playlistIdstring

    PLxK2osoDoY4gAiRxvIYUY5Fz4uMtVYnCk

    ID della playlist: il parametro "list" nell'URL di una playlist (es. "PLu0W_9lII9ahIappRPN0MCAgtOu3lQjQi").

  • cursorstring

    The nextCursor from the previous page, to get the next page of videos. Send the same playlistId with it.

Tu invii. Un piccolo corpo JSON. I valori mostrati sono esempi da sostituire con i tuoi.

Risposta

JSON, un valore di esempio per campo.

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.

  • nextCursorstring

    Opaque cursor for the next page of videos, or null when there are no more. Pass it back as cursor to continue.

  • ownerstring

    Driftline Records

    Name of the channel that owns the playlist. Filled on the first page only; null on a page fetched with cursor. Populated whenever the provider has data for the entity.

  • titlestring

    Lo-fi Beats to Focus To

    Playlist title. Filled on the first page only; null on a page fetched with cursor. Populated whenever the provider has data for the entity.

  • totalVideosinteger

    3

    Number of videos in the playlist. Filled on the first page only; null on a page fetched with cursor.

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.

Tu ricevi. Campi con nome e tipo nella stessa struttura, qualunque fonte risponda.

FAQ

Sull'API YouTube Playlist

L'API YouTube Playlist di AnyAPI restituisce dati YouTube come JSON normalizzato da una sola chiamata POST a /v1/run/youtube.playlist. Elenca ogni video di una playlist YouTube (titolo, durata e canale per video più proprietario e totali della playlist). AnyAPI restituisce un unico schema normalizzato qualunque fonte la serva. Costa da 1,20 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Negli ultimi 30 giorni, il 94,4% delle chiamate YouTube Playlist tramite AnyAPI è riuscito, con un tempo di risposta mediano di 1,2 secondi su 249 chiamate misurate.

Costa da 1,20 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Ricarichi un portafoglio in USD e ogni chiamata lo scala. Alcune richieste fallite finanziate dal portafoglio comportano costi di elaborazione che trasferiamo al costo, senza ricarico; la risposta di errore mostra l'importo addebitato.

Elenca ogni video di una playlist YouTube (titolo, durata e canale per video più proprietario e totali della playlist). La risposta è JSON normalizzato con la stessa busta che restituisce ogni endpoint AnyAPI, quindi analizzare un secondo endpoint significa cambiare l'URL e nient'altro.

Negli ultimi 30 giorni, il 94,4% delle chiamate YouTube Playlist tramite AnyAPI è riuscito, con un tempo di risposta mediano di 1,2 secondi su 249 chiamate misurate. Sono misurazioni di AnyAPI sul traffico che passa dal gateway, ricalcolate di continuo, non un obiettivo di livello di servizio pubblicato.

Sì. Un nuovo account AnyAPI parte con 0,10 USD di saldo gratuito e senza bisogno di carta, che copre 83 chiamate YouTube Playlist a 0,0012 USD ciascuna.

Invia una richiesta POST a https://api.getanyapi.com/v1/run/youtube.playlist con la tua chiave AnyAPI in un header "Authorization: Bearer" e l'input come corpo JSON. La stessa chiave e lo stesso portafoglio funzionano su ogni endpoint AnyAPI.

No. Aggiungi dollari statunitensi a un unico saldo prepagato AnyAPI e ogni richiesta lo scala. Non c'è un piano mensile né un minimo, e lo stesso saldo paga ogni endpoint AnyAPI.

Sì. Installa @getanyapi/sdk da npm per TypeScript o getanyapi da pip per Python. Entrambi chiamano ogni endpoint AnyAPI con la stessa chiave, e funziona anche qualsiasi client HTTP.

Sì. Un agente può collegarsi al server MCP di AnyAPI su https://api.getanyapi.com/mcp, oppure creare da solo la propria chiave di prova gratuita con un POST non autenticato a https://api.getanyapi.com/agent/signup e chiamare questo endpoint via HTTP.