API para YouTube: Playlist
Liste todos os vídeos de uma playlist do YouTube (título, duração e canal de cada vídeo, além do dono da playlist e dos totais).
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"authorHandle": "alex_rivera",
"authorId": "Alex Rivera",
"authorUrl": "https://example.com/page",
"owner": "Alex Rivera",
"title": "Example title",
"totalVideos": 12500,
"videos": [
{
"channel": "example",
"id": "a1b2c3d4",
"lengthSeconds": 180,
"lengthText": "A short example description of this item.",
"thumbnail": "https://example.com/image.jpg",
"title": "Example title",
"url": "https://example.com/page"
}
]
},
"found": true,
"reason": "not_found"
}interface YoutubePlaylistResponse {
data: {
authorHandle?: string;
authorId?: string;
authorUrl?: string;
owner: string;
title: string;
totalVideos: number;
videos: {
channel: string;
id: string;
lengthSeconds: number;
lengthText: string;
thumbnail: string;
title: string;
url: string;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -X POST https://api.getanyapi.com/v1/run/youtube.playlist \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"playlistId":"PLMC9KNkIncKtPzgY-5rmhvj7fax8fdxoj"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| playlistId | string | "PLMC9KNkIncKtPzgY-5rmhvj7fax8fdxoj"O ID da playlist: o parâmetro "list" em uma URL de playlist (ex.: "PLu0W_9lII9ahIappRPN0MCAgtOu3lQjQi"). |
| Resposta | ||
| data | object | |
| data.authorHandle | string | The playlist owner's @handle, without the leading @. |
| data.authorId | string | YouTube channel ID of the playlist owner. |
| data.authorUrl | string | Canonical URL of the playlist owner's channel, tracking query parameters stripped. |
| data.owner | string | Populated whenever the provider has data for the entity. |
| data.title | string | Populated whenever the provider has data for the entity. |
| data.totalVideos | integer | |
| data.videos | object[] | Populated whenever the provider has data for the entity. |
| data.videos[].channel | string | Populated whenever the provider has data for the entity. |
| data.videos[].id | string | Populated whenever the provider has data for the entity. |
| data.videos[].lengthSeconds | integer | |
| data.videos[].lengthText | string | Populated whenever the provider has data for the entity. |
| data.videos[].thumbnail | string | Populated whenever the provider has data for the entity. |
| data.videos[].title | string | |
| data.videos[].url | string | Populated whenever the provider has data for the entity. |
| found | boolean | |
| 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. |
| Preço | ||
| Preço por requisição | USD | US$ 0,0012 |
| Preço /mil req. | USD | US$ 1,20 |
Dúvidas frequentes
Sobre o endpoint Playlist da API para YouTube
O endpoint Playlist da AnyAPI para YouTube retorna dados de YouTube em JSON normalizado com uma chamada POST para /v1/run/youtube.playlist. Liste todos os vídeos de uma playlist do YouTube (título, duração e canal de cada vídeo, além do dono da playlist e dos totais). A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 1,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Playlist da API para YouTube feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 1,6 segundos, em 1 chamadas medidas.