youtube-comments-scraper
Collect YouTube comments and replies from videos, channels, playlists, or searches, then sort, filter, and export them for audience research and moderation.
Instructions
YouTube Comments Scraper — $0.50/1K comments & replies. Scrape YouTube comments and replies from videos, whole channels, playlists or a YouTube search: text, likes, creator hearts, pinned flag, reply count, commenter channel and video stats. Sort newest or top, filter by keyword, likes and date. Export, run via API, schedule, or use with AI agents.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "youtube-comments-scraper"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | ↕️ Sort comments — Newest first plus a date cutoff turns a scheduled run into a feed of what was said since last time. | top |
| keyword | No | 🔎 Keyword in comment — Keep only comments whose text contains this word or phrase (case-insensitive). Several alternatives: separate with |, e.g. battery|charging. | |
| language | No | 🌐 Language — Two-letter language for YouTube's interface text, such as en, de, id. Affects comment ages ("2 weeks ago") and video metadata labels, not the comments themselves. | en |
| minLikes | No | 👍 Minimum likes — Keep only comments with at least this many likes. | |
| videoUrls | No | 🎬 Video URLs or IDs — YouTube video links or 11-character video IDs, one per line: https://www.youtube.com/watch?v=dQw4w9WgXcQ, https://youtu.be/dQw4w9WgXcQ, a Shorts link, or just dQw4w9WgXcQ. | |
| channelUrls | No | 📺 Channel URLs — Channel links, one per line — https://www.youtube.com/@mkbhd or a /channel/UC… link. The channel's latest videos are collected (see Videos per channel) and their comments scraped. | |
| playlistUrls | No | 📋 Playlist URLs — Playlist links, one per line. Every video in the playlist is scraped, up to Videos per channel. | |
| commentsSince | No | 📅 Only comments since — Skip comments older than this: a date such as 2026-06-01 or a period such as 7 days, 3 months. YouTube shows ages, not dates, so the cutoff is applied to that age. With Newest first collection stops at the first older comment. | |
| searchQueries | No | 🔍 YouTube search — Search YouTube and scrape the comments of the top results — "iphone 17 review", "n8n tutorial". Up to Videos per channel videos per query. | |
| includeReplies | No | ↩️ Include replies — Also collect the replies under each comment. Each reply is its own row with parentCommentId set. | |
| maxVideosPerSource | No | 📹 Videos per channel / playlist / search — How many videos to take from each channel, playlist or search — newest first for channels, playlist order for playlists, YouTube's ranking for searches. | |
| onlyCreatorHearted | No | ❤️ Only comments hearted by the creator — Keep only comments the channel owner marked with a heart — the ones the creator noticed. | |
| proxyConfiguration | No | Proxy — YouTube serves video pages from Apify's data-centre addresses but answers the comments continuation with 403, so a run moves itself onto a residential proxy the first time that happens. Bring your own proxies here to keep the run on them instead. | |
| includeVideoDetails | No | 🎥 Video summary rows — Add one row per video with title, channel, views, likes, publish date, duration and how many comments were collected (rowType = video). These rows have different columns from the comment rows, so the table shows blanks where a column does not apply. | |
| maxCommentsPerVideo | No | 💬 Comments per video — Stop after this many comments per video (replies count too when included). 0 = all comments; a viral video can have hundreds of thousands. | |
| maxRepliesPerComment | No | Replies per comment — Cap on replies collected under one comment. 0 = all. |