YouTube Comments Scraper
Pricing
from $1.00 / 1,000 comment or replies
YouTube Comments Scraper
Get the comments of any YouTube video with replies: text, author and channel ID, likes, reply count, date, pinned and creator-hearted flags. Sort by top or newest, cap per video. No API key, no quota.
Pricing
from $1.00 / 1,000 comment or replies
Rating
0.0
(0)
Developer
Tarik Cerkezovic
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
18 days ago
Last modified
Categories
Features
Share
Get the comments of any YouTube video, with replies, as clean structured data. Each comment comes with its text, author handle and channel ID, like count, reply count, date, and whether it is pinned or hearted by the creator. Choose YouTube's Top ordering or newest first, cap the number per video, and decide how many replies to pull under each comment.
No YouTube API key, no quota, no login. Built for sentiment analysis, audience research, moderation, lead discovery and feeding comment threads into AI tools.
What you get
| Field | Description |
|---|---|
videoId, videoUrl, videoTitle, channelName, channelId, videoCommentCount | The video and its total comment count |
commentId, parentCommentId, isReply, position | Replies carry the parent's ID; position is the rank among top-level comments |
text | Comment text with emoji |
author, authorChannelId, authorUrl, authorAvatarUrl, isAuthorVerified, isAuthorCreator | Who wrote it |
likeCount, likeCountText, replyCount | Engagement |
publishedText, publishedAt | "6 years ago" and an ISO date estimated from it |
isPinned, isHearted | Pinned by the creator; hearted by the creator |
error, errorMessage | Only on video-level failures |
Sample output
{"videoId": "jNQXAC9IVRw","videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw","videoTitle": "Me at the zoo","channelName": "jawed","channelId": "UC4QobU6STFB0P71PMvOGN5A","videoCommentCount": 10646593,"commentId": "UgzuC3zzpRZkjc5Qzsd4AaABAg","isReply": false,"position": 1,"text": "We're so honored that the first ever YouTube video was filmed here!","author": "@SanDiegoZoo","authorChannelId": "UCC5NfQ6Mf0dq_eEwv4P_hWA","authorUrl": "https://www.youtube.com/@SanDiegoZoo","isAuthorVerified": true,"isAuthorCreator": false,"likeCount": 4800000,"likeCountText": "4.8M","replyCount": 986,"publishedText": "6 years ago","publishedAt": "2020-11-05T16:40:00.000Z","isPinned": true,"isHearted": true,"input": "jNQXAC9IVRw","fetchedAt": "2026-11-05T16:40:00.000Z"}
Input
| Field | Type | Default | What it does |
|---|---|---|---|
videoUrls | array of strings | required | Video URLs or IDs. |
maxCommentsPerVideo | integer | 100 | Cap on top-level comments per video. 0 takes all. |
sortBy | top, newest | top | YouTube's Top ordering or newest first. |
includeReplies | boolean | true | Fetch replies under each comment as separate items. |
maxRepliesPerComment | integer | 10 | Cap on replies per comment. 0 takes all. |
maxConcurrency | integer | 3 | Videos in parallel. |
proxyConfiguration | object | Apify datacenter proxy | Proxy for all requests. |
residentialFallback | boolean | true | Retry a blocked video through residential proxies, only on a detected block. |
Minimal input:
{ "videoUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"], "maxCommentsPerVideo": 200 }
Errors
error | Meaning | Charged? |
|---|---|---|
INVALID_INPUT | Not a YouTube video URL or ID | no |
VIDEO_UNAVAILABLE | Deleted, private or never existed | no |
COMMENTS_DISABLED | The creator turned comments off, or the video is a live stream without a comment section | no |
NO_COMMENTS | The video has no comments yet | no |
BLOCKED | YouTube refused the request from every proxy tried | no |
FETCH_FAILED | Network or parsing failure | no |
Pricing
Pay per event: a small fixed amount per comment or reply item, plus Apify platform usage. Error items are free. Set a maximum total charge on the run and the actor stops cleanly when it is reached.
Typical cost: YouTube serves 20 comments per request and about 10 replies per request, so 1,000 comments with replies capped at 10 is roughly 50 to 150 requests and well under a minute.
Notes
- Ordering is what YouTube shows an anonymous visitor: Top is YouTube's own ranking, Newest is chronological.
publishedAtis estimated from the relative text YouTube provides, so it is as precise as that text.- Like counts are rounded the way YouTube rounds them ("4.8M").
- Replies are fetched only for comments that have replies, and only up to
maxRepliesPerCommenteach.
Using it from code
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('serentity/youtube-comments-scraper').call({ videoUrls: ['jNQXAC9IVRw'], maxCommentsPerVideo: 500, sortBy: 'newest' });const { items } = await client.dataset(run.defaultDatasetId).listItems();
Legal
Comments are public content shown to any visitor. The actor does not log in and collects only what the video page shows, including the public handle and channel ID of each author. Use it in line with YouTube's terms of service and applicable data protection law.