YouTube Comments Scraper - Replies, Likes, Dates, $0.36/1K avatar

YouTube Comments Scraper - Replies, Likes, Dates, $0.36/1K

Pricing

from $0.22 / 1,000 comments

Go to Apify Store
YouTube Comments Scraper - Replies, Likes, Dates, $0.36/1K

YouTube Comments Scraper - Replies, Likes, Dates, $0.36/1K

YouTube comments scraper and API alternative: extract comments and replies from YouTube videos and Shorts with text, like and reply counts, pinned and hearted flags and date. Sort by top or newest, flat JSON, no API key or login.

Pricing

from $0.22 / 1,000 comments

Rating

0.0

(0)

Developer

CrawlKit

CrawlKit

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Features

Limited permissions

Share

Scrape the public comments of YouTube videos and Shorts, with optional replies. For each comment you get the text, a pseudonymized author, like and reply counts, pinned and hearted flags, an edited flag, the relative date shown by YouTube and an approximate ISO date. One flat JSON record per comment, no API key and no YouTube account needed.

What it does

  • Takes a list of YouTube video URLs or IDs (videoUrls): watch URLs, youtu.be links, Shorts, embed and live URLs, or raw 11-character IDs.
  • Reads the comments the way the YouTube web page loads them (InnerTube /next endpoint), sorted by top (as on the video page, pinned comment first) or newest.
  • Optionally adds the replies of each comment, right after their parent (isReply: true, parentCommentId set), with an optional cap per comment.
  • Returns at most maxItems items per video (comments plus replies), deduplicated by commentId.
  • Skips invalid URLs and reports, per video, why nothing was returned: video not found or private, comments turned off, no comments yet, or blocked.

Input

ParameterTypeRequiredDefaultDescription
videoUrlsarray of stringsYes-YouTube video URLs or 11-character video IDs (videos and Shorts). Duplicates are scraped once.
maxItemsintegerNo20Maximum items (comments + replies) per video, 1 to 10,000. 3 videos x 100 = up to 300 items.
sortBystringNotoptop (most relevant first, as on the video page) or newest (most recent first).
includeRepliesbooleanNofalseAlso return the replies of each comment. Replies count toward maxItems.
maxRepliesPerCommentintegerNo0With includeReplies: maximum replies per comment (0 = no limit other than maxItems).

Example:

{
"videoUrls": [
"https://www.youtube.com/watch?v=jNQXAC9IVRw",
"https://www.youtube.com/shorts/5mU6SRS2Bxo"
],
"maxItems": 100,
"sortBy": "top",
"includeReplies": true,
"maxRepliesPerComment": 5
}

Output

One dataset item per comment or reply. Real example (first item of the default input):

{
"commentId": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
"videoId": "jNQXAC9IVRw",
"videoTitle": "Me at the zoo",
"videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"commentUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw&lc=UgzuC3zzpRZkjc5Qzsd4AaABAg",
"text": "We're so honored that the first ever YouTube video was filmed here!",
"author": "@San***",
"authorIsChannelOwner": false,
"likeCount": 4800000,
"replyCount": 986,
"isReply": false,
"parentCommentId": null,
"isPinned": true,
"isHearted": true,
"isEdited": false,
"publishedTimeText": "6 years ago",
"publishedAt": "2020-10-29T06:37:07+00:00",
"scrapedAt": "2026-10-28T06:37:07+00:00"
}
FieldDescription
commentIdYouTube comment ID. Replies use <parentId>.<replyId>.
videoId, videoTitle, videoUrlThe video the comment belongs to.
commentUrlOpens the video with this comment highlighted.
textComment text (emoji kept).
authorPseudonymized author: handles are masked (@San***), full names shortened to First L.. No channel ID is returned.
authorIsChannelOwnertrue when the comment was posted by the video's channel.
likeCount, replyCountIntegers. YouTube rounds counts above 1,000 (4.8M becomes 4800000).
isReply, parentCommentIdReply flag and parent comment ID (null for top-level comments).
isPinned, isHearted, isEditedPinned by the channel, hearted by the creator, edited by its author.
publishedTimeTextRelative date as shown by YouTube (6 years ago, 3 hours ago (edited)).
publishedAtApproximate ISO 8601 date computed from the relative date at scrape time (month = 30 days, year = 365 days).
scrapedAtISO 8601 time of the scrape.

Pricing

Pay-per-event, no start fee: $0.36 per 1,000 comments (event COMMENT) on the Apify Free plan, lower on paid plans. You only pay for results pushed to the dataset.

Apify planPrice per 1,000 comments
Free$0.36
Starter$0.31
Scale$0.27
Business$0.22

Set a maximum cost per run in the run options: the Actor stops cleanly when it is reached.

Limitations

  • Only public comments that YouTube shows to a signed-out visitor are returned. Held-for-review and deleted comments are not visible.
  • Like and reply counts above 1,000 are rounded by YouTube (70K, 4.8M); exact values are not available.
  • publishedAt is approximate: YouTube only shows a relative date ("7 years ago"), so the precision is the unit shown.
  • The top order is YouTube's own ranking and can change between runs; newest is better for monitoring new comments.
  • With includeReplies, replies are collected depth-first: a comment with thousands of replies can use the whole maxItems budget of its video unless maxRepliesPerComment is set.
  • Videos with comments turned off (for example videos made for kids), private or removed videos return no comments; the run status message says which video was skipped and why.
  • Live chat messages and community posts are not covered.

Feedback

Found a bug or need a field? Open an issue on the Issues tab; if the Actor helps you, a review on the Reviews tab helps others find it.