Use code WELCOME2027 to get 10% off any Scrapingdog planfor 10% off any plan

YouTube Comments API

Scrape comments from any YouTube video by its video ID. Returns comment text, likes, reply counts, author and channel details, plus pagination tokens for fetching additional pages. Each successful request costs 5 API credits.

GET GET / youtube/comments 200 OK
{
  "total_comments": 1883,
  "comments": [
    {
      "comment_id": "Ugx56MInixKwhy9HpRt4AaABAg",
      "link": "https://www.youtube.com/watch?v=tj7Sd7fs6JQ&lc=Ugx56MInixKwhy9HpRt4AaABAg",
      "channel": {
        "id": "UCc6OUZOla4qMvYKGjqahb2A",
        "handle": "@matthewp1682",
        "link": "https://www.youtube.com/@matthewp1682",
        "thumbnail": "https://yt3.ggpht.com/ytc/AIdro_k0PVo4Ayjzf9FlRcdjZA..."
      },
      "published_date": "1 month ago",
      "text": "I have a 2015 model s with the original battery and dual motors with 287k miles. Nothing really has ever broke and it has been amazing the whole time",
      "likes": "234",
      "replies": "16",
      "replies_next_page_token": "Eg0SC3RqN1NkN2ZzNkpRGAYy..."
    },
    {
      "comment_id": "UgyjySf56LStJfgyjz94AaABAg",
      "link": "https://www.youtube.com/watch?v=tj7Sd7fs6JQ&lc=UgyjySf56LStJfgyjz94AaABAg",
      "channel": {
        "id": "UCMsJq6M10YcLaHPMm3U1sBw",
        "handle": "@Manufacturergr",
        "link": "https://www.youtube.com/@Manufacturergr",
        "thumbnail": "https://yt3.ggpht.com/NFv6zJ1-O2mKjUJmef..."
      },
      "published_date": "1 month ago",
      "text": "S and then X was the vehicles that changed automotive industry.",
      "likes": "292",
      "replies": "9",
      "replies_next_page_token": "Eg0SC3RqN1NkN2ZzNkpRGAYy..."
    },
    {
      "comment_id": "UgycL9ktl7Jl4E4x1S14AaABAg",
      "link": "https://www.youtube.com/watch?v=tj7Sd7fs6JQ&lc=UgycL9ktl7Jl4E4x1S14AaABAg",
      "channel": {
        "id": "UCpjK8Q9bu7Iwe4QHYvoLUtQ",
        "handle": "@Majortrader8",
        "link": "https://www.youtube.com/@Majortrader8",
        "thumbnail": "https://yt3.ggpht.com/74iOdZU6EC_AExlfTIbmcK..."
      },
      "published_date": "1 month ago",
      "text": "The EVs that changed everything ⚡",
      "likes": "319",
      "replies": "5",
      "replies_next_page_token": "Eg0SC3RqN1NkN2ZzNkpRGAYy..."
    }
  ],
  "pagination": {
    "next_page_token": "Eg0SC3RqN1NkN2ZzNkpRGAYy6AIKvgJnZXRfcmFua2VkX3N0cmVhbXMt..."
  }
}

How It Works Behind the API

</> GET Python
import requests

params = {
    "api_key": "APIKEY",
    "v": "0e3GPea1Tyg",
    "country": "us",
    "language": "en"
}

response = requests.get("https://api.scrapingdog.com/youtube/comments", params=params)
data = response.json()
for comment in data["comments"]:
    print(comment["text"], "-", comment["likes"])
live api response
{
  "total_comments": 1883,
  "comments": [
    {
      "comment_id": "…",
      "link": "…",
      "channel": { … }
    }, …
  ],
  "pagination": { … }
}

YouTube Comments API Response (Structured JSON Data)

Try Scrapingdog for Free

Comment Content

commentstextlikesreplies

Author Details

channel.idchannel.handlechannel.linkchannel.thumbnail

Metadata

comment_idlinkpublished_datereplies_next_page_token

Pagination & Totals

total_commentspagination.next_page_token

YouTube Comments API Features for Audience Research

Full Comment Threads

Get comment text, likes and reply counts for every top-level comment on a video.

Author & Channel Details

Each comment includes the commenter's channel id, handle, profile link and thumbnail.

Reply Pagination

Use the replies_next_page_token on a comment to fetch its additional replies.

Paginate the Full Thread

Pass next_page_token from the response to retrieve further pages of comments or replies.

Localization

Use country and language to fetch comments as they are shown for a specific region and language.

Simple Video-ID Lookup

Pass the v parameter from the video URL — no browser automation or scrolling logic required.

What You Can Build with the YouTube Comments API

Audience Sentiment Analysis

Analyze comment text and likes to gauge how viewers reacted to a video.

Brand & Product Feedback Mining

Collect comments on branded or product-review videos to surface recurring feedback.

Community Management Tools

Build dashboards that surface new comments and replies for creators and moderators.

Influencer Engagement Research

Compare comment volume, likes and reply activity across creators and campaigns.

Spam & Toxicity Monitoring

Feed comment text into moderation pipelines to flag spam or policy-violating content.

Social Research Datasets

Collect structured comment and author data at scale for academic or market research.

Built for Teams of Every Size and Background

Social Listening TeamsBrand Monitoring TeamsMarket ResearchersCommunity ManagersData ScientistsGrowth MarketersAcademic ResearchersDevelopers

Get Started with the YouTube Comments API in Minutes

  1. 1

    Create Your Account

    Sign up for Scrapingdog and get 100 free credits to test the API.

  2. 2

    Get Your API Key

    Copy your personal API key from the dashboard.

  3. 3

    Call /youtube/comments

    Send api_key and v (the video ID). Add country and language to localize the response.

  4. 4

    Read & Paginate Comments

    Read the comments array and total_comments, then use next_page_token to fetch more.

Transparent & Simple Pricing

Start your web scraping journey with 100 free credits. Test our service and upgrade to one of the plans below. Cancel anytime.

FREE

$0forever
  • 100 Requests Credits
  • 1 Concurrency
  • Access To All APIs
  • No Credit Card Required
  • Community Support
  • Team Support
Start for Free

LITE

$40/month
  • 200,000 Requests Credits
  • 5 Concurrency
  • Access To All APIs
  • Geotargeting
  • Email Support
  • No Team Support
Start Trial

STANDARD

$90/month
  • 1,000,000 Requests Credits
  • 50 Concurrency
  • Access To All APIs
  • Geotargeting
  • Priority Email Support
  • No Team Support
Start Trial
Popular

PRO

$200/month
  • 3,000,000 Requests Credits
  • 100 Concurrency
  • Access To All APIs
  • Geotargeting
  • Priority Email Support
  • Team Support
Start Trial

PREMIUM

$350/month
  • 6,000,000 Requests Credits
  • 150 Concurrency
  • Access To All APIs
  • Geotargeting
  • Priority Email Support
  • Team Support
Start Trial

BUSINESS

$500/month
  • 9,000,000 Requests Credits
  • 200 Concurrency
  • Access To All APIs
  • Geotargeting
  • Priority Email Support
  • Team Support
Start Trial

BUSINESS PLUS

$1,000/month
  • 19,000,000 Requests Credits
  • 250 Concurrency
  • Access To All APIs
  • Geotargeting
  • Priority Email Support
  • Team Support
Start Trial

BUSINESS PRO

$1,500/month
  • 29,000,000 Requests Credits
  • 300 Concurrency
  • Access To All APIs
  • Geotargeting
  • Priority Email Support
  • Team Support
Start Trial

CORPORATE

$2,000/month
  • 42,000,000 Requests Credits
  • 350 Concurrency
  • Access To All APIs
  • Geotargeting
  • Priority Email Support
  • Team Support
Start Trial

CORPORATE PLUS

$2,500/month
  • 55,000,000 Requests Credits
  • 400 Concurrency
  • Access To All APIs
  • Geotargeting
  • Priority Email Support
  • Team Support
Start Trial

CORPORATE PRO

$3,000/month
  • 65,000,000 Requests Credits
  • 450 Concurrency
  • Access To All APIs
  • Geotargeting
  • Priority Email Support
  • Team Support
Start Trial

ENTERPRISE STARTER

$4,000/month
  • 90,000,000 Requests Credits
  • 500 Concurrency
  • Access To All APIs
  • Geotargeting
  • Priority Email Support
  • Team Support
Start Trial

ENTERPRISE PLUS

$5,000/month
  • 120,000,000 Requests Credits
  • 600 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Support
  • Team Support
Start Trial

ENTERPRISE PRO

$6,000/month
  • 150,000,000 Requests Credits
  • 650 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Support
  • Team Support
Start Trial

GLOBAL STARTER

$7,000/month
  • 185,000,000 Requests Credits
  • 700 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Support
  • Team Support
Start Trial

GLOBAL PLUS

$8,000/month
  • 220,000,000 Requests Credits
  • 800 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Support
  • Team Support
Start Trial

GLOBAL PRO

$9,000/month
  • 255,000,000 Requests Credits
  • 850 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Support
  • Team Support
Start Trial

GLOBAL ELITE

$10,000/month
  • 295,000,000 Requests Credits
  • 900 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Support
  • Team Support
Start Trial

ULTRA STARTER

$12,000/month
  • 360,000,000 Requests Credits
  • 1,000 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Account Manager
  • Team Support
Start Trial

ULTRA PLUS

$14,000/month
  • 430,000,000 Requests Credits
  • 1,200 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Account Manager
  • Team Support
Start Trial

ULTRA PRO

$16,000/month
  • 500,000,000 Requests Credits
  • 1,300 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Account Manager
  • Team Support
Start Trial

TITAN STARTER

$18,000/month
  • 580,000,000 Requests Credits
  • 1,400 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Account Manager
  • Team Support
Start Trial

TITAN PLUS

$20,000/month
  • 660,000,000 Requests Credits
  • 1,500 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Account Manager
  • Team Support
Start Trial

TITAN PRO

$22,000/month
  • 740,000,000 Requests Credits
  • 1,700 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Account Manager
  • Team Support
Start Trial

TITAN ELITE

$24,000/month
  • 830,000,000 Requests Credits
  • 1,800 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Account Manager
  • Team Support
Start Trial

NOVA STARTER

$26,000/month
  • 920,000,000 Requests Credits
  • 1,900 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Account Manager
  • Team Support
Start Trial

NOVA PLUS

$28,000/month
  • 1,010,000,000 Requests Credits
  • 2,000 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Account Manager
  • Team Support
Start Trial

NOVA PRO

$30,000/month
  • 1,100,000,000 Requests Credits
  • 2,200 Concurrency
  • Access To All APIs
  • Geotargeting
  • Dedicated Account Manager
  • Team Support
Start Trial
$0$30,000

Frequently Asked Questions

What is the YouTube Comments API?

It scrapes comments from a YouTube video by video ID and returns comment text, likes, reply counts, author/channel details and pagination tokens as JSON.

Which parameters are required?

Send api_key and v (the video ID) to https://api.scrapingdog.com/youtube/comments. See the YouTube Comments API documentation for localization and pagination examples.

How do I get more comments or replies?

Pass the next_page_token value from the previous response back in the next_page_token parameter to retrieve the next page of comments or replies.

Can I localize the comments?

Yes. Use country and language to request results for a specific region and language. Defaults are us and en.

How much does a YouTube Comments API request cost?

Each successful request costs 5 API credits. New Scrapingdog accounts receive 100 free credits to test Scrapingdog.

How is this different from the other YouTube APIs?

This API returns a video's comments. For channel data use the YouTube Channel API, for search results use the YouTube Scraper API, and for transcripts use the YouTube Transcripts API.

Try Scrapingdog for Free!

Get 100 free credits to spin the API. No credit card required!

Start Your Free TrialRead Documentation