YouTube Commentaires de la vidéo API
Listez les commentaires d’une vidéo ou d’un Short par URL avec pagination par curseur : texte, auteur, nombres de mentions J’aime et de réponses.
0,78 $US/1k req, paiement à la requête, sans abonnement.
@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 champs de plus}
Tarifs et fournisseurs
Tarifs de l’API YouTube Commentaires de la vidéo : une API, 5 fournisseurs interchangeables
Le fournisseur le moins cher répond en premier. S’il échoue, le suivant prend le relais dans le même appel.
Essayer
Obtenez YouTube Commentaires de la vidéo en une requête
Cet exemple affiche 10 champs sur 15. Voir tous les champs
{
"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"
}
]
}
}Référence complète des paramètres et de la réponse : chaque champ, type et exemple de cet endpoint.
Référence
Une requête, une seule forme de réponse.
Chaque champ que vous envoyez et chaque champ que vous recevez, avec un vrai exemple.
Dernière vérification : 2026-11-21 · disponibilité et latence mesurées sur 30d
Corps de la requête
JSON, envoyé à cet endpoint.
- urlstring
https://www.youtube.com/watch?v=dQw4w9WgXcQ
URL complète de la vidéo YouTube. Les Shorts (youtube.com/shorts/...) et les URL youtu.be fonctionnent aussi.
- cursorstring
Jeton de continuation d’une réponse précédente pour la pagination.
- orderenum
Ordre des commentaires (p. ex. 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.
Réponse
JSON, une valeur d’exemple par champ.
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.
- likesintegerpeut exiger
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
- repliesContinuationTokenstringpeut exiger
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.
Vous vendez cette API ? Consultez le schéma complet que votre endpoint doit renvoyer.
FAQ
À propos de l’API YouTube Commentaires de la vidéo
L’API YouTube Commentaires de la vidéo d’AnyAPI renvoie des données YouTube en JSON normalisé à partir d’un appel POST à /v1/run/youtube.video_comments. Listez les commentaires d’une vidéo ou d’un Short par URL avec pagination par curseur : texte, auteur, nombres de mentions J’aime et de réponses. AnyAPI route chaque requête sur 5 sources et bascule automatiquement quand l’une échoue. Elle coûte à partir de 0,78 $US pour 1 000 requêtes, en dollars US, sans abonnement et sans minimum mensuel. Ces 30 derniers jours, 99,8% des appels YouTube Commentaires de la vidéo passés par AnyAPI ont réussi, avec un temps de réponse médian de 4,5 secondes, sur 28 446 appels mesurés.