API di YouTube

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.

YouTube
youtube.com/watch?v=dQw4w9WgXcQ
YouTube
Sign in
Subscribe
CommentsSort by
Add a comment…

@SimonT809 days ago

This is a masterpiece and no one can convince me otherwise.

110Reply

Cosa ha restituito l'APIcomments[0]
{
"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ù
}
Disponibilità
99,81%
30d · 28.446 chiamate
Richieste
28.447
30 g · settimanale, ultime 12 sett.
Risposta
4,5s
mediana · 30d

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.

Paghi
7,80 USD
0,78 USD/1k richieste, solo per ciò che usi. Nessun piano mensile.
Le tue prime 128 richieste sono gratuite con il saldo iniziale di 0,10 USD.

Provalo

Ottieni YouTube Commenti del video in una sola richiesta

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.
Apri in
Risposta di esempio
Le esecuzioni gratuite restituiscono solo i primi 3 risultati. Ricarica una chiave per ottenere la risposta completa.

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.

Tu invii. Un piccolo corpo JSON. I valori mostrati sono esempi da sostituire con i tuoi.

Risposta

JSON, un valore di esempio per campo.

each commentdata.comments[]

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.

datadata
  • 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.

top level
  • 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.

Tu ricevi. Campi con nome e tipo nella stessa struttura, qualunque fonte risponda.

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.

Costa da 0,78 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Ricarichi un portafoglio in USD e ogni chiamata lo scala. Alcune richieste fallite finanziate dal portafoglio comportano costi di elaborazione che trasferiamo al costo, senza ricarico; la risposta di errore mostra l'importo addebitato.

Elenca i commenti a un video o Short tramite URL con paginazione a cursore: testo, autore, numero di mi piace e di risposte. La risposta è JSON normalizzato con la stessa busta che restituisce ogni endpoint AnyAPI, quindi analizzare un secondo endpoint significa cambiare l'URL e nient'altro.

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. Sono misurazioni di AnyAPI sul traffico che passa dal gateway, ricalcolate di continuo, non un obiettivo di livello di servizio pubblicato.

Sì. Un nuovo account AnyAPI parte con 0,10 USD di saldo gratuito e senza bisogno di carta, che copre 128 chiamate YouTube Commenti del video a 0,00078 USD ciascuna.

AnyAPI interroga la successiva delle sue 5 fonti nella stessa richiesta, partendo dalla più economica, quindi una fonte che cade non fa fallire la tua chiamata.

Invia una richiesta POST a https://api.getanyapi.com/v1/run/youtube.video_comments con la tua chiave AnyAPI in un header "Authorization: Bearer" e l'input come corpo JSON. La stessa chiave e lo stesso portafoglio funzionano su ogni endpoint AnyAPI.

No. Aggiungi dollari statunitensi a un unico saldo prepagato AnyAPI e ogni richiesta lo scala. Non c'è un piano mensile né un minimo, e lo stesso saldo paga ogni endpoint AnyAPI.

Sì. Installa @getanyapi/sdk da npm per TypeScript o getanyapi da pip per Python. Entrambi chiamano ogni endpoint AnyAPI con la stessa chiave, e funziona anche qualsiasi client HTTP.

Sì. Un agente può collegarsi al server MCP di AnyAPI su https://api.getanyapi.com/mcp, oppure creare da solo la propria chiave di prova gratuita con un POST non autenticato a https://api.getanyapi.com/agent/signup e chiamare questo endpoint via HTTP.