API para YouTube: Respostas a comentários
Liste as respostas a um comentário do YouTube usando um token de continuação, com paginação por cursor (texto, autor, curtidas, data de publicação).
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"comments": [
{
"authorAvatarUrl": "https://example.com/image.jpg",
"authorId": "Alex Rivera",
"authorName": "Alex Rivera",
"authorUrl": "https://example.com/page",
"authorVerified": true,
"content": "A short example description of this item.",
"createdUtc": 12.5,
"id": "a1b2c3d4",
"likes": 12500,
"publishedTime": "2024-01-15T09:30:00Z"
}
],
"nextCursor": "example"
},
"found": true,
"reason": "not_found"
}interface YoutubeCommentRepliesResponse {
data: {
comments: {
authorAvatarUrl?: string;
authorId?: string;
authorName: string;
authorUrl?: string;
authorVerified?: boolean;
content: string;
createdUtc?: number;
id: string;
likes: number;
publishedTime: string;
}[];
nextCursor: 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.comment_replies \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"continuationToken":"Eg0SC19fZm1EajBaSjFRGAYygwEaUBIaVWd3aXRjRk9fdmtpM0x4LUNfZDRBYUFCQWciAggAKhhVQ1g2T1EzRGtjc2JZTkU2SDh1UVF1VkEyC19fZm1EajBaSjFRQABICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3dpdGNGT192a2kzTHgtQ19kNEFhQUJBZw=="}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| continuationToken | string | "Eg0SC19fZm1EajBaSjFRGAYygwEaUBIaVWd3aXRjRk9fdmtpM0x4LUNfZDRBYUFCQWciAggAKhhVQ1g2T1EzRGtjc2JZTkU2SDh1UVF1VkEyC19fZm1EajBaSjFRQABICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3dpdGNGT192a2kzTHgtQ19kNEFhQUJBZw=="Token de continuação de respostas vindo do endpoint de comentários, ou o continuationToken de uma resposta anterior deste endpoint, para continuar a paginação. |
| Resposta | ||
| data | object | |
| data.comments | object[] | Populated whenever the provider has data for the entity. |
| data.comments[].authorAvatarUrl | string | URL of the reply author's avatar image. |
| data.comments[].authorId | string | The reply author's YouTube channel ID. |
| data.comments[].authorName | string | Populated whenever the provider has data for the entity. |
| data.comments[].authorUrl | string | Canonical URL of the reply author's channel, tracking query parameters stripped. |
| data.comments[].authorVerified | boolean | Whether the reply author is a verified channel. |
| data.comments[].content | string | Populated whenever the provider has data for the entity. |
| data.comments[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.comments[].id | string | Populated whenever the provider has data for the entity. |
| data.comments[].likes | integer | |
| data.comments[].publishedTime | string | Populated whenever the provider has data for the entity. |
| data.nextCursor | string | |
| 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 Respostas a comentários da API para YouTube
O endpoint Respostas a comentários da AnyAPI para YouTube retorna dados de YouTube em JSON normalizado com uma chamada POST para /v1/run/youtube.comment_replies. Liste as respostas a um comentário do YouTube usando um token de continuação, com paginação por cursor (texto, autor, curtidas, data de publicação). 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 Respostas a comentários da API para YouTube feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 1,6 segundos, em 1 chamadas medidas.