YouTube Comments Scraper API
Send a video ID or URL, get its comments with likes, reply counts and dates, plus the video's total comment count. No Google Cloud project or daily quota.
Video
Endpoint
curl "https://api.toolzerhub.com/v2/youtube/comments?video_reference=dQw4w9WgXcQ" \
-H "x-api-key: $TOOLZERHUB_API_KEY"{
"data": {
"commentsCount": "2462594",
"page_cursor": "Eg0SC2RRdzR3OVdnWGNRGAYy_QIK0wJnZXRfcmFua2VkX3N0cmVhbXMtLUNxVUJDSUFFRlJlMzBUZ2FtZ0VLbFFFSTJGOFFnQVFZQnlLS0FUdW5lWVBaNHNhNzdGLU4tTzRHVVpsT…",
"data": [
{
"commentId": "UgyW4kfw4IeIP2SVP6N4AaABAg",
"authorChannelHandle": "hidden",
"textDisplay": "They should turn off ads so that the rickroll happens by surprise...\n\nWOW! I can't believe it! One billion views!! This is a very special…",
"publishedAt": "2019-11-26T00:00:00Z",
"likesCount": "73K",
"replyCount": "462",
"authorIsChannelOwner": false
},
{
"commentId": "UgwPwTibxdgqCHZxktd4AaABAg",
"authorChannelHandle": "hidden",
"textDisplay": "My algebra teacher said that this was a link to the test answers",
"publishedAt": "2019-11-26T00:00:00Z",
"likesCount": "73K",
"replyCount": "726",
"authorIsChannelOwner": false
},
{
"commentId": "UgzKYksqeQ5gA3t0g0F4AaABAg",
"authorChannelHandle": "hidden",
"textDisplay": "I Rick rolled my entire French class because we had to study a city in France and make a quiz about it as well as a presentation, I decid…",
"publishedAt": "2019-11-26T00:00:00Z",
"likesCount": "110K",
"replyCount": "744",
"authorIsChannelOwner": false
}
]
}
}- 1
- 20
- $0.08
- $0.04
Inputs
What you send
GET /v2/youtube/comments with your key in the x-api-key header.
| Parameter | Example | Notes |
|---|---|---|
| video_referencerequired | dQw4w9WgXcQ | Video ID, or a watch, youtu.be or Shorts URL. |
| sort_order | newest | top or newest. |
| page_cursor | Eg0SC2RR… | From the previous response. |
Limits
Good to know
- Replies are counted in replyCount and are not inlined.
How it works
From key to JSON
- 01x-api-key••••••••••Get a key
- 02GET/v2/youtube/commentsSend a request
- 03{ data, status }200Get JSON
Pricing
1,000 comments cost $0.08
50 calls at 1 credit each is 50 credits: $0.08 on the $5 3K pack, down to $0.04 on the largest plan. The free 100 credits a month cover about 2,000 comments, and failed calls are not charged.
FAQ
Questions
- Why not use the YouTube Data API?
- How many comments does a big video have?
- Does it work on Shorts?
Related
Often used with it
Same key, same credits. Every YouTube endpoint is on the YouTube API page.
Try the YouTube Comments API free
Every new workspace gets 100 credits a month. Buy credits only when you need more.
Get free API key(opens in new tab)