{
"ok": true,
"data": {
"id": "_T8cn2J13-4",
"url": "https://www.youtube.com/watch?v=_T8cn2J13-4",
"title": "How We Are Going to the Moon - 4K",
"description": "While Apollo placed the first steps on the Moon, Artemis opens the door for humanity to sustainably work and live on another world...",
"publishedAt": "2019-12-19T17:43:14.000Z",
"durationSeconds": 331,
"duration": "00:05:31",
"viewCount": 11863645,
"likeCount": 480000,
"commentCount": 43988,
"commentsTurnedOff": false,
"tags": [
"NASA",
"Moon",
"Artemis"
],
"hashtags": [],
"category": "Science & Technology",
"thumbnail": "https://i.ytimg.com/vi/_T8cn2J13-4/maxresdefault.jpg",
"videoType": "video",
"isShort": false,
"isLive": false,
"liveStatus": "none",
"isMembersOnly": false,
"isAgeRestricted": false,
"isUnlisted": false,
"isFamilySafe": true,
"hasPaidPromotion": false,
"descriptionLinks": [],
"chapters": [],
"channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
"channelName": "NASA",
"channelHandle": "@NASA",
"channelUrl": "https://www.youtube.com/@NASA",
"channelSubscriberCount": 15100000,
"channelIsVerified": true,
"scrapedAt": "2026-11-15T04:30:12.512Z"
},
"next_cursor": null
}
curl --location --request GET 'https://zylalabs.com/api/15060/youtube+playlists+api/39867/get+video+details?url=https://www.youtube.com/watch?v=_T8cn2J13-4' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"data": {
"videoId": "_T8cn2J13-4",
"url": "https://www.youtube.com/watch?v=_T8cn2J13-4",
"title": "How We Are Going to the Moon - 4K",
"channelName": "NASA",
"channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
"channelUrl": "https://www.youtube.com/@NASA",
"publishedAt": "2019-12-19T17:43:14.000Z",
"durationSeconds": 331,
"viewCount": 11863645,
"category": "Science & Technology",
"language": "en",
"languageName": "English",
"isAutoGenerated": false,
"wordCount": 873,
"availableLanguages": [
{
"language": "en",
"languageName": "English",
"isAutoGenerated": false
},
{
"language": "en",
"languageName": "English",
"isAutoGenerated": true
}
],
"thumbnailUrl": "https://i.ytimg.com/vi/_T8cn2J13-4/maxresdefault.jpg",
"keywords": [
"NASA",
"Moon",
"Artemis"
],
"description": "While Apollo placed the first steps on the Moon, Artemis opens the door...",
"fullText": "Between 1968 and 1972, America launched 9 human missions to the Moon, 6 of which successfully touched down...",
"segments": [
{
"start": 1.31,
"duration": 7.39,
"text": "Between 1968 and 1972, America launched 9 human missions to the Moon, 6 of which successfully"
},
{
"start": 8.7,
"duration": 4.2,
"text": "touched down",
"allowing 12 men to walk on the lunar surface.": null
}
],
"scrapedAt": "2026-11-15T04:30:13.101Z"
},
"next_cursor": null
}
curl --location --request GET 'https://zylalabs.com/api/15060/youtube+playlists+api/39868/get+video+transcript?url=https://www.youtube.com/watch?v=_T8cn2J13-4&lang=en&format=text' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"data": {
"query": "nasa artemis",
"estimatedResults": 3510030,
"items": [
{
"type": "video",
"id": "_T8cn2J13-4",
"url": "https://www.youtube.com/watch?v=_T8cn2J13-4",
"title": "How We Are Going to the Moon - 4K",
"description": "While Apollo placed the first steps on the Moon, Artemis opens the door for humanity...",
"durationSeconds": 331,
"duration": "00:05:31",
"viewCount": 11863614,
"publishedTimeText": "6 years ago",
"publishedAt": "2020-11-15T00:00:00.000Z",
"thumbnail": "https://i.ytimg.com/vi/_T8cn2J13-4/hq720.jpg",
"channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
"channelName": "NASA",
"channelHandle": "@NASA",
"channelUrl": "https://www.youtube.com/@NASA",
"channelIsVerified": true,
"isLive": false,
"isUpcoming": false,
"badges": [
"4K",
"CC"
],
"position": 1
}
]
},
"next_cursor": "eyJrIjoic2VhcmNoIiwicSI6Im5hc2EgYXJ0ZW1pcyIsImMiOiJFdU1DRWd4dVlYTmhJR0Z5ZEdWdGFYTWEw..."
}
curl --location --request GET 'https://zylalabs.com/api/15060/youtube+playlists+api/39869/search+youtube?q=drone footage&type=all&upload_date=any&duration=any&sort=relevance&features=hd,subtitles' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"data": {
"id": "UCLA_DiR1FfKNvjuUpBHmylQ",
"url": "https://www.youtube.com/@NASA",
"name": "NASA",
"handle": "@NASA",
"description": "NASA's mission is to pioneer the future in space exploration, scientific discovery, and aeronautics research...",
"subscriberCount": 15100000,
"videoCount": 6202,
"viewCount": 1135840911,
"joinedAt": "2008-06-03",
"country": null,
"links": [
{
"title": "Website",
"url": "https://www.nasa.gov/"
}
],
"keywords": [
"NASA",
"space",
"astronomy"
],
"avatar": "https://yt3.googleusercontent.com/nasa-avatar=s900",
"banner": "https://yt3.googleusercontent.com/nasa-banner=w2560",
"isVerified": true,
"isFamilySafe": true,
"scrapedAt": "2026-11-15T04:30:14.227Z"
},
"next_cursor": null
}
curl --location --request GET 'https://zylalabs.com/api/15060/youtube+playlists+api/39870/get+channel+details?handle_or_url=@NASA' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"data": {
"channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
"channelName": "NASA",
"tab": "videos",
"sort": "popular",
"items": [
{
"type": "video",
"id": "EJxwWpaGoJs",
"url": "https://www.youtube.com/watch?v=EJxwWpaGoJs",
"title": "The Year of Pluto - New Horizons Documentary Brings Humanity Closer to the Edge of the Solar System",
"description": null,
"durationSeconds": 3514,
"duration": "00:58:34",
"viewCount": 21000000,
"publishedTimeText": "11 years ago",
"publishedAt": "2015-11-15T00:00:00.000Z",
"thumbnail": "https://i.ytimg.com/vi/EJxwWpaGoJs/hq720.jpg",
"channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
"channelName": "NASA",
"channelHandle": "@NASA",
"channelUrl": "https://www.youtube.com/@NASA",
"channelIsVerified": null,
"isLive": false,
"isUpcoming": false,
"badges": [],
"position": 1
}
]
},
"next_cursor": "eyJrIjoiY2hhbm5lbC12aWRlb3MiLCJjaCI6IlVDTEFfRGlSMUZmS052anVVcEJIbXlsUSIs..."
}
curl --location --request GET 'https://zylalabs.com/api/15060/youtube+playlists+api/39871/get+channel+videos?handle_or_url=@NASA&tab=videos&sort=newest' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"data": {
"videoId": "_T8cn2J13-4",
"commentCount": 43988,
"commentsTurnedOff": false,
"sort": "top",
"items": [
{
"id": "UgzExampleComment0AaABAg",
"text": "Can't wait to see people walk on the Moon again!",
"author": "@spacefan",
"authorChannelId": "UCxxxxxxxxxxxxxxxxxxxxxx",
"authorChannelUrl": "https://www.youtube.com/channel/UCxxxxxxxxxxxxxxxxxxxxxx",
"authorIsChannelOwner": false,
"authorIsVerified": false,
"likeCount": 1200,
"replyCount": 14,
"publishedAt": "2020-11-15T00:00:00.000Z",
"publishedTimeText": "6 years ago",
"isEdited": false,
"isPinned": false,
"hasCreatorHeart": false
}
]
},
"next_cursor": "eyJrIjoiY29tbWVudHMiLCJpZCI6Il9UOGNuMkoxMy00IiwicyI6InRvcCIsImMiOiJFZzBTQzE5VU9HTnVN..."
}
curl --location --request GET 'https://zylalabs.com/api/15060/youtube+playlists+api/39872/get+video+comments?url=_T8cn2J13-4&sort=top' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"data": {
"playlistId": "PL2aBZuCeDwlQvNtHhNJtarm9OewQwVntv",
"url": "https://www.youtube.com/playlist?list=PL2aBZuCeDwlQvNtHhNJtarm9OewQwVntv",
"title": "Artemis II Mission Coverage",
"description": null,
"channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
"channelName": "NASA",
"videoCount": 23,
"viewCount": 1049387,
"isUnlisted": false,
"items": [
{
"type": "video",
"id": "DYY4nnfxKbU",
"url": "https://www.youtube.com/watch?v=DYY4nnfxKbU",
"title": "NASA's Artemis II Crew Return to Houston",
"description": null,
"durationSeconds": 4860,
"duration": "01:21:00",
"viewCount": 1700000,
"publishedTimeText": "Streamed 7 months ago",
"publishedAt": "2026-04-15T00:00:00.000Z",
"thumbnail": "https://i.ytimg.com/vi/DYY4nnfxKbU/hqdefault.jpg",
"channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
"channelName": "NASA",
"channelHandle": "@NASA",
"channelUrl": "https://www.youtube.com/@NASA",
"channelIsVerified": null,
"isLive": false,
"isUpcoming": false,
"badges": [],
"position": 1
}
]
},
"next_cursor": null
}
curl --location --request GET 'https://zylalabs.com/api/15060/youtube+playlists+api/39873/get+playlist+videos?url=https://www.youtube.com/playlist?list=PL2aBZuCeDwlQvNtHhNJtarm9OewQwVntv' --header 'Authorization: Bearer YOUR_API_KEY'
Após se cadastrar, cada desenvolvedor recebe uma chave de acesso à API pessoal, uma combinação única de letras e dígitos para acessar nosso endpoint de API. Para autenticar com a YouTube Playlists API basta incluir seu token Bearer no cabeçalho Authorization.
| Cabeçalho | Descrição |
|---|---|
Authorization
|
Obrigatório
Deve ser Bearer access_key. Veja "Sua chave de acesso à API" acima quando você estiver inscrito.
|
Sem compromisso de longo prazo. Faça upgrade, downgrade ou cancele a qualquer momento.
YouTube data in real time as JSON: video details, transcripts in any caption language, search results, channels, channel uploads and Shorts, comments and playlists.
Qualquer idioma de legenda que o vídeo tenha, incluindo legendas geradas automaticamente. Peça um código de idioma ou obtenha a faixa padrão
Liste os endpoints que retornam next_cursor Passe-o como parâmetro de cursor para obter a próxima página até que next_cursor seja nulo
Um link ou ID de vídeo para vídeos e transcrições um link de canal um identificador ou ID para canais um link de lista de reprodução ou ID para listas de reprodução e texto livre para pesquisa
O endpoint de transcrição retorna um código de erro que diz que nenhuma transcrição está disponível em vez de dados
Cada ponto final retorna dados específicos do YouTube em formato JSON Por exemplo o ponto final "Obter Detalhes do Vídeo" fornece metadados do vídeo enquanto "Obter Transcrição do Vídeo" retorna legendas Outros pontos finais como "Pesquisar YouTube" retornam resultados de pesquisa e "Obter Detalhes do Canal" fornece informações sobre canais
Os campos principais variam por ponto final. Para "Obter Detalhes do Vídeo", campos importantes incluem título, contagem de visualizações e duração. Em "Obter Detalhes do Canal", campos como contagem de assinantes e descrição são cruciais. A documentação de cada ponto final descreve seus campos específicos
Os parâmetros variam por endpoint. Para "Pesquisar YouTube", você pode filtrar por tipo de resultado, data de upload e duração. O endpoint "Obter Transcrição de Vídeo" aceita um código de idioma. Consulte a documentação de cada endpoint para uma lista completa de parâmetros aceitos
Os dados de resposta estão estruturados em um formato JSON com um status "ok" e um objeto "data" O objeto "data" contém campos relevantes específicos para o endpoint como detalhes do vídeo ou resultados de busca facilitando a análise e utilização
Cada ponto de extremidade fornece informações distintas: "Obter Detalhes do Vídeo" oferece metadados sobre vídeos "Obter Comentários do Vídeo" lista comentários de usuários e "Obter Vídeos da Playlist" detalha vídeos dentro de uma playlist Essa variedade permite uma recuperação de dados abrangente
Os usuários podem personalizar solicitações usando parâmetros específicos Por exemplo em "Obter Vídeos do Canal" você pode classificar por popularidade ou idade Em "Pesquisar no YouTube" você pode especificar filtros como duração e data de upload para refinar os resultados
Casos de uso típicos incluem analisar o desempenho de vídeos recuperar transcrições para acessibilidade e agregar comentários para análise de sentimentos Desenvolvedores podem usar esses dados para aplicações como curadoria de conteúdo ou ferramentas educacionais
A precisão dos dados é mantida por meio de acesso direto à API do YouTube que fornece atualizações em tempo real A API reflete as informações mais recentes disponíveis no YouTube garantindo que os usuários recebam dados atuais e confiáveis