YouTube Commenti del video API
Elenca i commenti a un video o Short tramite URL con paginazione a cursore: testo, autore, numero di mi piace e di risposte.
0,78 USD/1k richieste, paghi a richiesta, nessun abbonamento.
@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 campi in più}
Prezzi e provider
Prezzi dell'API YouTube Commenti del video: una sola API, 5 provider intercambiabili
Serve per primo il provider più economico. Se fallisce, subentra il successivo nella stessa chiamata.
Provalo
Ottieni YouTube Commenti del video in una sola richiesta
Questo esempio mostra 10 campi su 15. Vedi tutti i campi
{
"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"
}
]
}
}Riferimento completo di parametri e risposta - ogni campo, tipo ed esempio per questo endpoint.
Riferimento
Una richiesta, una sola forma di risposta.
Ogni campo che invii e ogni campo che ricevi, ciascuno con un esempio reale.
Ultima verifica 2026-11-21 · disponibilità e latenza misurate su 30d
Corpo della richiesta
JSON, inviato a questo endpoint.
- urlstring
https://www.youtube.com/watch?v=dQw4w9WgXcQ
URL completo del video YouTube. Funzionano anche gli Short (youtube.com/shorts/...) e gli URL youtu.be.
- cursorstring
Token di continuazione da una risposta precedente per la paginazione.
- orderenum
Ordine dei commenti (es. 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.
Risposta
JSON, un valore di esempio per 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.
- likesintegerpuò richiedere
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
- repliesContinuationTokenstringpuò richiedere
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.
Vendi questa API? Consulta lo schema completo che il tuo endpoint deve restituire.
FAQ
Sull'API YouTube Commenti del video
L'API YouTube Commenti del video di AnyAPI restituisce dati YouTube come JSON normalizzato da una sola chiamata POST a /v1/run/youtube.video_comments. Elenca i commenti a un video o Short tramite URL con paginazione a cursore: testo, autore, numero di mi piace e di risposte. AnyAPI instrada ogni richiesta su 5 fonti e passa automaticamente a un'altra quando una fallisce. Costa da 0,78 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Negli ultimi 30 giorni, il 99,8% delle chiamate YouTube Commenti del video tramite AnyAPI è riuscito, con un tempo di risposta mediano di 4,5 secondi su 28.446 chiamate misurate.