{
"items": [
{
"videoId": "dQw4w9WgXcQ",
"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"commentId": "UgzKYksqeQ5gA3t0g0F4AaABAg",
"text": "I Rick rolled my entire French class because we had to study a city in France and make a quiz about it as well as a presentation, I decided to make a Kahoot quiz because it’s very easy. I put a link in to this saying it’s the kahoot link. The teacher needless to say got very very mad. As well as my classmates asking who rick rolls in 2019",
"author": "@grustache4569",
"authorChannelId": "UCKrzgYonJnMd0Dk7zQXjYXw",
"authorPhoto": "https://yt3.ggpht.com/ytc/AIdro_kDD-FhIbth2qcBbI9VGxR41dJa0kE3kN9iVlGzNgRU_g=s88-c-k-c0x00ffffff-no-rj",
"likes": "109 mil",
"replyCount": 740,
"isReply": false,
"parentCommentId": null,
"heartedByCreator": false,
"publishedTimeText": "há 7 anos (editado)",
"publishedAtApprox": "2019-11-23T18:37:27.563175+00:00"
},
{
"videoId": "dQw4w9WgXcQ",
"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"commentId": "UgwPwTibxdgqCHZxktd4AaABAg",
"text": "My algebra teacher said that this was a link to the test answers",
"author": "@bdr8823",
"authorChannelId": "UCdi6tGxvFvTRGe-7dAn7m7w",
"authorPhoto": "https://yt3.ggpht.com/ytc/AIdro_kcDoQJUNDkDzTrA5kaF5ADVujN-6UcDjMP2Kydtw=s88-c-k-c0x00ffffff-no-rj",
"likes": "72 mil",
"replyCount": 708,
"isReply": false,
"parentCommentId": null,
"heartedByCreator": false,
"publishedTimeText": "há 7 anos",
"publishedAtApprox": "2019-11-23T18:37:27.568448+00:00"
},
{
"videoId": "dQw4w9WgXcQ",
"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"commentId": "Ugw10bSluCDSZMIxUSB4AaABAg",
"text": "Let’s put the meme aside, this is actually a banging song.",
"author": "@LK-ht7qz",
"authorChannelId": "UCHpvHTRSILoOFKWX5oFCYDA",
"authorPhoto": "https://yt3.ggpht.com/RJnrz4JwDmHNgtFdnVdJ6FKLiuo59IuHkY6bvqaEJM0mxTSlq0GKQs_ItA-sJ8QMqps_lf9Lvgs=s88-c-k-c0x00ffffff-no-rj",
"likes": "223 mil",
"replyCount": 666,
"isReply": false,
"parentCommentId": null,
"heartedByCreator": false,
"publishedTimeText": "há 6 anos",
"publishedAtApprox": "2020-11-23T18:37:27.571719+00:00"
},
{
"videoId": "dQw4w9WgXcQ",
"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"commentId": "UgyW4kfw4IeIP2SVP6N4AaABAg",
"text": "They should turn off ads so that the rickroll happens by surprise...\n\nWOW! I can't believe it! One billion views!! This is a very special moment for me. God bless you all, and hope there's more billions of views in the future!\n\nOK, guys, I have a confesion: I was just copying what some memes from Reddit and YouTube already said, since it was a good idea. This is not an original comment...",
"author": "@GabrielsEpicLifeofGoals",
"authorChannelId": "UCUztIF1vqHhPGCbO27IRDEg",
"authorPhoto": "https://yt3.ggpht.com/ytc/AIdro_keh05OEEoNHBwN1maGSGYTcVTcuPz-9Vl1Q6O9FYemDw=s88-c-k-c0x00ffffff-no-rj",
"likes": "73 mil",
"replyCount": 462,
"isReply": false,
"parentCommentId": null,
"heartedByCreator": false,
"publishedTimeText": "há 7 anos (editado)",
"publishedAtApprox": "2019-11-23T18:37:27.574921+00:00"
},
{
"videoId": "dQw4w9WgXcQ",
"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"commentId": "Ugzn9VS5jfDEby21Yv94AaABAg",
"text": "Yall still getting rick rolled after gta6",
"author": "@ELIBRON-i2g",
"authorChannelId": "UCYkKHiczoMbaR7v7kuefCAg",
"authorPhoto": "https://yt3.ggpht.com/9ptwIqgvw-f3nu8YMMQZmvZ2DRJ_0KFqQQ5NIsjtNZnNIlN3gefuQRQvtI4SoyI_s7G0mb7Lyw=s88-c-k-c0x00ffffff-no-rj",
"likes": 126,
"replyCount": 6,
"isReply": false,
"parentCommentId": null,
"heartedByCreator": false,
"publishedTimeText": "há 15 horas",
"publishedAtApprox": "2026-11-23T03:37:27.577038+00:00"
}
],
"meta": {
"robot": "youtube-comments",
"items": 5,
"status": "SUCCEEDED",
"seconds": 3,
"via": "vps"
}
}
curl --location --request GET 'https://zylalabs.com/api/15392/youtube+comments+scraper+api/41367/youtube+comments?video=https://www.youtube.com/watch?v=dQw4w9WgXcQ&max=5' --header 'Authorization: Bearer YOUR_API_KEY'
Después de registrarte, a cada desarrollador se le asigna una clave de acceso a la API personal, una combinación única de letras y dígitos proporcionada para acceder a nuestro endpoint de la API. Para autenticarte con el Extractor de comentarios de YouTube API simplemente incluye tu token de portador en el encabezado de Autorización.
| Encabezado | Descripción |
|---|---|
Autorización
|
Requerido
Debería ser Bearer access_key. Consulta "Tu Clave de Acceso a la API" arriba cuando estés suscrito.
|
Sin compromiso a largo plazo. Mejora, reduce o cancela en cualquier momento. La Prueba Gratuita incluye hasta 50 solicitudes.
Devuelve comentarios y respuestas de videos y Shorts de YouTube Cada elemento puede incluir la referencia del video el texto del comentario los detalles del autor la cantidad de Me gusta la cantidad de respuestas la hora de publicación el estado de fijado el estado de corazón del creador y las relaciones entre respuestas
Los campos clave incluyen `videoId` `videoUrl` `commentId` `text` `author` `authorChannelId` `authorPhoto` `likes` `replyCount` `isReply` `parentCommentId` `heartedByCreator` y `publishedTimeText`
La respuesta es un objeto JSON que contiene un array `items` Cada elemento del array representa un comentario de nivel superior o una respuesta Las respuestas se identifican con `isReply: true` y pueden hacer referencia a su comentario principal mediante `parentCommentId` 乐彩
Comprueba el campo `isReply`. Un comentario de nivel superior tiene `isReply: false` y normalmente un `parentCommentId` nulo. Una respuesta tiene `isReply: true` y usa `parentCommentId` para identificar el comentario al que pertenece.
Cada registro puede incluir el número de Me gusta que se muestra en `likes` y el número de respuestas en `replyCount`. El campo `heartedByCreator` indica si el creador del video ha marcado el comentario con un corazón.
Los datos del autor pueden incluir el nombre visible en `author`, el identificador del canal en `authorChannelId` y una URL de la imagen de perfil en `authorPhoto` Estos campos pueden servir para atribuir, agrupar o enlazar al perfil del autor
El endpoint admite comentarios y respuestas tanto de videos estándar de YouTube como de YouTube Shorts. Los registros incluyen `videoId` y `videoUrl`, lo que permite asociar los resultados con su contenido de origen.
Trata un array `items` vacío como si la solicitud no hubiera devuelto comentarios ni respuestas. Los registros individuales también pueden omitir algunos campos o proporcionar valores nulos, por lo que los clientes deben validar los campos opcionales antes de mostrarlos o procesarlos