YouTube Comments Scraper avatar

YouTube Comments Scraper

Pricing

from $1.00 / 1,000 comments

Go to Apify Store
YouTube Comments Scraper

YouTube Comments Scraper

Get every comment of a YouTube video, with replies, author, votes and reply counts. 1 USD per 1,000 comments, no minimum charge per run.

Pricing

from $1.00 / 1,000 comments

Rating

0.0

(0)

Developer

Brahim Sliti

Brahim Sliti

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

Give it YouTube videos, get back every comment, with replies if you want them. One row per comment or reply.

YouTube only shows a first page of comments at a time and hides most replies behind a click. We page through all of it for you.

What people use it for

  • Audience research. Read what viewers actually say about a video, a product review, or a launch.
  • Sentiment at scale. Pull thousands of comments into a spreadsheet or a model instead of scrolling.
  • Competitor and creator monitoring. Track how people react to a competitor's or your own new upload.
  • Moderation and support. Find questions and complaints buried in a busy comment section.

How to use it

  1. Add videos in Videos, one per line: a watch URL, a youtu.be link, a Shorts URL, or a bare video id.
  2. Set Max comments per video (default 100).
  3. Optional: Sort comments by (top comments or newest first) and Include replies.
  4. Click Start. Export as JSON, CSV or Excel, or pull the results through the API.
{
"startUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
"maxComments": 500,
"sortCommentsBy": "TOP_COMMENTS",
"includeReplies": true
}

What you get

{
"cid": "UgyEnXfdC-umwvTt8JF4AaABAg",
"comment": "Gonna flag this for nudity so I can rick roll the YouTube staff",
"author": "@Oatman69",
"authorChannelId": "UCWf34D_s8K_m2vwBISIDWtg",
"voteCount": 569000,
"replyCount": 722,
"replyToCid": null,
"type": "comment",
"publishedTimeText": "6 years ago",
"authorIsChannelOwner": false,
"hasCreatorHeart": true,
"isPinned": false,
"videoId": "dQw4w9WgXcQ",
"pageUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"commentsCount": 1600000
}
  • type is comment for a top-level comment, reply for a reply; replyToCid is the parent comment's cid, null for a top-level comment.
  • voteCount/replyCount are 0 when YouTube shows no likes or replies yet, and null only when the figure is missing from YouTube's response.
  • hasCreatorHeart is true when the channel owner hearted that comment. isPinned is true for the comment the creator pinned on top.
  • commentsCount is the video's total comment count, the same on every row.

Pricing

1 USD per 1,000 comments, all fields included, replies counted the same as top-level comments.

There is no minimum charge per run: 100 comments from one video cost 0.10 USD. Error rows are free, and there's no monthly fee or Apify platform usage on top.

Example: 500 comments each from 10 videos (5,000 comments) costs 5 USD.

Good to know

  • Including replies adds one extra request per thread that has any, so a video with many long threads takes longer to finish.
  • With replies on, each thread's replies come right after their parent comment and count toward Max comments per video. A small limit can therefore return only a few threads with all their replies: raise the limit if you want more top-level comments.
  • The oldestCommentDate field of other comment scrapers is accepted but ignored: YouTube only gives relative dates ("3 days ago"). Sort by newest first and set a limit instead.
  • This actor only scrapes comments. For the video itself, our YouTube Scraper gets views, likes and metadata; our YouTube Transcript Scraper gets captions.
  • You don't need a proxy, a YouTube account or a YouTube API key.

Use it from n8n, Make or an API

  • Small inputs: call run-sync-get-dataset-items and read the items back directly. Set Time budget (seconds) (default 240) to how long you are willing to wait: the actor stops picking up new videos before that point and returns what it already has, so you never hit Apify's 300 second run-sync limit and lose the whole run. Any video left unfinished comes back as a TIME_BUDGET_EXCEEDED row instead of being silently dropped.
  • Big inputs: start the run with POST /v2/acts/vakitek~youtube-comments/runs, poll GET /v2/actor-runs/<runId> (or add waitForFinish=60) until the status is SUCCEEDED, then read GET /v2/datasets/<datasetId>/items. Set Time budget (seconds) to 0 (no limit) for this pattern.

Errors

A bad input never crashes the run. It becomes a row with an error code, and you are not charged for it.

errorWhat happenedRetry?
NOT_FOUNDThe URL or id doesn't match a real videoNo
NO_RESULTSThe video has no commentsNo
COMMENTS_DISABLEDThe creator turned comments off for this videoNo
INVALID_INPUTThe video input could not be readNo
BLOCKEDYouTube refused us for now, even after trying every proxy tierYes
UPSTREAM_ERRORSomething went wrong on YouTube's side or oursYes
UPSTREAM_UNAVAILABLEOur API was unreachableYes
TIME_BUDGET_EXCEEDEDThe time budget ran out before this video finishedYes

FAQ

How many comments can I get per video? Up to 100,000. Set Max comments per video as high as you need.

I already use another YouTube comments actor. Do I have to change my code? Probably not. The output field names follow the most used comments scraper on the Store.

Can I call it from my code or from an AI agent? Yes, like any Apify actor: REST API, the Python and JavaScript clients, or the Apify MCP server. The examples are in the API tab.

Something broke or a field is missing? Open an issue on this page. We read every one and usually answer within a day.