Legion Labs logoLegion Labs

$ legion actor export-youtube-comments-csv

Export YouTube video comments to CSV or Excel

For a research or moderation pass you often want the top-level comments in a spreadsheet: the text, the time, and how many likes each comment has.

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=aircAruvnKk"
  ],
  "maxCommentsPerVideo": 30,
  "includeReplies": false
}

Sample output

textlikeCountpublishedTimeTextreplyCount
Wait... it's all math?18002 years ago68
In class : printf("Hello world"); The exam :36006 years ago51
This channel is clear and easy to follow This deserves recognition.028 minutes ago0

Sample from a real run of this example. Personal names and email addresses on this page are redacted.

What this example does not do

This example does not pull replies. Author names are redacted in the sample on this page; the dataset on Apify includes the public author field.

Related examples

Scrape YouTube comments with replies · Monitor the newest comments on a YouTube video

All Apify actors · All products