$ 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.
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
| text | likeCount | publishedTimeText | replyCount |
|---|---|---|---|
| Wait... it's all math? | 1800 | 2 years ago | 68 |
| In class : printf("Hello world"); The exam : | 3600 | 6 years ago | 51 |
| This channel is clear and easy to follow This deserves recognition. | 0 | 28 minutes ago | 0 |
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