Legion Labs logoLegion Labs

$ 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.

Run this example on Apify

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

texttypereplyLevellikeCount
Gonna flag this for nudity so I can rick roll the YouTube staffcomment0571000
yeah, it's big brain timereply164000
Bruhreply132000

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

All Apify actors · All products