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.
- Later runs return only the rows your previous run did not deliver.
- 10,000 comments cost USD 2.00 at the Free-tier price; the Starter, Scale and Business plans are cheaper.
What it does
| Input | What it returns |
|---|---|
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 |
Inputs
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
Video URLs or IDs (videoUrls) | array | No | [] | Up to 100 YouTube watch URLs, youtu.be links, Shorts URLs, or 11-character video IDs. Leave both videoUrls and channels empty ({}) to read 1 sample video. |
Channels (optional) (channels) | array | No | [] | Up to 20 YouTube channels (@handle, /channel/, /c/, /user/, or UC... ID). Fetches comments from each channel’s recent videos (up to maxVideosPerChannel). |
Sort comments by (sortBy) | string | No | top | “top” (default) returns top-liked comments as YouTube orders them. “newest” returns newest comments first (recommended with onlyNewItems or oldestCommentDate). |
Max comments per video (maxCommentsPerVideo) | integer | No | 100 | Maximum comments (including replies when includeReplies is true) to extract per video (1 to 2,000, default 100). Bounded by maxItems across the whole run. |
Max videos per channel (maxVideosPerChannel) | integer | No | 5 | Recent videos to read per channel when channels are provided (1 to 15, default 5). Ignored when only videoUrls are set. |
Include comment replies (includeReplies) | boolean | No | false | false (default) extracts top-level comments with replyCount only. true also extracts replies as separate comment rows with parentCommentId set. |
Oldest comment date (optional) (oldestCommentDate) | string | No | | Skip comments older than this cutoff. Accepts an ISO date (e.g. 2026-11-01) or a relative age (e.g. 7 days, 24 hours). Leave empty for no date limit. |
Only new comments (onlyNewItems) | boolean | No | false | true skips comments already returned by prior runs with the same input (90-day state); false (default) returns all comments. Status rows retry on the next run. |
Maximum rows (maxItems) | integer | No | 20 | Maximum rows written per run (1 to 5,000, default 20). Comment and free status rows share this cap; only comment rows are charged. |
Save a diagnostic page snapshot (debugSnapshot) | boolean | No | false | false (default). true saves a diagnostic snapshot in the key-value store when a video’s comments fail to parse; snapshots are not in the dataset and not charged. |
Advanced: proxyConfiguration is available for proxy settings and is not required.
Output
| Field | Type | Description |
|---|---|---|
id | string | Stable row ID: “comment:<commentId>” or “video-comments:<videoId>” for a status row. |
type | string | Row kind: “comment” on delivered comments, or “status” on uncharged error rows. |
source | string | Always “youtube-comments”. |
url | string | null | Comment permalink (watch URL with lc=<commentId>) or video watch URL on status rows. |
commentId | string | null | YouTube comment ID (null on status rows). |
parentCommentId | string | null | Parent comment ID on reply rows when includeReplies is true; null on top-level comments and status rows. |
videoId | string | 11-character YouTube video ID. |
videoTitle | string | null | Title of the video the comment belongs to. |
videoUrl | string | Canonical YouTube watch URL (https://www.youtube.com/watch?v=<videoId>). |
channelId | string | null | YouTube channel ID (UC...) of the video. |
totalCommentsCount | integer | null | Total comment count reported by the comments header when present; null when the response omits the header. |
author | string | null | Comment author display name or @handle. |
authorChannelId | string | null | Public YouTube channel ID (UC...) of the comment author. |
authorChannelUrl | string | null | Public YouTube channel URL of the comment author. |
text | string | null | Clean comment text (up to 5,000 characters; invisible formatting characters removed). |
likeCount | integer | null | Numeric like count parsed from YouTube’s count label (e.g. “1.2K likes” -> 1200). |
replyCount | integer | null | Number of replies to this comment. Set includeReplies to true to also extract reply rows. |
publishedText | string | null | Relative publication label as shown by YouTube (e.g. “2 days ago” or “6 years ago (edited)”). |
publishedAt | string | null | Estimated ISO 8601 UTC timestamp derived from publishedText. |
publishedAtIsEstimate | boolean | True when publishedAt was computed from a relative label (within one time unit of publishedText). |
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 comment was posted by the channel owner. |
hasCreatorHeart | boolean | True when the video creator hearted this comment. |
sort | string | null | Sort order used when reading the comments: “top” or “newest” (null on status rows). |
error | object | null | null on comment rows; {type, message} on uncharged status rows (comments-disabled, bot-check, consent, comments-unavailable, video-unavailable). |
isNew | boolean | Present when onlyNewItems is true: true when this comment was not returned by earlier runs with the same input. |
Sources and limits
- The comments YouTube shows on public videos and Shorts: Each public video page and the comments YouTube serves for it, page by page; replies as separate rows when Include replies is on.
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.
Staging run
20 items read · 0 filtered out.
Default staging run: 20 comments in 18.9 s.
Sample output
The first 3 results of a run, cut to 10 of the 27 output fields; long text is shortened. Download the same rows as JSON or CSV.
{
"id": "comment:Ugwh3LxXUWinFcvKEvd4AaABAg",
"type": "comment",
"videoTitle": "COSTA RICA IN 4K 60fps HDR (ULTRA HD)",
"author": "@lolmom6839",
"text": "Let’s be honest, we are here for testing our screens",
"likeCount": 106000,
"replyCount": 944,
"publishedAt": "2021-11-18T05:29:52.841Z",
"publishedAtIsEstimate": true,
"sort": "top"
}
The output schema above lists every field. These rows come from a staging run, not from a customer.
Pricing
USD 0.20 per 1,000 comments on Free; USD 0.16 on Starter, USD 0.14 on Scale, USD 0.12 on Business
Apify charges per result; the Store page is the commercial reference. Rows that only record a failure are not charged. Every run also carries a start fee of USD 0.00005 per GB of memory (USD 0.00005 at the default 0.25 GB), even a run that returns no results.
Verification
The facts on this page come from the Actor’s own documentation and input and output schemas, and the staging run recorded above. No customer testimonials, ratings, or uptime numbers are shown.
The Store page is the commercial reference.