$ legion actor youtube-comments-with-replies
Scrape YouTube comments with replies
Threads matter when you are reading a debate or a support section. This run keeps replies attached to the parent comment so you can sort the conversation later.
Open the youtube-comments actor in the Apify Store
Price: $0.50 per 1,000 comments or replies. Error rows are not charged. Actor start is $0.00005.
Input for this example
{
"startUrls": [
"https://www.youtube.com/watch?v=dQw4w9WgXcQ"
],
"maxCommentsPerVideo": 15,
"includeReplies": true,
"maxRepliesPerComment": 5
}Sample output
| text | type | replyLevel | likeCount |
|---|---|---|---|
| Gonna flag this for nudity so I can rick roll the YouTube staff | comment | 0 | 571000 |
| yeah, it's big brain time | reply | 1 | 64000 |
| Bruh | reply | 1 | 32000 |
Sample from a real run of this example. Personal names and email addresses on this page are redacted.
What this example does not do
Very large videos can hit the reply cap you set. This example is not a live chat scraper, and it does not collect commenter emails.
Related examples
Export YouTube video comments to CSV or Excel · Monitor the newest comments on a YouTube video