YouTube-API

YouTube-Videokommentare-API

Liste die Kommentare zu einem Video oder Short per URL mit Cursor-Paginierung auf: Text, Autor, Like- und Antwortzahlen.

0,78 USD/1k Anfr., Zahlung pro Anfrage, kein Abo.

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

Was die API zurückgegeben hatcomments[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 weitere Felder
}
Verfügbarkeit
99,81%
30d · 28.446 Aufrufe
Anfragen
28.447
30 T · wöchentlich, letzte 12 Wochen
Antwort
4,5s
Median · 30d

Preise und Anbieter

Preise der YouTube-Videokommentare-API: eine API, 5 austauschbare Anbieter

Der günstigste Anbieter bedient zuerst. Fällt er aus, übernimmt der nächste im selben Aufruf.

Du zahlst
7,80 USD
0,78 USD/1k Anfr., nur für das, was du nutzt. Kein Monatstarif.
Deine ersten 128 Anfragen sind mit dem Startguthaben von 0,10 USD kostenlos.

Ausprobieren

YouTube Videokommentare mit einer Anfrage abrufen

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.
Öffnen in
Beispielantwort
Kostenlose Läufe liefern nur die ersten 3 Ergebnisse. Lade einen Schlüssel auf, um die vollständige Antwort zu bekommen.

Dieses Beispiel zeigt 10 von 15 Feldern. Alle Felder ansehen

{
  "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"
      }
    ]
  }
}

Vollständige Parameter- und Antwortreferenz: jedes Feld, jeder Typ und jedes Beispiel für diesen Endpoint.

Referenz

Eine Anfrage, eine Antwortstruktur.

Jedes Feld, das du sendest, und jedes Feld, das du zurückbekommst, jeweils mit einem echten Beispiel.

Zuletzt geprüft 2026-11-21 · Verfügbarkeit und Latenz gemessen über 30d

Request-Body

JSON, per POST an diesen Endpoint gesendet.

  • urlstring

    https://www.youtube.com/watch?v=dQw4w9WgXcQ

    Vollständige YouTube-Video-URL. Shorts (youtube.com/shorts/...) und youtu.be-URLs funktionieren ebenfalls.

  • cursorstring

    Fortsetzungs-Token aus einer vorherigen Antwort für das Blättern.

  • orderenum

    Reihenfolge der Kommentare (z. B. 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.

Du sendest. Ein kleiner JSON-Body. Die gezeigten Werte sind Beispiele, die du durch deine eigenen ersetzt.

Antwort

JSON, ein Beispielwert pro Feld.

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.

  • likesintegerkann erfordern

    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

  • repliesContinuationTokenstringkann erfordern

    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.

Du bekommst zurück. Benannte, typisierte Felder in derselben Struktur, egal welche Quelle antwortet.

Du verkaufst diese API? Hier ist das vollständige Schema, das dein Endpoint zurückgeben muss.

FAQ

Über die YouTube-Videokommentare-API

Die AnyAPI-YouTube-Videokommentare-API liefert YouTube-Daten als normalisiertes JSON aus einem POST-Aufruf an /v1/run/youtube.video_comments. Liste die Kommentare zu einem Video oder Short per URL mit Cursor-Paginierung auf: Text, Autor, Like- und Antwortzahlen. AnyAPI routet jede Anfrage über 5 Quellen und weicht automatisch aus, wenn eine ausfällt. Sie kostet ab 0,78 USD pro 1.000 Anfragen, in US-Dollar, ohne Abo und ohne monatliches Minimum. In den letzten 30 Tagen waren 99,8% der YouTube Videokommentare-Aufrufe über AnyAPI erfolgreich, bei einer mittleren Antwortzeit von 4,5 Sekunden über 28.446 gemessene Aufrufe.

Sie kostet ab 0,78 USD pro 1.000 Anfragen, in US-Dollar, ohne Abo und ohne monatliches Minimum. Du lädst ein USD-Guthabenkonto auf, und jeder Aufruf bucht davon ab. Bei manchen fehlgeschlagenen, vom Guthabenkonto bezahlten Anfragen fallen Bearbeitungsgebühren an, die wir zum Selbstkostenpreis ohne Aufschlag weitergeben. Die Fehlerantwort zeigt den berechneten Betrag.

Liste die Kommentare zu einem Video oder Short per URL mit Cursor-Paginierung auf: Text, Autor, Like- und Antwortzahlen. Die Antwort ist normalisiertes JSON mit demselben Envelope, den jeder AnyAPI-Endpoint liefert, sodass das Parsen eines zweiten Endpoints nur eine geänderte URL bedeutet.

In den letzten 30 Tagen waren 99,8% der YouTube Videokommentare-Aufrufe über AnyAPI erfolgreich, bei einer mittleren Antwortzeit von 4,5 Sekunden über 28.446 gemessene Aufrufe. Das sind AnyAPIs eigene Messungen des Traffics durch das Gateway, laufend neu berechnet, kein veröffentlichtes Service-Level-Ziel.

Ja. Ein neues AnyAPI-Konto startet mit 0,10 USD Gratis-Guthaben, ohne Karte. Das deckt 128 YouTube-Videokommentare-Aufrufe zu je 0,00078 USD.

AnyAPI fragt in derselben Anfrage die nächste seiner 5 Quellen, die günstigste zuerst, sodass der Ausfall einer Quelle deinen Aufruf nicht scheitern lässt.

Sende eine POST-Anfrage an https://api.getanyapi.com/v1/run/youtube.video_comments mit deinem AnyAPI-Schlüssel in einem Header „Authorization: Bearer“ und der Eingabe als JSON-Body. Derselbe Schlüssel und dasselbe Guthabenkonto funktionieren bei jedem AnyAPI-Endpoint.

Nein. Du lädst US-Dollar auf ein Prepaid-AnyAPI-Guthaben, und jede Anfrage bucht davon ab. Es gibt keinen Monatstarif und kein Minimum, und dasselbe Guthaben bezahlt jeden AnyAPI-Endpoint.

Ja. Installiere @getanyapi/sdk von npm für TypeScript oder getanyapi von pip für Python. Beide rufen jeden AnyAPI-Endpoint mit demselben Schlüssel auf, und jeder HTTP-Client funktioniert ebenfalls.

Ja. Ein Agent kann sich mit dem AnyAPI-MCP-Server unter https://api.getanyapi.com/mcp verbinden oder mit einem unauthentifizierten POST an https://api.getanyapi.com/agent/signup einen eigenen kostenlosen Test-Schlüssel erstellen und diesen Endpoint über HTTP aufrufen.