π¬ YouTube Comments Scraper
Pricing
from $1.40 / 1,000 results
π¬ YouTube Comments Scraper
YouTube Comments Scraper: pull video comments and replies in real time β author, text, likes, pinned, hearted, verified & publish date. Ideal for sentiment analysis, brand monitoring & NLP. No YouTube API key or quota. Stream results to your Apify dataset.
Pricing
from $1.40 / 1,000 results
Rating
0.0
(0)
Developer
Data Minds
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 days ago
Last modified
Categories
Features
Share
π What is YouTube Comments Scraper?
π¬ Comments and replies Β· π― Filters for likes, keyword and date Β· π¦ Export to JSON, CSV or Excel Β· π€ Works with AI agents
YouTube Comments Scraper collects the public comments and replies of any YouTube video and returns one clean row for each. Paste one or more video links, press Start, and get the author, comment text, likes, reply count, publish date and a direct link to every comment. It is built for creators, marketers, researchers and analysts who want to know what viewers really say, without writing code.
- π₯ Understand your audience: read what viewers say about a video, a creator or a competitor, in their own words.
- π Measure sentiment: send comments to your spreadsheet, your analysis or your AI model.
- π Find the standout comments: sort by likes, spot pinned comments and comments hearted by the creator.
- π Mine ideas and leads: keep only the comments that mention a keyword, such as a question, a product or a feature request.
- π Open any comment on YouTube: every row carries a direct link to the comment.
- π Keep research fresh: schedule runs and send new comments to your sheet, your app or your AI agent.
π¦ What data can YouTube Comments Scraper extract?
Every row in the results is one comment or one reply. The fields are grouped below, and the main ones are described in the Output section.
| Data | Fields |
|---|---|
| π¬ Comment | cid, type, replyToCid, comment, isEdited |
| π Dates | publishedTimeText, publishedTimeEstimate, publishedTimePrecision |
| π€ Author | author, authorChannelId, authorChannelUrl, authorAvatarUrl, authorIsChannelOwner, authorIsVerified |
| π Engagement | voteCount, voteCountText, replyCount, hasCreatorHeart, isPinned |
| π¬ Video | videoId, pageUrl, title, commentsCount |
| π Links | commentUrl, pageUrl, authorChannelUrl |
| β Status rows | isError, error, note |
β Note: YouTube shows a comment's age as text, for example "2 weeks ago".
publishedTimeEstimateis a calendar date worked out from that text, andpublishedTimePrecisiontells you the unit it is exact to: hour, day, week, month or year.
β What can't YouTube Comments Scraper extract?
- β Comments of private or deleted videos, and of videos with comments turned off.
- β Live chat messages.
- β Subtitles and video statistics beyond the title and total comment count.
For the spoken text of a video, try Best YouTube Transcripts Scraper. For channel and video details, try Fast YouTube Channel Scraper.
π How to scrape YouTube comments
YouTube Comments Scraper is designed for an easy start, even if you have never extracted data from the web before.
- π Create a free Apify account using your email.
- π Open YouTube Comments Scraper and go to the Input tab.
- π₯ Paste one or more YouTube video links, one per line.
- π― Set Max comments per video, and add a likes, keyword or date filter if you like.
- π Click Start and wait for the run to finish.
- π€ Open the Output tab to browse the comments, or download them as JSON, CSV, Excel, XML or HTML.
π Quick start: a good first run is one video with the default of 10 comments.
{"urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],"maxItems": 10}
π° How much does it cost to scrape YouTube comments?
YouTube Comments Scraper uses a pay per event model, with prices from $0.0014 per comment ($1.40 per 1,000 comments) on the Gold plan. You pay for each comment or reply saved to your results. This is the comment_result event, titled Results in the Pricing tab. Apify platform usage is billed in addition.
| Apify plan | Price per comment or reply | Price per 1,000 |
|---|---|---|
| π Free | $0.002 | $2.00 |
| π₯ Bronze | $0.0018 | $1.80 |
| π₯ Silver | $0.0016 | $1.60 |
| π₯ Gold | $0.0014 | $1.40 |
Each run also has one start event of $0.00005, which covers the default 1 GB of memory. Videos that cannot be read are listed as status rows and are not charged.
β Good to know: replies are rows too. With the default of 10 replies per comment, a video can return up to 10 comments plus up to 100 replies.
What a run costs (comment and reply price only, start event not included):
| Rows | Free | Bronze | Silver | Gold |
|---|---|---|---|---|
| 100 | 100 x $0.002 = $0.20 | 100 x $0.0018 = $0.18 | 100 x $0.0016 = $0.16 | 100 x $0.0014 = $0.14 |
| 1,000 | 1,000 x $0.002 = $2.00 | 1,000 x $0.0018 = $1.80 | 1,000 x $0.0016 = $1.60 | 1,000 x $0.0014 = $1.40 |
| 10,000 | 10,000 x $0.002 = $20.00 | 10,000 x $0.0018 = $18.00 | 10,000 x $0.0016 = $16.00 | 10,000 x $0.0014 = $14.00 |
π° Is scraping YouTube comments free?
You can start for free. The Apify Free plan includes $5 of monthly credit. At the Free price of $0.002 per row, $5 / $0.002 = about 2,500 comments and replies before platform usage. Paid plans lower the price per row, as the table shows.
π§ Input
You only need one thing to start: at least one YouTube video link. Everything else is optional and has a default. Set the input in the Input tab or send it as JSON through the API. The comment limit applies to each video, so 3 videos with Max comments per video set to 50 return up to 150 comments, plus their replies.
| Field | Type | Default | What it does |
|---|---|---|---|
urls | array of strings | none | Required. YouTube video links (watch, youtu.be, Shorts, embed or live) or bare 11-character video IDs. The same video is read once. |
maxItems | integer | 10 | Maximum top-level comments for each video, from 0 to 1000000. Replies are not counted here. 0 means all comments. |
sortCommentsBy | string | TOP_COMMENTS | TOP_COMMENTS follows YouTube's own ranking. NEWEST_FIRST goes in time order, best for recent comments and the date filter. |
includeReplies | boolean | true | Also collect the replies under each comment. Replies are separate rows linked to their comment. |
maxRepliesPerComment | integer | 10 | Maximum replies under each comment, from 0 to 100000. 0 means every reply. |
oldestCommentDate | string | none | Stop at comments older than this: a date as YYYY-MM-DD or a value like 7 days, 2 weeks, 1 month, 1 year. Switches the order to newest first. |
minLikes | integer | 0 | Keep only comments and replies with at least this many likes (up to 100000000). |
keyword | string | none | Keep only comments whose text contains this word or phrase. Not case sensitive. |
hl | string | "" (Auto-detect) | Language YouTube is shown in for the run. It changes text labels and the language used to read comment ages. Auto-detect uses English. About 80 languages are listed. |
gl | string | "" (Auto-detect) | Country YouTube is served for, as a two-letter code such as US or GB. |
videoConcurrency | integer | 3 | How many videos are collected at the same time (1 to 20). |
replyConcurrency | integer | 5 | How many comment threads have their replies loaded at the same time, per video (1 to 20). |
maxRetries | integer | 3 | How many times a failed request is retried (1 to 10). |
maxScanned | integer | 20000 | Safety limit for narrow filters: stop looking after this many comments in one video (up to 10000000). 0 means no limit. |
proxyConfiguration | object | none | Optional network settings for the run. The defaults work for most runs. |
Minimal input:
{"urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"]}
Advanced input: the 200 newest comments of two videos from the last 30 days, with at least 5 likes, up to 3 replies each and a keyword filter:
{"urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ", "https://youtu.be/9bZkp7q19f0"],"maxItems": 200,"sortCommentsBy": "NEWEST_FIRST","oldestCommentDate": "30 days","minLikes": 5,"keyword": "song","includeReplies": true,"maxRepliesPerComment": 3}
With a date filter the run reads newest comments first and stops at the first comment older than your date. See the input tab for the full schema.
π‘ Tip: Start with a low Max comments per video, check the sample, then raise it for the full run.
π€ Output
Results are stored in a dataset, which you can open in the Output or Storage tab. View them as a table or JSON, pick only the fields you need, and download them as JSON, CSV, Excel, XML or HTML. The table has ready-made views for the overview, comments, authors, engagement, video and errors.
Through the API, read the rows from this URL pattern:
https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=json
Add &view=comments (or overview, authors, engagement, video, errors) to get one of the views. A run summary with the row counts and the final status message is also saved under the key RUN_SUMMARY in the run's key-value store.
The main fields of each comment or reply row:
| Field | Type | Description |
|---|---|---|
cid | string | ID of the comment or reply. |
type | string | comment or reply. |
replyToCid | string or null | ID of the comment a reply belongs to. Empty for top-level comments. |
comment | string | Text of the comment. |
publishedTimeText | string | Age of the comment as YouTube shows it, for example 2 weeks ago. |
publishedTimeEstimate | string | Estimated publish date (YYYY-MM-DD) worked out from the age text. |
publishedTimePrecision | string | Unit the estimate is exact to: hour, day, week, month or year. |
isEdited | boolean | True when the comment was edited. |
author | string | Display name of the author. |
authorChannelId | string | Channel ID of the author. |
authorChannelUrl | string | Link to the author's channel. |
authorAvatarUrl | string | Profile picture of the author. |
authorIsChannelOwner | boolean | True when the author is the owner of the video. |
authorIsVerified | boolean | True when the author's channel is verified. |
isPinned | boolean | True when the creator pinned the comment. |
replyCount | integer | Number of replies. |
voteCount | integer | Number of likes. |
voteCountText | string | Likes as YouTube shows them, for example 1.2K. |
hasCreatorHeart | boolean | True when the video creator hearted the comment. |
videoId | string | ID of the video. |
pageUrl | string | Link to the video. |
commentUrl | string | Direct link to this comment. |
commentsCount | integer | Total comments on the video. |
title | string | Title of the video. |
An abridged example row. The values are illustrative, so your numbers and text will differ:
{"cid": "UgxExampleCommentId","replyToCid": null,"type": "comment","publishedTimeText": "2 weeks ago","publishedTimeEstimate": "2026-11-08","publishedTimePrecision": "week","isEdited": false,"comment": "Great video, thanks for sharing.","author": "@example-user","authorChannelId": "UCxxxxxxxxxxxxxxxxxxxxxx","authorChannelUrl": "https://www.youtube.com/@example-user","authorIsChannelOwner": false,"authorIsVerified": false,"isPinned": false,"replyCount": 2,"voteCount": 12,"voteCountText": "12","hasCreatorHeart": false,"videoId": "dQw4w9WgXcQ","pageUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ","commentUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ&lc=UgxExampleCommentId","commentsCount": 340,"title": "Example video title","isError": false}
A video that cannot be read becomes a status row instead. It is not charged, and you can see all of them in the Errors view:
| Field | Type | Description |
|---|---|---|
isError | boolean | Always true for status rows. |
error | string | Status code: VIDEO_UNAVAILABLE, COMMENTS_DISABLED, REQUEST_BLOCKED, REQUEST_FAILED, INVALID_INPUT or NO_VALID_START_URLS. |
note | string | What happened and what to do. |
videoId | string | ID of the video, when it could be recognised. |
pageUrl | string | Link to the video, or the text you entered when it was not a video link. |
π‘ Tips and advanced usage
β‘ How to get faster or cheaper results
- β‘ Keep Max comments per video small for a first test.
- π¬ Turn off Include replies when you only need top-level comments, because every reply is a row.
- π― Use Minimum likes, Keyword filter or a date instead of collecting everything and filtering later.
- π§© Add many videos to one run. They are collected in parallel, as set by Videos in parallel.
π¦ How to export YouTube comments to CSV
Open the Output tab of the finished run, choose Export, select CSV and pick the fields you need. The same menu offers JSON, Excel, XML and HTML, so you can open your YouTube comments in a spreadsheet. For an export that repeats every day, use a schedule with the API or an integration instead.
π₯ Comments and replies
To download YouTube comments, run the Actor and open the Output tab. To scrape YouTube video comments with their replies, keep Include replies on. Each reply is its own row, and replyToCid shows which comment it answers.
π― Keyword and likes filters
Set Keyword filter to filter YouTube comments by keyword, for example a product name. Set Minimum likes to keep only comments that others liked, so a video with thousands of comments gives you the short list that matters.
π How to analyze YouTube comments
Sort by voteCount to see which comments viewers liked most. YouTube pinned comments and the creator heart show what the creator wants to highlight, and both are fields in every row. Pass the comment text to your sentiment analysis or to an AI model, and use commentUrl to open any comment on YouTube.
Every row also carries the YouTube video ID, and the author's channel is in authorChannelId and authorChannelUrl, so you can group comments by video or by commenter.
π Why did I get fewer comments than my limit?
The video may have fewer comments, comments may be turned off, or your filters may skip some. A very narrow filter can also hit Max comments scanned per video, which stops the search in that video. Videos that failed are listed in the Errors view with a reason. Remove a filter and run a small test again.
β Known issues
- β Publish dates are estimates, because YouTube shows only the age text. Comments right on your date line can differ by a day.
- β A run that stops because of your spend limit says so in the run summary. Raise the limit to collect the rest.
- β If a video returns
REQUEST_BLOCKED, run it again later.
π Integrations and API
π Can I use YouTube Comments Scraper as an API?
Yes. Start runs, read results and schedule jobs through the Apify API. Use your token from Settings > API & Integrations.
| Action | Method and URL |
|---|---|
| π Start a run | POST https://api.apify.com/v2/actors/data_minds~youtube-comments-scraper/runs |
| β‘ Run and get the results in one call | POST https://api.apify.com/v2/actors/data_minds~youtube-comments-scraper/run-sync-get-dataset-items |
| π₯ Read results of a run | GET https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=json |
| π OpenAPI definition | GET https://api.apify.com/v2/actors/data_minds~youtube-comments-scraper/builds/default/openapi.json |
curl
curl -X POST "https://api.apify.com/v2/actors/data_minds~youtube-comments-scraper/run-sync-get-dataset-items" \-H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \-H "Content-Type: application/json" \-d '{"urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], "maxItems": 20}'
Python
To use this YouTube comment scraper from Python, install the apify-client package and call the Actor from your own script:
from apify_client import ApifyClientclient = ApifyClient("<YOUR_APIFY_TOKEN>")run = client.actor("data_minds/youtube-comments-scraper").call(run_input={"urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], "maxItems": 20})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item["author"], item["voteCount"], item["comment"])
JavaScript
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });const run = await client.actor('data_minds/youtube-comments-scraper').call({urls: ['https://www.youtube.com/watch?v=dQw4w9WgXcQ'],maxItems: 20,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
CLI
$echo '{"urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], "maxItems": 20}' | apify call data_minds/youtube-comments-scraper --silent --output-dataset
The one-call endpoint suits runs that finish in about five minutes. Use the start-a-run endpoint for longer jobs. More code is on the API tab.
π§© Can I connect YouTube Comments Scraper to other apps?
Yes. Connect it with Make, Zapier, n8n, Slack, Google Sheets, Google Drive, Airbyte, GitHub and more through Apify integrations. Send YouTube comments to n8n or Google Sheets, and use webhooks to alert your team whenever a run finishes, and schedules to run it every day or week.
π€ Can I use YouTube Comments Scraper with AI agents (MCP server)?
Yes. AI agents can call it directly through the hosted Apify MCP server and read YouTube comments for LLM analysis. The Server tab of this Actor shows the same connection settings.
{"mcpServers": {"apify": {"type": "http","url": "https://mcp.apify.com?tools=data_minds/youtube-comments-scraper"}}}
The hosted server signs you in with OAuth the first time you connect, so no API token belongs in this configuration. If your client cannot use OAuth, send the header Authorization: Bearer <YOUR_APIFY_TOKEN>.
π Other YouTube scrapers
| Scraper | What it does |
|---|---|
| π Best YouTube Transcripts Scraper | Gets the transcript of any YouTube video, Short, playlist or channel: timestamped captions, SRT and WebVTT, chapters and language choice. |
| π Fast YouTube Channel Scraper | Collects the videos, Shorts and live streams of YouTube channels with views, likes, comments, tags, subscribers and country. |
| π YouTube Scraper | Scrapes YouTube videos, Shorts, live streams, playlists, hashtags, search results and channels. |
| π YouTube Shorts Scraper | Collects Shorts from YouTube channels: views, exact likes, comments, dates, hashtags, category, engagement and transcripts. |
| π YouTube Transcript Scraper | Gets the transcript of any YouTube video, Short, playlist, channel or search: captions, SRT and WebVTT, chapters and language choice. |
β FAQ
π‘ Is it legal to scrape YouTube comments?
Web scraping is generally legal if you extract publicly available data. However, you should respect personal data, for example under GDPR, and intellectual property regulations, only collect personal data with a legitimate reason, and take YouTube's Terms of Service into account before you run it.
π§ How does YouTube Comments Scraper work?
You paste YouTube video links, optionally set a comment limit, filters and a sort order, and press Start. The Actor returns the public comments of each video, with their replies, as one row each. Videos that cannot be read appear as status rows with a reason, so you always see what happened.
π― Why use YouTube Comments Scraper instead of the official YouTube Data API?
It needs only video links, with no Google Cloud project or API key to set up. You can read many videos in one run, filter by likes, keyword and date, schedule runs, and download the data in common formats. Use the official API to manage your own channel.
π Can I use YouTube Comments Scraper as an API?
Yes. Start a run with the Apify API, pass your video links as JSON, and read the dataset items when it finishes. A one-call endpoint returns results directly for short runs, and an OpenAPI definition is available. Ready-made curl, Python, JavaScript and CLI examples are in the Integrations and API section above.
π€ Can I use YouTube Comments Scraper with AI agents (MCP server)?
Yes. Add the hosted Apify MCP server URL with the tools parameter set to data_minds/youtube-comments-scraper, and your AI assistant can run the Actor and read the comments. The first connection signs you in with OAuth. The Server tab of the Actor shows the same connection settings.
π§© Can I connect YouTube Comments Scraper to Google Sheets, Make or Zapier?
Yes. Apify integrations connect the Actor with Google Sheets, Make, Zapier, n8n, Slack and many other tools. Schedule a run, then use a webhook or an integration to send each new batch of comments to your sheet, chat or workflow automatically when the run finishes.
π Why did I get fewer comments than my limit?
The video may have fewer comments, comments may be turned off, or your filters may skip some. The Errors view lists videos that failed, with a reason. A very narrow filter can also reach the scan limit and stop early. Remove a filter, run a small test, and compare the counts.
π Why do the numbers differ from what YouTube shows?
Each row is a snapshot taken when the run read the video. Likes, reply counts and the total number of comments keep changing, and YouTube shows a comment's age as text, so the publish date is an estimate that is exact only to the unit in publishedTimePrecision.
β Why does a video show an error, or the Actor is not working?
The video may be private, deleted or region-blocked, or its comments may be off. Open it in a private browser window: if you cannot see comments there, the Actor cannot either. If the video is public and it still fails, report it on the Issues tab.
π¬ Support and feedback
Found a bug or have a feature request? Please create an issue on the Issues tab.
Need a custom solution or more data? Contact us at hello.dataminds@gmail.com.
Built and maintained by data_minds. This Actor is an independent tool and is not affiliated with, endorsed by or sponsored by YouTube or Google.