YouTube Video comments API
List the comments on a video or Short by URL with cursor pagination: text, author, like and reply counts.
Provider network
Providers ranked by traffic
Try it
Make your first request
{
"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"
}
]
}
}interface YoutubeVideoCommentsResponse {
data: {
comments: {
author: string;
id: string;
likes: number;
publishedTime: string;
replies: number;
text: string;
}[];
nextCursor: string | null;
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-16 · uptime and latency measured over 30dcurl -X POST https://api.getanyapi.com/v1/run/youtube.video_comments \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| url | string | "https://www.youtube.com/watch?v=dQw4w9WgXcQ"Full YouTube video URL. Shorts (youtube.com/shorts/...) and youtu.be URLs also work. |
| cursor | string | Continuation token from a previous response for pagination. |
| order | string | Comment order (e.g. top, newest). |
| Response | ||
| found | boolean | true |
| data | object | |
| data.nextCursor | string | "Eg0SCzVFV2F4bVd" |
| data.comments | array | |
| data.comments[].id | string | "UgwVfRopfS2F-WB3aF14AaABAg" |
| data.comments[].text | string | "This is a masterpiece and no one can convince me otherwise." |
| data.comments[].author | string | "@SimonT80" |
| data.comments[].likes | number | 110 |
| data.comments[].replies | number | 5 |
| data.comments[].publishedTime | string | "9 days ago" |
| Price | ||
| Price per request | USD | $0.0012 |
| Price /1k req | USD | $1.20 |
FAQ
About the YouTube Video comments API
The AnyAPI YouTube Video comments API returns YouTube video comments data as normalized JSON from one POST call to /v1/run/youtube.video_comments. List the comments on a video or Short by URL with cursor pagination: text, author, like and reply counts. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of YouTube video comments calls through AnyAPI succeeded, with a median response time of 3.0 seconds across 9,214 measured calls.