API de YouTube: Comentarios del video
Lista los comentarios de un video o Short por URL, con paginación por cursor: texto, autor, número de me gusta y de respuestas.
US$0.80/1k solic., pagas por solicitud, sin suscripción.
@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 más}
Precios y proveedores
Precios del endpoint Comentarios del video de la API de YouTube: una API, 4 proveedores intercambiables
El proveedor más barato responde primero. Si falla, el siguiente toma el relevo en la misma llamada.
Pruébalo
Obtén Comentarios del video de YouTube en una sola solicitud
Este ejemplo muestra 10 de 15 campos. Ver todos los 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"
}
]
}
}Referencia completa de parámetros y respuesta: cada campo, tipo y ejemplo de este endpoint.
Referencia
Una solicitud, un formato de respuesta.
Cada campo que envías y cada campo que recibes, cada uno con un ejemplo real.
Verificado por última vez el 2026-11-14 · disponibilidad y latencia medidas en 30d
Cuerpo de la solicitud
JSON, enviado por POST a este endpoint.
- urlstring
https://www.youtube.com/watch?v=dQw4w9WgXcQ
URL completa del video de YouTube. También funcionan las URL de Shorts (youtube.com/shorts/...) y youtu.be.
- cursorstring
Token de continuación de una respuesta anterior, para la paginación.
- orderenum
Orden de los comentarios (p. ej., 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.
Respuesta
JSON, un valor de ejemplo 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.
- likesintegerse puede exigir
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.
¿Vendes esta API? Consulta el esquema completo que debe devolver tu endpoint.
Preguntas frecuentes
Acerca del endpoint Comentarios del video de la API de YouTube
El endpoint Comentarios del video de AnyAPI para YouTube devuelve datos de YouTube como JSON normalizado con una sola llamada POST a /v1/run/youtube.video_comments. Lista los comentarios de un video o Short por URL, con paginación por cursor: texto, autor, número de me gusta y de respuestas. AnyAPI enruta cada solicitud entre 4 fuentes y recurre automáticamente a otra cuando una falla. Cuesta desde US$0.80 por cada 1,000 solicitudes, en dólares estadounidenses, sin suscripción y sin mínimo mensual. En los últimos 30 días, el 99.9% de las llamadas al endpoint Comentarios del video de la API de YouTube a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 5.2 segundos en 33.204 llamadas medidas.