API para YouTube

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).

POST/v1/run/youtube.playlist
Disponibilidade
100,00%
30d · 1 chamada
Requisições
1
30d · semanal, últimas 12 sem.
Resposta
1,6s
mediana · 30d

Preços

Um preço, em dólares

Teste

Faça sua primeira requisição

Abrir em
Obter chave grátis
Resposta de exemplo
Execuções grátis retornam só os primeiros 3 resultados. Recarregue uma chave para receber a resposta completa.
{
  "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 da resposta
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 30d
POST /v1/run/youtube.playlist
curl -X POST https://api.getanyapi.com/v1/run/youtube.playlist \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"playlistId":"PLMC9KNkIncKtPzgY-5rmhvj7fax8fdxoj"}'
CampoTipoValor de exemplo
Corpo da requisição
playlistIdstring"PLMC9KNkIncKtPzgY-5rmhvj7fax8fdxoj"O ID da playlist: o parâmetro "list" em uma URL de playlist (ex.: "PLu0W_9lII9ahIappRPN0MCAgtOu3lQjQi").
Resposta
dataobject
data.authorHandlestringThe playlist owner's @handle, without the leading @.
data.authorIdstringYouTube channel ID of the playlist owner.
data.authorUrlstringCanonical URL of the playlist owner's channel, tracking query parameters stripped.
data.ownerstringPopulated whenever the provider has data for the entity.
data.titlestringPopulated whenever the provider has data for the entity.
data.totalVideosinteger
data.videosobject[]Populated whenever the provider has data for the entity.
data.videos[].channelstringPopulated whenever the provider has data for the entity.
data.videos[].idstringPopulated whenever the provider has data for the entity.
data.videos[].lengthSecondsinteger
data.videos[].lengthTextstringPopulated whenever the provider has data for the entity.
data.videos[].thumbnailstringPopulated whenever the provider has data for the entity.
data.videos[].titlestring
data.videos[].urlstringPopulated whenever the provider has data for the entity.
foundboolean
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çãoUSDUS$ 0,0012
Preço /mil req.USDUS$ 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.

Custa a partir de US$ 1,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Você recarrega uma carteira em dólares e cada chamada desconta dela. Algumas requisições pagas pela carteira que falham geram cobranças de processamento, que repassamos pelo custo, sem margem; a resposta de erro mostra o valor cobrado.

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 resposta é JSON normalizado, com o mesmo envelope que todo endpoint da AnyAPI retorna, então processar um segundo endpoint é só trocar a URL, e nada mais.

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. Estas são medições da própria AnyAPI sobre o tráfego que passa pelo gateway, recalculadas continuamente, e não uma meta de nível de serviço publicada.