πŸ’¬ YouTube Comments Scraper avatar

πŸ’¬ YouTube Comments Scraper

Pricing

from $1.40 / 1,000 results

Go to Apify Store
πŸ’¬ YouTube Comments Scraper

πŸ’¬ 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

Data Minds

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Categories

Features

Limited permissions

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.

DataFields
πŸ’¬ Commentcid, type, replyToCid, comment, isEdited
πŸ“… DatespublishedTimeText, publishedTimeEstimate, publishedTimePrecision
πŸ‘€ Authorauthor, authorChannelId, authorChannelUrl, authorAvatarUrl, authorIsChannelOwner, authorIsVerified
πŸ‘ EngagementvoteCount, voteCountText, replyCount, hasCreatorHeart, isPinned
🎬 VideovideoId, pageUrl, title, commentsCount
πŸ”— LinkscommentUrl, pageUrl, authorChannelUrl
❗ Status rowsisError, error, note

❗ Note: YouTube shows a comment's age as text, for example "2 weeks ago". publishedTimeEstimate is a calendar date worked out from that text, and publishedTimePrecision tells 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.

  1. πŸ”‘ Create a free Apify account using your email.
  2. 🌐 Open YouTube Comments Scraper and go to the Input tab.
  3. πŸ“₯ Paste one or more YouTube video links, one per line.
  4. 🎯 Set Max comments per video, and add a likes, keyword or date filter if you like.
  5. πŸš€ Click Start and wait for the run to finish.
  6. πŸ“€ 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 planPrice per comment or replyPrice 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):

RowsFreeBronzeSilverGold
100100 x $0.002 = $0.20100 x $0.0018 = $0.18100 x $0.0016 = $0.16100 x $0.0014 = $0.14
1,0001,000 x $0.002 = $2.001,000 x $0.0018 = $1.801,000 x $0.0016 = $1.601,000 x $0.0014 = $1.40
10,00010,000 x $0.002 = $20.0010,000 x $0.0018 = $18.0010,000 x $0.0016 = $16.0010,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.

FieldTypeDefaultWhat it does
urlsarray of stringsnoneRequired. YouTube video links (watch, youtu.be, Shorts, embed or live) or bare 11-character video IDs. The same video is read once.
maxItemsinteger10Maximum top-level comments for each video, from 0 to 1000000. Replies are not counted here. 0 means all comments.
sortCommentsBystringTOP_COMMENTSTOP_COMMENTS follows YouTube's own ranking. NEWEST_FIRST goes in time order, best for recent comments and the date filter.
includeRepliesbooleantrueAlso collect the replies under each comment. Replies are separate rows linked to their comment.
maxRepliesPerCommentinteger10Maximum replies under each comment, from 0 to 100000. 0 means every reply.
oldestCommentDatestringnoneStop 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.
minLikesinteger0Keep only comments and replies with at least this many likes (up to 100000000).
keywordstringnoneKeep only comments whose text contains this word or phrase. Not case sensitive.
hlstring"" (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.
glstring"" (Auto-detect)Country YouTube is served for, as a two-letter code such as US or GB.
videoConcurrencyinteger3How many videos are collected at the same time (1 to 20).
replyConcurrencyinteger5How many comment threads have their replies loaded at the same time, per video (1 to 20).
maxRetriesinteger3How many times a failed request is retried (1 to 10).
maxScannedinteger20000Safety limit for narrow filters: stop looking after this many comments in one video (up to 10000000). 0 means no limit.
proxyConfigurationobjectnoneOptional 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:

FieldTypeDescription
cidstringID of the comment or reply.
typestringcomment or reply.
replyToCidstring or nullID of the comment a reply belongs to. Empty for top-level comments.
commentstringText of the comment.
publishedTimeTextstringAge of the comment as YouTube shows it, for example 2 weeks ago.
publishedTimeEstimatestringEstimated publish date (YYYY-MM-DD) worked out from the age text.
publishedTimePrecisionstringUnit the estimate is exact to: hour, day, week, month or year.
isEditedbooleanTrue when the comment was edited.
authorstringDisplay name of the author.
authorChannelIdstringChannel ID of the author.
authorChannelUrlstringLink to the author's channel.
authorAvatarUrlstringProfile picture of the author.
authorIsChannelOwnerbooleanTrue when the author is the owner of the video.
authorIsVerifiedbooleanTrue when the author's channel is verified.
isPinnedbooleanTrue when the creator pinned the comment.
replyCountintegerNumber of replies.
voteCountintegerNumber of likes.
voteCountTextstringLikes as YouTube shows them, for example 1.2K.
hasCreatorHeartbooleanTrue when the video creator hearted the comment.
videoIdstringID of the video.
pageUrlstringLink to the video.
commentUrlstringDirect link to this comment.
commentsCountintegerTotal comments on the video.
titlestringTitle 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:

FieldTypeDescription
isErrorbooleanAlways true for status rows.
errorstringStatus code: VIDEO_UNAVAILABLE, COMMENTS_DISABLED, REQUEST_BLOCKED, REQUEST_FAILED, INVALID_INPUT or NO_VALID_START_URLS.
notestringWhat happened and what to do.
videoIdstringID of the video, when it could be recognised.
pageUrlstringLink 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.

ActionMethod and URL
πŸš€ Start a runPOST https://api.apify.com/v2/actors/data_minds~youtube-comments-scraper/runs
⚑ Run and get the results in one callPOST https://api.apify.com/v2/actors/data_minds~youtube-comments-scraper/run-sync-get-dataset-items
πŸ“₯ Read results of a runGET https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=json
πŸ”Œ OpenAPI definitionGET 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 ApifyClient
client = 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

ScraperWhat it does
πŸ”— Best YouTube Transcripts ScraperGets the transcript of any YouTube video, Short, playlist or channel: timestamped captions, SRT and WebVTT, chapters and language choice.
πŸ”— Fast YouTube Channel ScraperCollects the videos, Shorts and live streams of YouTube channels with views, likes, comments, tags, subscribers and country.
πŸ”— YouTube ScraperScrapes YouTube videos, Shorts, live streams, playlists, hashtags, search results and channels.
πŸ”— YouTube Shorts ScraperCollects Shorts from YouTube channels: views, exact likes, comments, dates, hashtags, category, engagement and transcripts.
πŸ”— YouTube Transcript ScraperGets the transcript of any YouTube video, Short, playlist, channel or search: captions, SRT and WebVTT, chapters and language choice.

❓ FAQ

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.