YouTube API

YouTube Video comments API

List the comments on a video or Short by URL with cursor pagination: text, author, like and reply counts.

POST/v1/run/youtube.video_comments
Uptime
100.00%
30d · 9,214 calls
Requests
9,214
30d · weekly, last 12 wks
Response
3.0s
median · 30d

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "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"
      }
    ]
  }
}
Response interface
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 30d
POST /v1/run/youtube.video_comments
curl -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"}'
FieldTypeExample value
Request body
urlstring"https://www.youtube.com/watch?v=dQw4w9WgXcQ"Full YouTube video URL. Shorts (youtube.com/shorts/...) and youtu.be URLs also work.
cursorstringContinuation token from a previous response for pagination.
orderstringComment order (e.g. top, newest).
Response
foundbooleantrue
dataobject
data.nextCursorstring"Eg0SCzVFV2F4bVd"
data.commentsarray
data.comments[].idstring"UgwVfRopfS2F-WB3aF14AaABAg"
data.comments[].textstring"This is a masterpiece and no one can convince me otherwise."
data.comments[].authorstring"@SimonT80"
data.comments[].likesnumber110
data.comments[].repliesnumber5
data.comments[].publishedTimestring"9 days ago"
Price
Price per requestUSD$0.0012
Price /1k reqUSD$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.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

List the comments on a video or Short by URL with cursor pagination: text, author, like and reply counts. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

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. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.