Skip to main content
ScrapingRabbit

API

YouTube Comments API

Read the top comments of any YouTube video with likes and replies. Returns clean JSON from one GET request.

Request

One GET request to /youtube/comments?v={videoId}

curl "https://scrapingrabbit.com/youtube/comments?v=dQw4w9WgXcQ"

Example response

A real answer, shortened: long lists show three items and links have their tracking parameters removed.

{
  "success": true,
  "message": "YouTube comments retrieved successfully",
  "data": {
    "total_comments": 20,
    "comments": [
      {
        "comment_id": "Ugxzbv_ZeZXNRcfwsSF4AaABAg",
        "link": "https://www.youtube.com/watch",
        "channel": {
          "id": "UCNLgzvqrGzFi5SEAbVkFchg",
          "handle": "@candycake9531",
          "link": "https://www.youtube.com/channel/UCNLgzvqrGzFi5SEAbVkFchg",
          "thumbnail": "https://yt3.ggpht.com/ytc/AIdro_mEO82VrM8XtyGrBUkJgbAYgpAmDpUZixd1QvK9kyA=s88-c-k-c0x00ffffff-no-rj"
        },
        "published_date": "7 years ago",
        "text": "Is everyone going to ignore the fact that Rick Astley looks like a twelve year old boy but has a uniquely deep voice?",
        "likes": "294K",
        "replies": 740
      },
      {
        "comment_id": "UgwPwTibxdgqCHZxktd4AaABAg",
        "link": "https://www.youtube.com/watch",
        "channel": {
          "id": "UCdi6tGxvFvTRGe-7dAn7m7w",
          "handle": "@bdr8823",
          "link": "https://www.youtube.com/channel/UCdi6tGxvFvTRGe-7dAn7m7w",
          "thumbnail": "https://yt3.ggpht.com/ytc/AIdro_kcDoQJUNDkDzTrA5kaF5ADVujN-6UcDjMP2Kydtw=s88-c-k-c0x00ffffff-no-rj"
        },
        "published_date": "7 years ago",
        "text": "My algebra teacher said that this was a link to the test answers",
        "likes": "73K",
        "replies": 725
      },
      {
        "comment_id": "UgyEnXfdC-umwvTt8JF4AaABAg",
        "link": "https://www.youtube.com/watch",
        "channel": {
          "id": "UCWf34D_s8K_m2vwBISIDWtg",
          "handle": "@Oatman69",
          "link": "https://www.youtube.com/channel/UCWf34D_s8K_m2vwBISIDWtg",
          "thumbnail": "https://yt3.ggpht.com/ghenbV7T5VMOA3iqp3PThC82exqcu7iVng_iWNx1Ujak72Ti4oZZ_XzSVzIrfk9arP1XrFtnZA=s88-c-k-c0x00ffffff-no-rj"
        },
        "published_date": "7 years ago",
        "text": "Gonna flag this for nudity so I can rick roll the YouTube staff",
        "likes": "571K",
        "replies": 740
      }
    ],
    "pagination": {
      "next_page_token": "Eg0SC2RRdzR3OVdnWGNRGAYygAMK1gJnZXRfcmFua2VkX3N0cmVhbXMtLUNxY0JDSUFFRlJlMzBUZ2FuQUVLbHdFSTJGOFFnQVFZQnlLTUFmdUNEZnhtbDczeFNULV9nSVBXbFNqRVVk..."
    }
  },
  "meta": {
    "timestamp": "2026-11-27T19:45:30.955Z",
    "apiVersion": "1.0",
    "responseTime": "2413ms",
    "engine": "youtube_comments",
    "videoId": "dQw4w9WgXcQ",
    "country": "us",
    "language": "en"
  }
}

What developers build with it

Understand your audience

See what viewers praise, ask and complain about.

Spot content ideas

Questions in comments are topics people want covered.

Analyze with the API

Send comments to your own sentiment or moderation tools as JSON.

Limits to plan for

  • This page shows the first page of top comments, not every comment on the video.
  • Videos with comments turned off return nothing.
  • Public requests are limited to 100 per 15 minutes per IP address. Some routes have a lower limit.

Frequently asked questions

Does it get every comment?

No. The page shows the first page of top comments. The API supports a page token for fetching more.

Why are there no comments?

The creator may have turned comments off, or the video is private or very new.

In what order are comments shown?

In YouTube's default 'Top comments' order, which favors liked and replied-to comments.

Can I get this data as JSON?

Yes. The ScrapingRabbit API returns the same comments, likes and reply counts as JSON. See the endpoint shown on this page.

Guides

Ready to build?

See how access works, or read the shared response format and error codes.