API para YouTube: Comentários do vídeo
Liste os comentários de um vídeo ou Short pela URL, com paginação por cursor: texto, autor, curtidas e número de respostas.
US$ 0,80/mil req., pague por requisição, sem assinatura.
@SimonT809 days ago
This is a masterpiece and no one can convince me otherwise.
110Reply
5 replies
{"id": "UgwVfRopfS2F-WB3aF14AaABAg","text": "This is a masterpiece and no one can convince me otherwise.","author": "@SimonT80","likes": 110,"replies": 5,"publishedTime": "9 days ago","authorAvatarUrl": string,"authorId": string,... 2 campos a mais}
Preços e provedores
Preços do endpoint Comentários do vídeo da API para YouTube: uma API, 4 provedores intercambiáveis
O provedor mais barato atende primeiro. Se ele falhar, o próximo assume na mesma chamada.
Teste
Obtenha Comentários do vídeo do YouTube em uma só requisição
Este exemplo mostra 10 de 15 campos. Ver todos os campos
{
"found": true,
"data": {
"nextCursor": "Eg0SCzVFV2F4bVd",
"comments": [
{
"id": "UgwVfRopfS2F-WB3aF14AaABAg",
"text": "This is a masterpiece and no one can convince me otherwise.",
"author": "@SimonT80",
"likes": 110,
"replies": 5,
"publishedTime": "9 days ago"
}
]
}
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Uma requisição, um formato de resposta.
Cada campo que você envia e cada campo que você recebe, cada um com um exemplo real.
Última verificação em 2026-11-14 · disponibilidade e latência medidas em 30d
Corpo da requisição
JSON, enviado via POST para este endpoint.
- urlstring
https://www.youtube.com/watch?v=dQw4w9WgXcQ
URL completa do vídeo do YouTube. URLs de Shorts (youtube.com/shorts/...) e youtu.be também funcionam.
- cursorstring
Token de continuação de uma resposta anterior, para paginação.
- orderenum
Ordem dos comentários (ex.: top, newest).
- requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `likes`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted. A source that returns only a rounded value for a field does not count as returning it.
Resposta
JSON, um valor de exemplo por campo.
Populated whenever the provider has data for the entity.
- authorstring
@SimonT80
Populated whenever the provider has data for the entity.
- authorAvatarUrlstring
URL of the comment author's avatar image.
- authorIdstring
The comment author's YouTube channel ID.
- authorUrlstring
Canonical URL of the comment author's channel, tracking query parameters stripped.
- idstring
UgwVfRopfS2F-WB3aF14AaABAg
Populated whenever the provider has data for the entity.
- likesintegerpode ser exigido
110
Number of likes on the comment. Some sources round large counts (291K instead of the exact figure); name `likes` in requireFields to be served only by a source that returns the exact count.
- publishedTimestring
9 days ago
Populated whenever the provider has data for the entity.
- repliesinteger
5
- repliesContinuationTokenstring
Token for this comment's replies. Pass it as continuationToken to youtube.comment_replies. Absent when the comment has no replies or the serving source does not return one.
- textstring
This is a masterpiece and no one can convince me otherwise.
Populated whenever the provider has data for the entity.
- nextCursorstring
Eg0SCzVFV2F4bVd
Opaque cursor for the next page of comments, or null when this lane has no more. Pass it back as cursor to continue.
- 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.
Vende esta API? Veja o schema completo que o seu endpoint precisa retornar.
Dúvidas frequentes
Sobre o endpoint Comentários do vídeo da API para YouTube
O endpoint Comentários do vídeo da AnyAPI para YouTube retorna dados de YouTube em JSON normalizado com uma chamada POST para /v1/run/youtube.video_comments. Liste os comentários de um vídeo ou Short pela URL, com paginação por cursor: texto, autor, curtidas e número de respostas. A AnyAPI distribui cada requisição entre 4 fontes, com failover automático quando uma falha. Custa a partir de US$ 0,80 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 99,9% das chamadas ao endpoint Comentários do vídeo da API para YouTube feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 5,2 segundos, em 33.204 chamadas medidas.