Social media data

YouTube Comments Scraper: comments and replies from videos, channels and search

Scrape YouTube comments and replies from single videos, whole channels, playlists or a YouTube search. Each comment comes with likes, creator heart, pinned flag, reply count and commenter channel; sort by newest or top and filter by keyword, likes and date.

★ 5.0 rating · 2 reviews29 users93.4% successful runs (30 days)

What data you get

textComment text
likesLike count
creatorHeartWhether the creator hearted it
pinnedWhether it is pinned
replyCountNumber of replies
author / authorChannelCommenter name and channel
publishedTimeWhen it was posted
repliesReply threads (optional)
videoStatsVideo summary rows (optional)

How it works

  1. Open the scraper on Apify and sign up (free).
  2. Enter routes, dates and options in the form.
  3. Click Start and download results as JSON, CSV or Excel, or call the API.

Pricing

$0.50 per 1,000 rows

Pay per event: you pay per comment or reply returned.

Apify gives $5 free credits every month — enough to test this scraper at no cost.

Example tasks

Ready-made inputs. Copy one into the scraper form or send it through the API.

Scrape all top comments from a YouTube video

Up to 1,000 top comments with replies.

{
  "videoUrls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxCommentsPerVideo": 1000,
  "sort": "top",
  "includeReplies": true
}
Run this task →

Scrape recent comments from a YouTube channel

Last 30 days of comments on 10 latest videos.

{
  "channelUrls": [
    "https://www.youtube.com/@MKBHD"
  ],
  "maxVideosPerSource": 10,
  "maxCommentsPerVideo": 200,
  "sort": "newest",
  "commentsSince": "30 days"
}
Run this task →

Scrape YouTube comments mentioning a keyword from search

Comments containing “battery” on iPhone 17 review videos.

{
  "searchQueries": [
    "iphone 17 review"
  ],
  "maxVideosPerSource": 20,
  "maxCommentsPerVideo": 100,
  "keyword": "battery",
  "includeVideoDetails": true
}
Run this task →

Get creator-hearted comments from a YouTube playlist

Only comments the creator hearted, across 25 videos.

{
  "playlistUrls": [
    "https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI"
  ],
  "maxVideosPerSource": 25,
  "maxCommentsPerVideo": 50,
  "onlyCreatorHearted": true
}
Run this task →

Use cases

FAQ

Can I scrape a whole channel?

Yes. Add channel URLs and choose how many videos to take from each one.

Are replies included?

Yes, by default. You can set how many replies to collect per comment or turn them off.

Can I filter comments?

Yes: by keyword, minimum likes, date or period (e.g. 7 days), or only comments hearted by the creator.

Is it legal to scrape YouTube?

The scraper collects only publicly visible YouTube data. Whether your use is legal depends on your jurisdiction and purpose: respect local law and the site's terms, and avoid collecting or storing personal data you don't need.

How do I get the data into my app?

Call it through the Apify API, use the Python or JavaScript client, or connect it to Make, n8n, Zapier or Google Sheets. Results export as JSON, CSV or Excel.

More scrapers

Start scraping YouTube comments

Run on Apify — free trial