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.
{
"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
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"]){
"total_comments": 1883,
"comments": [
{
"comment_id": "…",
"link": "…",
"channel": { … }
}, …
],
"pagination": { … }
}YouTube Comments API Response (Structured JSON Data)
Comment Content
commentstextlikesrepliesAuthor Details
channel.idchannel.handlechannel.linkchannel.thumbnailMetadata
comment_idlinkpublished_datereplies_next_page_tokenPagination & Totals
total_commentspagination.next_page_tokenYouTube 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
Get Started with the YouTube Comments API in Minutes
- 1
Create Your Account
Sign up for Scrapingdog and get 100 free credits to test the API.
- 2
Get Your API Key
Copy your personal API key from the dashboard.
- 3
Call /youtube/comments
Send api_key and v (the video ID). Add country and language to localize the response.
- 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
- 100 Requests Credits
- 1 Concurrency
- Access To All APIs
- No Credit Card Required
- Community Support
- Team Support
LITE
- 200,000 Requests Credits
- 5 Concurrency
- Access To All APIs
- Geotargeting
- Email Support
- No Team Support
STANDARD
- 1,000,000 Requests Credits
- 50 Concurrency
- Access To All APIs
- Geotargeting
- Priority Email Support
- No Team Support
PRO
- 3,000,000 Requests Credits
- 100 Concurrency
- Access To All APIs
- Geotargeting
- Priority Email Support
- Team Support
PREMIUM
- 6,000,000 Requests Credits
- 150 Concurrency
- Access To All APIs
- Geotargeting
- Priority Email Support
- Team Support
BUSINESS
- 9,000,000 Requests Credits
- 200 Concurrency
- Access To All APIs
- Geotargeting
- Priority Email Support
- Team Support
BUSINESS PLUS
- 19,000,000 Requests Credits
- 250 Concurrency
- Access To All APIs
- Geotargeting
- Priority Email Support
- Team Support
BUSINESS PRO
- 29,000,000 Requests Credits
- 300 Concurrency
- Access To All APIs
- Geotargeting
- Priority Email Support
- Team Support
CORPORATE
- 42,000,000 Requests Credits
- 350 Concurrency
- Access To All APIs
- Geotargeting
- Priority Email Support
- Team Support
CORPORATE PLUS
- 55,000,000 Requests Credits
- 400 Concurrency
- Access To All APIs
- Geotargeting
- Priority Email Support
- Team Support
CORPORATE PRO
- 65,000,000 Requests Credits
- 450 Concurrency
- Access To All APIs
- Geotargeting
- Priority Email Support
- Team Support
ENTERPRISE STARTER
- 90,000,000 Requests Credits
- 500 Concurrency
- Access To All APIs
- Geotargeting
- Priority Email Support
- Team Support
ENTERPRISE PLUS
- 120,000,000 Requests Credits
- 600 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Support
- Team Support
ENTERPRISE PRO
- 150,000,000 Requests Credits
- 650 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Support
- Team Support
GLOBAL STARTER
- 185,000,000 Requests Credits
- 700 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Support
- Team Support
GLOBAL PLUS
- 220,000,000 Requests Credits
- 800 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Support
- Team Support
GLOBAL PRO
- 255,000,000 Requests Credits
- 850 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Support
- Team Support
GLOBAL ELITE
- 295,000,000 Requests Credits
- 900 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Support
- Team Support
ULTRA STARTER
- 360,000,000 Requests Credits
- 1,000 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Account Manager
- Team Support
ULTRA PLUS
- 430,000,000 Requests Credits
- 1,200 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Account Manager
- Team Support
ULTRA PRO
- 500,000,000 Requests Credits
- 1,300 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Account Manager
- Team Support
TITAN STARTER
- 580,000,000 Requests Credits
- 1,400 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Account Manager
- Team Support
TITAN PLUS
- 660,000,000 Requests Credits
- 1,500 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Account Manager
- Team Support
TITAN PRO
- 740,000,000 Requests Credits
- 1,700 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Account Manager
- Team Support
TITAN ELITE
- 830,000,000 Requests Credits
- 1,800 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Account Manager
- Team Support
NOVA STARTER
- 920,000,000 Requests Credits
- 1,900 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Account Manager
- Team Support
NOVA PLUS
- 1,010,000,000 Requests Credits
- 2,000 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Account Manager
- Team Support
NOVA PRO
- 1,100,000,000 Requests Credits
- 2,200 Concurrency
- Access To All APIs
- Geotargeting
- Dedicated Account Manager
- Team Support
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!