YouTube Comments Scraper: Replies, Likes & Authors avatar

YouTube Comments Scraper: Replies, Likes & Authors

Pricing

from $0.70 / 1,000 comments

Go to Apify Store
YouTube Comments Scraper: Replies, Likes & Authors

YouTube Comments Scraper: Replies, Likes & Authors

Scrape YouTube comments and replies from videos and Shorts in bulk: comment text, author, likes, reply count, publish time, pinned and creator-heart flags. Sort by top or newest, filter by date, export to CSV, JSON or Excel. No API key or login.

Pricing

from $0.70 / 1,000 comments

Rating

0.0

(0)

Developer

API Creators

API Creators

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Features

Limited permissions

Share

YouTube Comments Scraper extracts comments and replies from any YouTube video or Short. You get the comment text, author, author channel, likes, reply count, publish time, and pinned and creator-heart flags. Sort by Top comments or Newest first, keep only recent comments, and export everything to JSON, CSV, Excel, HTML or XML.

You don't need a YouTube account, Google API key or quota. It's a fast YouTube Data API alternative for comment analysis, sentiment research and audience insights.

What does YouTube Comments Scraper do?

  • 💬 Scrape and download YouTube comments in bulk from video URLs (watch?v=, youtu.be/, /live/), Shorts URLs (/shorts/) or plain video IDs.
  • ↩️ Scrape replies as separate items, each linked to its parent comment with replyToCid.
  • 🔃 Sort by top comments or newest first, just like on YouTube.
  • 📅 Filter by date to keep only comments from the last N days or since a given date.
  • 📌 Detect pinned comments, creator hearts and channel-owner replies.
  • ⚡ Run fast and cheap: no browser, thousands of comments per minute.

What YouTube comment data can you extract?

FieldDescription
commentFull comment text
cidComment ID
typecomment or reply
replyToCidParent comment ID (for replies)
author, authorChannelId, authorChannelUrl, authorAvatarUrlWho wrote it
authorIsChannelOwner, authorIsVerified, authorIsArtistAuthor badges
voteCountLikes on the comment
replyCountNumber of replies
publishedTimeText, isEditedWhen it was posted, as shown on YouTube ("3 days ago")
isPinned, hasCreatorHeartPinned by the creator / hearted by the creator
videoId, title, pageUrl, commentsCountThe video the comment belongs to

How to scrape and download YouTube comments

  1. Click Try for free.
  2. Paste one or more YouTube video or Shorts URLs.
  3. Set Max comments per video and choose the sort order.
  4. Optionally turn on Include replies and set a date filter.
  5. Click Start, then download the comments or send them to your tools.

Input example

{
"startUrls": [
{ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" },
{ "url": "https://www.youtube.com/shorts/-jOxfEwifis" }
],
"maxComments": 500,
"sortCommentsBy": "TOP_COMMENTS",
"includeReplies": true,
"maxRepliesPerComment": 20
}

Output example

{
"cid": "UgzKYksqeQ5gA3t0g0F4AaABAg",
"type": "comment",
"comment": "I Rick rolled my entire French class because we had to study a city in France...",
"author": "@grustache4569",
"authorChannelId": "UCKrzgYonJnMd0Dk7zQXjYXw",
"authorIsChannelOwner": false,
"voteCount": 108000,
"replyCount": 692,
"replyToCid": null,
"publishedTimeText": "6 years ago",
"isEdited": true,
"isPinned": false,
"hasCreatorHeart": false,
"videoId": "dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"pageUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"commentsCount": 2400000
}

If a video can't be scraped, you get an error item instead of a silent gap: INVALID_INPUT, VIDEO_UNAVAILABLE, COMMENTS_TURNED_OFF, NO_COMMENTS, NOT_FOUND or BLOCKED. Error items are never charged.

How much does it cost to scrape YouTube comments?

You pay per comment or reply saved. Proxies and platform usage are included.

Apify planPrice per 1,000 comments
Free$1.50
Starter (Bronze)$1.20
Scale (Silver)$1.00
Business (Gold)$0.70
Platinum$0.70
Diamond$0.70

On the Free plan, Apify's monthly free credits cover about 3,300 comments. Set a maximum cost per run and the scraper stops cleanly when it's reached.

Why use this YouTube comments scraper?

  • No YouTube API quota: no API key, no Google Cloud project and no daily limit.
  • Complete threads: replies are linked to their parent with replyToCid, and pinned comments, creator hearts and channel-owner replies are flagged.
  • Reliable: blocked requests are retried automatically, and failed videos are reported as error items rather than missing rows.

Use cases for YouTube comments

  • Sentiment analysis: measure how viewers react to a product launch, ad or creator.
  • Audience research: find the questions, pain points and language your audience uses.
  • Brand and competitor monitoring: track mentions in comments under competitors' videos.
  • Influencer vetting: check comment quality and engagement before a sponsorship.
  • AI training and RAG: collect real conversational text for LLM pipelines and classifiers.

YouTube Comments API: Python and JavaScript examples

You can call YouTube Comments Scraper from your own code with the Apify API or the official clients.

Python:

from apify_client import ApifyClient
client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("api_creators/youtube-comments-scraper").call(run_input={
"startUrls": [{"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"}],
"maxComments": 1000,
})
for c in client.dataset(run["defaultDatasetId"]).iterate_items():
print(c["author"], c["voteCount"], c["comment"][:80])

JavaScript:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('api_creators/youtube-comments-scraper').call({
startUrls: [{ url: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' }],
maxComments: 1000,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();

You can connect results to Google Sheets, Make, Zapier, n8n, Slack and more through Apify integrations, or call the scraper from AI agents through the Apify MCP server.

Need video data too? YouTube Scraper gets views, likes, durations and channel stats, and can attach comments to each video.

FAQ

Do I need a YouTube API key?

No. The scraper reads the same public comments any logged-out visitor sees. There's no API key or quota.

Can I scrape comments from many videos at once?

Yes. Add as many video or Shorts URLs as you like. They're processed in parallel (Max concurrency, 20 by default), and every comment includes videoId and title, so you can tell them apart.

How many comments can I scrape from one video?

Set Max comments per video (up to 1,000,000). The scraper collects as many as YouTube makes available for that video. If Include replies is on, replies come on top of this limit.

Do I need proxies to scrape YouTube comments?

No. Proxies are built in and included in the price.

Are like counts exact?

YouTube shows logged-out visitors exact like counts up to 999 and rounded figures above that (for example "25K"). The scraper converts those to numbers (25000).

Why are dates relative ("3 weeks ago")?

That's how YouTube displays comment times. The date filter uses them, so it's accurate to the unit shown (days, weeks, months).

Can I scrape comments from Shorts?

Yes. Paste the /shorts/ URL like any other video.

The scraper collects only publicly available data and doesn't log in. Comments contain personal data, such as usernames, which is protected by the GDPR in the EU and by other laws around the world. Don't scrape it without a legitimate reason, and consult a lawyer if you're unsure. See Is web scraping legal?

Something didn't work as expected?

Open an issue in the Issues tab and include the run link.