YouTube Comments Scraper avatar

YouTube Comments Scraper

Pricing

from $1.19 / 1,000 results

Go to Apify Store
YouTube Comments Scraper

YouTube Comments Scraper

YouTube Comments Scraper SD - YouTube Comments Scraper is a powerful tool that extracts public comments, replies, likes, authors and reply counts from YouTube videos by video URL, sort order and comment limit - YouTube comment extractor for audience research and sentiment analysis.

Pricing

from $1.19 / 1,000 results

Rating

0.0

(0)

Developer

Neuro Scraper

Neuro Scraper

Maintained by Community

Actor stats

1

Bookmarked

7

Total users

0

Monthly active users

2 days ago

Last modified

Features

Full permissions

Share

YouTube Comments Scraper - comments, replies and likes from any public YouTube video

The YouTube Comments Scraper collects public YouTube comments and returns it as a clean dataset you can download as JSON, CSV or Excel, or read through the Apify API. No login, no cookies and no code: give the YouTube Comments Scraper your input, start it and get structured YouTube data for research, monitoring, analytics or lead generation. You pay only for the results you receive.

⭐ Featured by Neuro Scraper: Facebook Reels Scraper - scrape Facebook Reels from any page, profile or reel link with exact views and plays, every reaction type (Like, Love, Care, Haha, Wow, Sad, Angry), comments, shares, captions, music and video links. No login and no cookies. Try the Facebook Reels Scraper →

The YouTube Comments Scraper turns the comment section of any public YouTube video into clean, structured rows. Paste video links and get every comment with its author, likes, reply count, publish time and pinned or hearted status.

The YouTube Comments Scraper needs no login, no Google account and no YouTube Data API key. It reads the same public comment data that YouTube shows to any logged-out visitor.

Use it for audience research, sentiment analysis, community management, product feedback and creator research. Every row is ready to export as CSV, JSON or Excel.

What the YouTube Comments Scraper does

The YouTube Comments Scraper opens each video page exactly as a logged-out browser does and reads the comment section the way YouTube's own web player loads it: twenty comments per page, page after page.

You choose the order (Top comments or Newest first), how many comments to collect per video, and whether the replies under each comment should be scraped too.

Each comment becomes one dataset row. When replies are on, every reply becomes its own row directly under its parent comment, linked by parentCommentId.

Who uses the YouTube Comments Scraper

Brand and marketing teams who want to know what viewers actually say about a launch, an ad or a review video.

Researchers who build sentiment, toxicity or topic datasets from public YouTube comments.

Creators and agencies who track audience questions, feature requests and engagement on their own videos and on competitors' videos.

Data teams who feed comment text into language models, dashboards or a data warehouse through the Apify API.

Input fields for the YouTube Comments Scraper

Only startUrls is required. Everything else has a sensible default, so the YouTube Comments Scraper runs on its first click.

FieldTypeDefaultMeaning
startUrlsarray2 example videosYouTube video URLs or 11-character ids: watch, youtu.be, Shorts and m.youtube.com links all work
maxCommentsinteger100Top-level comments per video; replies come on top of this number
getAllCommentsbooleanfalseIgnore the limit and page through every comment YouTube lists
sortBystringtoptop (Top comments), latest (Newest first) or oldest
includeRepliesbooleanfalseAlso scrape the replies of each comment
maxRepliesPerCommentinteger20Replies per comment when replies are on
maxItemsintegeremptyOptional cap on all rows of the run
proxyConfigurationobjectApify RESIDENTIAL, USProxy used for every request

The field names are the same as in earlier versions of the YouTube Comments Scraper, so saved tasks and API calls keep working.

About the oldest order

YouTube itself offers only Top comments and Newest first. For oldest, the YouTube Comments Scraper reads the comments newest-first, up to 5,000 per video, and returns them oldest first.

Pinned comments stay on top, exactly as YouTube shows them in every order. On videos with more than 5,000 comments the log says that the scan limit was reached.

Output of the YouTube Comments Scraper

Every row of the YouTube Comments Scraper has the same keys, so the dataset schema stays stable across runs and videos.

FieldMeaning
commentIdYouTube's comment id (replies: <parent>.<reply>)
textFull comment text
authorAuthor handle as shown, e.g. @frankwest8025
authorChannelId, authorUrlAuthor's channel id and channel link
authorThumbnailAuthor avatar URL
authorIsVerifiedVerified badge on the author
authorIsChannelOwnerThe comment was written by the video's own channel
likes, likesTextLike count as a number and as YouTube shows it ("30K")
replyCountNumber of replies under the comment
publishedTimeTextRelative time as YouTube shows it, e.g. "5 years ago (edited)"
isPinned, isHeartedPinned by the creator / hearted by the creator
isReply, replyLevel, parentCommentIdReply flags; parentCommentId only on replies
positionOrder of the top-level comment in the chosen sort
videoId, videoUrl, videoTitleThe video the comment belongs to
videoCommentsTotalExact total comment count of the video, from YouTube's comment header
commentUrlDirect link to the comment
sortedBy, inputUrl, scrapedAtRun context and ISO timestamp

Export the YouTube Comments Scraper dataset as CSV, JSON, Excel, XML or HTML from the Apify console, or read it through the Apify API.

Example row

{"videoId": "VegKhno-BK8", "commentId": "UgywhLWEyYGd0EVLQlB4AaABAg", "text": "Thanos is so chill in Infinity War ...", "author": "@frankwest8025", "likes": 30000, "likesText": "30K", "replyCount": 200, "publishedTimeText": "5 years ago", "isPinned": false, "isHearted": false, "isReply": false, "position": 1, "videoCommentsTotal": 6991, "sortedBy": "top"}

How to run the scraper

Open the YouTube Comments Scraper, paste one or more video URLs into startUrls, set maxComments, and press Start. Rows appear in the dataset while the run is still going.

Switch on includeReplies when the conversation under each comment matters. Each comment with replies costs one or more extra requests, so keep maxRepliesPerComment small for big videos.

Use latest to monitor new feedback on a fresh upload. Use top to study the comments YouTube ranks as most relevant.

How fast is it in practice

These numbers come from local test runs of the YouTube Comments Scraper on a home connection:

  • 200 comments from two videos (100 each, Top order) in 9 seconds, 5 requests per video.
  • 150 comments Newest first plus 10 replies in 12 seconds, 19 requests.
  • 60 comments from a Short and a regular video in 5 seconds.

On the Apify platform the run goes through a residential proxy, so timings can differ.

How the scraper works

The YouTube Comments Scraper follows YouTube's own public web flow. It loads the watch page and reads the page configuration from it: client version, visitor data, language and the comment section token.

Nothing is hardcoded. Every dynamic value is read from the page on every run, so a YouTube release does not silently break the YouTube Comments Scraper.

For Shorts, the watch page sometimes arrives without the comment token. The YouTube Comments Scraper then reloads it, and if needed reads the token from the Short's own page.

The scraper limits, stated plainly

The YouTube Comments Scraper reads public comments only. Comments on private, deleted or members-only videos are out of reach, and no setting changes that.

Videos with comments turned off (for example videos marked "made for kids") produce no rows. The log says "comments are turned off for this video".

Like counts are YouTube's own labels. Above 999 they are rounded ("30K"), and the YouTube Comments Scraper keeps that precision rather than inventing digits.

Publish times are relative ("5 years ago"), because that is what YouTube shows logged-out visitors. The total in videoCommentsTotal is exact.

Held-for-review and spam-filtered comments are never public, so they are never in the YouTube Comments Scraper dataset.

The scraper pricing

The YouTube Comments Scraper uses pay-per-event pricing: you pay per dataset row (event "result"), plus the Apify platform usage of your run. The run stops at your maxItems or at the charge limit you set.

Free-plan users get up to 30 rows per run, which is enough to test the YouTube Comments Scraper on real data. The current price per 1,000 results is on the Pricing tab.

Using the scraper in a workflow

Run the YouTube Comments Scraper on a schedule to watch new comments on your channel's latest uploads, then send the dataset wherever your team works.

Connect it to Google Sheets, Slack or a CRM through the Apify integrations, or through Make, Zapier and n8n. A webhook can trigger your own automation the moment a run finishes.

Developers call the YouTube Comments Scraper from Python or JavaScript with the Apify API client, pass the input as JSON and read the dataset when the run ends.

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("neuro-scraper/youtube-comments-scraper").call(run_input={"startUrls": [{"url": "https://www.youtube.com/watch?v=VegKhno-BK8"}], "maxComments": 200, "sortBy": "latest"})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["author"], item["likes"], item["text"][:80])

Because every row has the same keys, the integration never needs special cases. Map text, author and likes once and reuse that mapping for every video.

Sentiment analysis with the scraper

Export the comment text as CSV, add a sentiment column with your model of choice, and group by videoId to compare videos.

Use likes and replyCount as weights: a negative comment with 30K likes says more about the audience than ten comments nobody liked.

Leave a review

If the YouTube Comments Scraper saved you time, please leave a star rating and a short review on the Actor page. Reviews help other users decide, and they tell me what to build next.

If something did not work, open an issue on the Actor page with the run link. Bugs get fixed faster than they get reviewed.

Frequently asked questions

Does the scraper need my YouTube login or an API key?

No. The YouTube Comments Scraper never logs in and does not use the YouTube Data API. It reads the same public comment data any logged-out visitor sees.

How many comments can the scraper collect from one video?

As many as YouTube lists, page by page. Set getAllComments to read the whole thread, or maxComments to stop earlier. In tests one video returned 150 comments Newest first in 12 seconds including replies.

Can the scraper scrape replies?

Yes. Turn on includeReplies. Each reply is its own row with isReply: true, its replyLevel and the parentCommentId of the comment it answers. Replies to replies are included.

Does the scraper work on YouTube Shorts?

Yes. Paste the Shorts URL. In tests a Short returned 30 comments in two requests, with the exact total of 8,901 comments from YouTube's header.

Why are some like counts rounded?

Because YouTube shows them rounded. A comment with "30K" likes is stored as likes: 30000 and likesText: "30K". Counts below 1,000 are exact.

Can I get comments sorted oldest first?

Yes, with sortBy: oldest. YouTube has no oldest-first order, so the YouTube Comments Scraper reads newest-first up to 5,000 comments per video and reverses them. Pinned comments stay on top.

What happens when a video has comments turned off?

The YouTube Comments Scraper logs "comments are turned off for this video" and moves on to the next URL. One bad URL never fails the whole run.

Which export formats does the scraper support?

The dataset exports as CSV, JSON, Excel, XML and HTML from the console, and the same data is available through the Apify API and integrations.

Do I need my own proxy for the scraper?

No. The YouTube Comments Scraper uses Apify's residential proxy by default. You can switch to another proxy in the input if you prefer.

Why use the scraper

The YouTube Comments Scraper is a YouTube scraper and YouTube data extractor for anyone who needs public YouTube comments as clean data. The YouTube Comments Scraper handles web scraping, proxy rotation and retries for you, so you get a ready dataset instead of raw pages. Use the YouTube Comments Scraper for market research, competitor analysis, lead generation, analytics or monitoring, and export the results to JSON, CSV, Excel or Google Sheets.

  • No login and no code: the YouTube Comments Scraper runs on Apify with one click or one API call.
  • Pay per result: the YouTube Comments Scraper charges only for rows delivered - no monthly YouTube API fee.
  • Complete fields: the YouTube Comments Scraper returns every public field, with a stable schema for automation.
  • Integrations: connect the YouTube Comments Scraper to Zapier, Make, n8n, Google Sheets, a webhook or your CRM.

The scraper use cases

  • Market research: the YouTube Comments Scraper collects YouTube comments at scale, so you can compare trends across weeks and niches.
  • Competitor analysis: run the YouTube Comments Scraper on a schedule and export the dataset to Google Sheets or Excel to watch what competitors publish.
  • Lead generation and B2B prospecting: the YouTube Comments Scraper gives a sales or agency team a clean list to load into a CRM.
  • Content and social media monitoring: the YouTube Comments Scraper keeps a fresh copy of YouTube data through an Apify schedule and a webhook.
  • Analytics and dashboards: send the YouTube Comments Scraper output as JSON through the Apify API into Python, Node.js or a BI tool.
  • Academic and data science projects: the YouTube Comments Scraper returns a consistent schema, ready for pandas, R or a notebook.
  • Price, product and brand tracking: the YouTube Comments Scraper turns public YouTube data into a dataset you can diff run by run.
  • Automation workflows: connect the YouTube Comments Scraper to Zapier, Make or n8n so every new row starts your next step.

How to run it with the API, Python and Node.js

Start the YouTube Comments Scraper from the Apify Console, or call it from code. The YouTube Comments Scraper returns its dataset as JSON, CSV or Excel. With the Apify API you can run the YouTube Comments Scraper from Python or Node.js, wait for it to finish and read the rows, which makes the YouTube Comments Scraper easy to plug into an automation, a data pipeline or a scheduled export.

  1. Open the YouTube Comments Scraper on Apify and fill in the input (or send the same input as JSON to the API).
  2. Start the YouTube Comments Scraper. Follow the run log while the YouTube Comments Scraper collects public YouTube data.
  3. Download the dataset as CSV, JSON, Excel or XLSX, or let a webhook send it on.
  4. Schedule the YouTube Comments Scraper to keep your YouTube data fresh for monitoring and analytics.

Tips for better results

  • Start small: run the YouTube Comments Scraper with a low maximum first, check the fields, then scale up the same input.
  • Split big jobs: several smaller YouTube Comments Scraper runs (by keyword, URL list or date) finish faster and are easier to resume.
  • Keep a history: name a dataset or use a schedule so each YouTube Comments Scraper run adds to your YouTube data over time.
  • Filter early: use the input filters of the YouTube Comments Scraper so you only pay for the YouTube comments you really need.
  • Automate the hand-off: a webhook or the Zapier and Make integrations can move every YouTube Comments Scraper result straight to Google Sheets, a CRM or a database.
  • Watch the run log: the YouTube Comments Scraper writes what it is doing and why an item was skipped, so a surprising result is easy to explain.

The scraper FAQ

More scrapers from Neuro Scraper

ActorWhat it extracts
⭐ Facebook Reels ScraperFacebook Reels with exact views, plays, every reaction type, comments and shares
YouTube Playlist ScraperYouTube playlist data with all public fields, exported to JSON, CSV or Excel
YouTube Channel ScraperYouTube channel data with all public fields, exported to JSON, CSV or Excel
YouTube ScraperYouTube data with all public fields, exported to JSON, CSV or Excel
YouTube Shorts ScraperYouTube shorts with all public fields, exported to JSON, CSV or Excel
YouTube Transcript ScraperYouTube transcript data with all public fields, exported to JSON, CSV or Excel
YouTube Video Details ScraperYouTube video details with all public fields, exported to JSON, CSV or Excel
YouTube Video DownloaderYouTube video data with all public fields, exported to JSON, CSV or Excel
Snapchat Profile ScraperSnapchat profile data with all public fields, exported to JSON, CSV or Excel
Amazon ScraperAmazon data with all public fields, exported to JSON, CSV or Excel
Instagram Reels ScraperInstagram reels with all public fields, exported to JSON, CSV or Excel
Facebook Video Details ScraperFacebook video details with all public fields, exported to JSON, CSV or Excel
Facebook Reels Scraper AdvancedFacebook reels advanced data with all public fields, exported to JSON, CSV or Excel