YouTube Комментарии к видео API
Список комментариев к видео или Short по URL с постраничной выдачей по курсору: текст, автор, число лайков и ответов.
0,78 USD/1 тыс. запросов, оплата за запрос, без подписки.
@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}
Цены и поставщики
Цена API YouTube Комментарии к видео: один API, поставщиков 5, и любой может заменить другого
Первым обслуживает самый дешёвый поставщик. Если он не отвечает, его заменяет следующий в том же вызове.
Попробовать
Получите YouTube Комментарии к видео одним запросом
В этом примере показано полей: 10 из 15. Все поля
{
"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"
}
]
}
}Полный справочник по параметрам и ответу: каждое поле, тип и пример для этого эндпоинта.
Справочник
Один запрос, один формат ответа.
Каждое поле, которое вы отправляете, и каждое поле, которое получаете, с реальным примером.
Проверено 2026-11-21 · доступность и задержка измерены за 30d
Тело запроса
JSON, отправляется на этот эндпоинт.
- urlstring
https://www.youtube.com/watch?v=dQw4w9WgXcQ
Полный URL видео YouTube. Shorts (youtube.com/shorts/...) и URL youtu.be тоже подходят.
- cursorstring
Токен продолжения из предыдущего ответа для постраничной выдачи.
- orderenum
Порядок комментариев (например, 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.
Ответ
JSON, по одному примеру значения на поле.
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.
- likesintegerможет потребовать
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
- repliesContinuationTokenstringможет потребовать
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.
Продаёте этот API? Полная схема, которую должен возвращать ваш эндпоинт.
Вопросы и ответы
Об API YouTube Комментарии к видео
AnyAPI YouTube Комментарии к видео API возвращает данные YouTube в виде нормализованного JSON одним вызовом POST к /v1/run/youtube.video_comments. Список комментариев к видео или Short по URL с постраничной выдачей по курсору: текст, автор, число лайков и ответов. AnyAPI направляет каждый запрос по источникам (их 5) и автоматически переключается, если один из них отказывает. Это стоит от 0,78 USD за 1000 запросов, в долларах США, без подписки и без ежемесячного минимума. За последние 30 дней 99,8% вызовов YouTube Комментарии к видео через AnyAPI завершились успешно, медианное время ответа 4,5 с, измерено вызовов: 28 446.