YouTube Comments Scraper - Comments & Replies by Video URL avatar

YouTube Comments Scraper - Comments & Replies by Video URL

Pricing

from $0.99 / 1,000 comments

Go to Apify Store
YouTube Comments Scraper - Comments & Replies by Video URL

YouTube Comments Scraper - Comments & Replies by Video URL

Public YouTube comments and replies from video links: comment ID, parent comment ID, text, author name, likes, reply count, publish time, pinned and creator-heart flags. Top or newest order, exact per-video cap. No login. Comments-off and failed videos are marked and free.

Pricing

from $0.99 / 1,000 comments

Rating

0.0

(0)

Developer

Lantern Lab

Lantern Lab

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

14 days ago

Last modified

Categories

Features

Limited permissions

Share

A Lantern Lab Actor. Give it YouTube video links and get back the public comments and their replies: comment ID, parent comment ID for every reply, text, author display name, likes, reply count, publish time (YouTube's own text and a parsed timestamp), and whether a comment is pinned, hearted by the creator or written by the video owner. Choose Top or Newest order and an exact per-video cap. No login, no cookies, no account of your own: the Actor reads only what YouTube shows a signed-out visitor.

Price: USD 0.99 per 1,000 comments, plus USD 0.005 per run. A video with comments turned off, a deleted video, a bad link and a duplicate are free - you pay for comment rows only. See Pricing.

Need the videos themselves (views, likes, duration, channel)? Use YouTube Scraper. Need the spoken words? Use YouTube Transcript Scraper.

Input

{
"videoUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ", "https://youtu.be/0e3GPea1Tyg"],
"maxComments": 200,
"sortBy": "newest",
"includeReplies": true,
"maxRepliesPerComment": 10
}
FieldWhat it does
videoUrlsWatch, youtu.be, Shorts, embed or live links, or bare 11-character video IDs. The same video twice is collected once.
maxCommentsThe most comment rows per video, replies included. Default 100. Never exceeded.
sortBytop (YouTube's Top comments, the default) or newest. A pinned comment comes first in both, as on the page.
includeRepliesCollect replies, each written right after its comment. Default true.
maxRepliesPerCommentThe most replies under any one comment. Default 10.
maxUpstreamRequestsOptional hard ceiling on requests to YouTube. Left empty, the Actor derives one from the input.
proxyConfigurationThe proxy for requests to YouTube. Apify's datacenter proxy (the default) works.

Output

One row per comment or reply (recordType: "comment"). A video that produced fewer comments than you asked for, for any reason other than simply having no more, also gets one free status row that says why. Totals are in the run's key-value store under RUN_SUMMARY.

A top-level comment:

{
"recordType": "comment",
"platform": "youtube",
"commentId": "UgzKYksqeQ5gA3t0g0F4AaABAg",
"parentCommentId": null,
"isReply": false,
"text": "I Rick rolled my entire French class because we had to study a city in France ...",
"authorDisplayName": "@grustache4569",
"authorIsVideoOwner": false,
"authorIsVerified": false,
"likeCount": 106000,
"likeCountText": "106K likes",
"replyCount": 665,
"replyCountText": "665 replies",
"publishedTimeText": "6 years ago (edited)",
"publishedAtEstimated": "2020-11-03T08:28:24.364Z",
"publishedTimePrecision": "year",
"isEdited": true,
"isPinned": false,
"isHeartedByCreator": false,
"videoId": "dQw4w9WgXcQ",
"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"videoTitle": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"sortBy": "top",
"rank": 1,
"sourceInput": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"collectedAt": "2026-11-03T08:28:24.364Z"
}

A reply to it - same shape, with parentCommentId pointing at the comment above:

{
"recordType": "comment",
"commentId": "UgzKYksqeQ5gA3t0g0F4AaABAg.91a9XW7osVT952pvnnAzll",
"parentCommentId": "UgzKYksqeQ5gA3t0g0F4AaABAg",
"isReply": true,
"text": "The biggest comrade ever",
"authorDisplayName": "@egdog_tm",
"likeCount": 6900,
"likeCountText": "6.9K likes",
"replyCount": null,
"publishedTimeText": "6 years ago",
"publishedAtEstimated": "2020-11-03T08:28:24.665Z",
"publishedTimePrecision": "year",
"isPinned": false,
"videoId": "dQw4w9WgXcQ",
"rank": 2,
"collectedAt": "2026-11-03T08:28:24.665Z"
}

A video with comments turned off:

{
"recordType": "status",
"platform": "youtube",
"videoId": "XqZsoesa55w",
"videoUrl": "https://www.youtube.com/watch?v=XqZsoesa55w",
"videoTitle": "Baby Shark Dance | #babyshark Most Viewed Video | Animal Songs | PINKFONG Songs for Children",
"channelName": "Baby Shark - Pinkfong Kids’ Songs & Stories",
"commentCountText": null,
"commentCount": null,
"commentsTurnedOff": true,
"commentsWritten": 0,
"repliesWritten": 0,
"sourceInput": "XqZsoesa55w",
"collectedAt": "2026-11-03T08:28:25.102Z",
"partial": false,
"partialReason": "comments_turned_off",
"statusText": "Comments are turned off for this video."
}

Notes on the fields:

  • Publish time. YouTube shows a comment's age only as relative text (3 hours ago, 6 years ago); it states no exact time. publishedTimeText is that text as shown. publishedAtEstimated counts it back from collectedAt, and publishedTimePrecision says how precise it is: 6 years ago means somewhere in the sixth year back, so it is year. Sort by it, but do not read a year estimate to the day.
  • likeCount and replyCount are the numbers YouTube shows, which it rounds above 999 (106K); the page text is kept next to them in likeCountText / replyCountText. replyCount is on top-level comments only; on a reply it is null.
  • parentCommentId is null on a top-level comment and the comment's ID on each of its replies. YouTube keeps replies one level deep: a reply to a reply is a reply to the same comment, usually starting with @name.
  • rank is the row's position among this video's rows, in the order collected.
  • isHeartedByCreator, isPinned, authorIsVideoOwner and authorIsVerified are as YouTube marks them on the page.
  • videoTitle comes from the video's watch page, read once per video.
  • A field YouTube did not state is null, never guessed. Emoji in the text are kept as characters.

Status rows

A video gets a free status row when its comments are off, missing, cut at your limit or not fully read. partial: true means collection was incomplete - YouTube has more that this run did not get - and is never reported as "no comments".

partialReasonpartialMeaning
max_comments_reachedfalseStopped at maxComments; the video has more.
comments_turned_offfalseThe owner turned comments off.
no_commentsfalseComments are on and nobody has commented.
unavailablefalseDeleted, private, or no video under that ID.
invalid_inputfalseNot a YouTube video link or ID.
upstream_errortrueA request to YouTube failed twice (each request is retried once on a new IP), or the replies of some comments could not be read. The comments written before it are kept.
upstream_request_captrueThe run reached maxUpstreamRequests. Every video not finished gets this row.
charge_limit_reachedtrueYour maximum cost per run was reached. Every video not finished gets this row.

commentsWritten and repliesWritten on the status row say how many rows that video produced before it stopped. A video that simply ran out of comments below maxComments gets no status row; RUN_SUMMARY.videos[] lists every video with its status anyway.

Duplicates

A comment is written once per run, keyed by comment ID. A repeated video link is dropped before collection; RUN_SUMMARY counts both.

Pricing

Pay per event: USD 0.99 per 1,000 comments, plus USD 0.005 per run. Apify platform usage, including proxy traffic, is included; you pay only these two events.

EventPriceCharged for
commentUSD 0.00099 (USD 0.99 per 1,000)Each comment or reply row. status rows are free.
run-startUSD 0.005Once per run, together with the first comment. A run that returns no comment is not charged at all.

Example: 5 videos x 200 comments = 1,000 rows costs USD 0.005 + 1,000 x 0.00099 = USD 0.995.

To cap a run's cost, set Maximum cost per run in the run options. When it is reached, the Actor stops before the next comment and marks every unfinished video charge_limit_reached.

Speed

About 20 top-level comments or 10 replies per request to YouTube. A run with replies off reads 300 comments in about 15 requests.

Limits

  • What a signed-out visitor sees: no comments on private, members-only or age-restricted videos, no live chat, no comment translations.
  • Order is YouTube's. top is YouTube's ranking and can change between runs; use newest for a stable time order. Very large comment sections are read page by page, so maxComments in the tens of thousands takes minutes per video.
  • Author data is limited to the public display name and the owner/verified marks. The Actor does not output author channel IDs or avatars.
  • Not included: channel-wide collection, video downloads, sentiment analysis.

Notes

Respect YouTube's terms and local law, and collect only what you need. Display names are public, but they can identify a person.