YouTube Comments Scraper: Top & Newest, Incremental
Pricing
from $0.12 / 1,000 comment rows
YouTube Comments Scraper: Top & Newest, Incremental
Pass YouTube video URLs, Shorts, IDs, or channels to extract top or newest comments with likes, replies, author IDs, creator hearts, and timestamps. Enable includeReplies for reply rows, oldestCommentDate, or onlyNewItems. Status rows are free. Unofficial tool, not affiliated with YouTube.
Pricing
from $0.12 / 1,000 comment rows
Rating
0.0
(0)
Developer
Kizuki
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 days ago
Last modified
Categories
Features
Share
Pass YouTube video URLs, Shorts links, 11-character IDs, or channel URLs to extract top or newest comments (and optional reply rows) with comment text, like counts, reply counts, creator hearts, author names, author channel IDs, pinned/creator flags, and estimated ISO timestamps.
Filter recent comments with oldestCommentDate, or turn on onlyNewItems on a schedule to return and pay only for comments that arrived since the previous run. Empty input ({}) reads comments from sample video dQw4w9WgXcQ. This Actor is an unofficial tool and is not affiliated with, endorsed by, or sponsored by YouTube or Google.
What goes in and what comes out
| Input | What it returns |
|---|---|
videoUrls (watch?v=..., youtu.be/..., /shorts/..., or 11-char IDs) | One row per comment (type: "comment") up to maxCommentsPerVideo and maxItems |
channels (@handle, /channel/..., /c/..., /user/, or UC... ID) | Reads up to maxVideosPerChannel recent videos of each channel and extracts their comments |
sortBy ("top" or "newest") | "top" (default) returns top comments; "newest" returns newest comments first |
includeReplies: true | Also extracts comment replies as separate comment rows with parentCommentId set |
oldestCommentDate (ISO date or "7 days") | Skips comments older than the cutoff date |
onlyNewItems: true | Remembers delivered commentIds per input for 90 days and returns only unseen comments |
Quick start
Extract the top 100 comments (and replies) from a video or Short:
{"videoUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],"sortBy": "top","includeReplies": true,"maxCommentsPerVideo": 100,"maxItems": 100}
Monitor newest comments across a channel's latest videos on a schedule:
{"channels": ["https://www.youtube.com/@TED"],"sortBy": "newest","maxVideosPerChannel": 3,"maxCommentsPerVideo": 40,"onlyNewItems": true,"maxItems": 100}
Output fields
Every row contains the 26 fields below (null when a field does not apply, plus isNew when onlyNewItems is enabled). When includeReplies is true, each reply is emitted as its own comment row with parentCommentId linking to the parent comment.
| Field | Type | Description |
|---|---|---|
id | string | Stable ID: comment:<commentId> or video-comments:<videoId> on status rows |
type | string | comment on delivered comments, status on uncharged error rows |
source | string | Always youtube-comments |
url | string | null | Direct comment permalink (watch?v=<id>&lc=<commentId>) or watch URL |
commentId | string | null | YouTube comment ID (null on status rows) |
parentCommentId | string | null | Parent comment ID on reply rows (null on top-level comments and status rows) |
videoId | string | 11-character YouTube video ID |
videoTitle | string | null | Title of the video |
videoUrl | string | Canonical video URL (https://www.youtube.com/watch?v=<videoId>) |
channelId | string | null | Channel ID (UC...) of the video |
totalCommentsCount | integer | null | Total comment count from the comments header when present |
author | string | null | Comment author display name or @handle |
authorChannelId | string | null | Public channel ID (UC...) of the comment author |
authorChannelUrl | string | null | Public channel URL of the comment author |
text | string | null | Comment body text (up to 5,000 characters) |
likeCount | integer | null | Parsed numeric like count ("1.2K likes" -> 1200) |
replyCount | integer | null | Number of replies to the comment |
publishedText | string | null | Relative time label as shown on YouTube (e.g. "2 days ago") |
publishedAt | string | null | Estimated ISO 8601 UTC timestamp derived from publishedText |
publishedAtIsEstimate | boolean | true when publishedAt was computed from a relative label |
isEdited | boolean | true when YouTube marks the comment as (edited) |
isPinned | boolean | true when the channel owner pinned the comment |
isOwner | boolean | true when the channel owner posted the comment |
hasCreatorHeart | boolean | true when the video creator hearted this comment |
sort | string | null | Sort order read (top or newest), null on status rows |
error | object | null | null on comment rows; {type, message} on uncharged status rows |
isNew | boolean | Present only when onlyNewItems is true |
Output example
{"id": "comment:UgzKYksqeQ5gA3t0g0F4AaABAg","type": "comment","source": "youtube-comments","url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ&lc=UgzKYksqeQ5gA3t0g0F4AaABAg","commentId": "UgzKYksqeQ5gA3t0g0F4AaABAg","parentCommentId": null,"videoId": "dQw4w9WgXcQ","videoTitle": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)","videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ","channelId": "UCuAXFkgsw1L7xaCfnd5JJOw","totalCommentsCount": 2462487,"author": "@grustache4569","authorChannelId": "UCKrzgYonJnMd0Dk7zQXjYXw","authorChannelUrl": "https://www.youtube.com/channel/UCKrzgYonJnMd0Dk7zQXjYXw","text": "Example comment text.","likeCount": 108000,"replyCount": 721,"publishedText": "6 years ago (edited)","publishedAt": "2020-11-18T00:00:00.000Z","publishedAtIsEstimate": true,"isEdited": true,"isPinned": false,"isOwner": false,"hasCreatorHeart": false,"sort": "top","error": null}
Input parameters
| Field | Default | Description |
|---|---|---|
videoUrls | [] | Up to 100 YouTube watch URLs, youtu.be links, Shorts URLs, or 11-character IDs (accepts lists or comma/newline-separated text) |
channels | [] | Up to 20 YouTube channels (@handle, /channel/, /c/, /user/, or UC... ID) |
sortBy | top | top (most relevant/liked) or newest (latest first) |
maxCommentsPerVideo | 100 | Maximum comments (and replies when includeReplies is true) per video (1 to 2,000) |
maxVideosPerChannel | 5 | Recent videos per channel when channels is used (1 to 15) |
includeReplies | false | Set true to also extract reply rows with parentCommentId |
oldestCommentDate | "" | Optional cutoff date (YYYY-MM-DD, ISO timestamp, or relative age such as 7 days) |
onlyNewItems | false | Return and charge only comments not delivered in earlier runs with the same input |
maxItems | 20 | Maximum rows per run across all inputs (1 to 5,000) |
debugSnapshot | false | Save a diagnostic snapshot in the key-value store if a video fails to parse |
proxyConfiguration | {"useApifyProxy": false} | Leave empty or {} for direct connection, or configure Apify proxy when needed for regional access |
Scheduled monitoring with onlyNewItems
Enable onlyNewItems: true with sortBy: "newest" on a scheduled Task to track newly posted comments without paying twice for comments already delivered. Delivered comment IDs are kept per input configuration (sortBy, includeReplies, oldestCommentDate, channels, and videoUrls) for 90 days. Uncharged status rows are never marked as delivered, so the next run retries those videos. Avoid running the exact same input concurrently, as parallel runs read the same previous state.
Pricing and free tier
Launch pricing. YouTube Comments Scraper uses pay-per-event pricing (comment): you pay only for comment or reply rows returned (type: "comment" and error: null).
| Apify plan (discount tier) | Price per 1,000 comments | Price per comment |
|---|---|---|
| Free | $0.20 | $0.00020 |
| Starter (Bronze) | $0.16 | $0.00016 |
| Scale (Silver) | $0.14 | $0.00014 |
| Business (Gold) | $0.12 | $0.00012 |
Apify's Free plan includes USD 5 of monthly usage, which covers about 25,000 comments at the Free tier price, run start fees aside.
- Run start fee: platform default (
$0.00005per GB of memory per run; default memory is 256 MB). - What is not charged: status rows (
comments-disabled,video-unavailable,comments-unavailable,bot-check,consent), comments skipped because they were already delivered in earlieronlyNewItemsruns or older thanoldestCommentDate, invalid inputs, and rows beyondmaxItemsormaxCommentsPerVideo.
Use with AI agents (MCP)
Connect this Actor to Claude, Cursor, or n8n agents through the Apify MCP server:
https://mcp.apify.com?tools=fetch-actor-details,kizukidata/youtube-comments-scraper
- Claude Code:
claude mcp add --transport http apify "https://mcp.apify.com?tools=fetch-actor-details,kizukidata/youtube-comments-scraper" - Claude Desktop / claude.ai: open Customize → Connectors, choose Add custom connector, and paste the URL above.
- Cursor (
~/.cursor/mcp.json):
{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=fetch-actor-details,kizukidata/youtube-comments-scraper"}}}
- n8n: add an MCP Client Tool node to an AI Agent, set the endpoint to the URL above, and pass your Apify API token as Bearer auth (or use the
@apify/n8n-nodes-apifycommunity node).
Keep maxItems small (default 20) in interactive agent calls so runs return inside the MCP timeout.
API examples
cURL
curl -X POST "https://api.apify.com/v2/acts/kizukidata~youtube-comments-scraper/runs" \-H "Authorization: Bearer <APIFY_TOKEN>" \-H "Content-Type: application/json" \-d '{"videoUrls":["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],"sortBy":"top","maxItems":20}'
Python
from apify_client import ApifyClientclient = ApifyClient("<APIFY_TOKEN>")run = client.actor("kizukidata/youtube-comments-scraper").call(run_input={"videoUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],"sortBy": "newest","maxCommentsPerVideo": 100,"maxItems": 100,})for item in client.dataset(run["defaultDatasetId"]).iterate_items():if item["type"] == "comment":print(item["author"], item["likeCount"], item["text"])
JavaScript
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: '<APIFY_TOKEN>' });const run = await client.actor('kizukidata/youtube-comments-scraper').call({videoUrls: ['https://www.youtube.com/watch?v=dQw4w9WgXcQ'],sortBy: 'top',maxItems: 50,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items.filter((row) => row.type === 'comment'));
Limitations
- Replies are optional: set
includeReplies: trueto fetch reply rows withparentCommentId; by default only top-level comments andreplyCountare returned. - Estimated timestamps: YouTube shows relative comment ages (
"2 days ago"), sopublishedAtis computed from the run timestamp and flagged withpublishedAtIsEstimate: true. UsesortBy: "newest"when pairing witholdestCommentDateto stop scanning older pages automatically. - No login or private videos: only publicly visible comments on public videos and Shorts are extracted; no API key is required.
- Status rows: if a video has comments turned off or cannot be read, a
statusrow witherror.typeis written to the dataset and is not charged.
Related Kizuki Actors
- YouTube Channel Scraper & Monitor — monitor channel uploads, About facts, video stats, and newest comments together.
- YouTube Transcript Scraper — extract video subtitles, chapters, and Most Replayed segments as Markdown and RAG chunks.
- Reddit Comments Scraper — extract nested Reddit comment trees and LLM-ready Markdown threads with
onlyNewItems. - Google News Scraper — monitor Google News articles and resolved publisher URLs by keyword or topic.
- YouTube Playlist Scraper — one row per playlist video with chapters, most replayed moments and an optional transcript.
- YouTube Shorts Scraper — Shorts by keyword, channel or URL, with view counts, hashtags and optional transcripts.