YouTube Comments Scraper: Export Comments & Replies to CSV · Apify
YouTube Comments Scraper - Comments, Replies & Likes avatar

YouTube Comments Scraper - Comments, Replies & Likes

Pricing

from $0.24 / 1,000 comments

Go to Apify Store
YouTube Comments Scraper - Comments, Replies & Likes

YouTube Comments Scraper - Comments, Replies & Likes

YouTube Comments Scraper: export all comments and replies of YouTube videos and Shorts to CSV, Excel or JSON: text, author, likes, reply count, date, pinned and hearted. Paste video URLs or IDs, or use search terms and channels. Top or newest first. No login or API key. $0.30 per 1,000 comments.

Pricing

from $0.24 / 1,000 comments

Rating

0.0

(0)

Developer

Social Scrapers

Social Scrapers

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 minutes ago

Last modified

Features

Limited permissions

Share

YouTube Comments Scraper exports the comments and replies of any public YouTube video or Short: the comment text, author and author channel, likes, reply count, date, and whether it is pinned, edited or hearted by the creator. Paste video URLs or IDs, or let it find videos through search terms, channels or playlists. Top comments or newest first. Download the comments as CSV, Excel or JSON. No login, no API key, $0.30 per 1,000 comments.

💡 Need a feature that isn't here? Just ask. Open an issue on the Issues tab and tell us what you need: a new field, filter, input type or output format. We build requested features fast, usually within 24 hours, at no extra cost.

⭐ Found it useful? A short review on the Reviews tab helps other people find this scraper, and tells us what to build next.

What does YouTube Comments Scraper do?

  • 💬 All comments of a video, as many as you ask for, with no upper limit.
  • ↩️ Replies under each comment, up to the number you choose per comment.
  • 🔝 Top comments or newest first, the same two orders as on YouTube.
  • ❤️ Rich comment data: likes, reply count, date, pinned, edited, creator heart, and whether the creator wrote it.
  • 🎬 Videos and Shorts: paste watch URLs, youtu.be links, Shorts URLs or bare video IDs.
  • 🔎 Find videos for you: add search terms, channels or playlists, and the scraper collects the comments of their videos.
  • 📺 Video context included: each video is saved once with its title, views, likes and exact comment count, followed by its comments, so you can group and filter them.
  • ✅ Pay only for what is saved, and set a maximum cost per run if you want one.

What data can you extract from YouTube comments?

ItemData
Commentcomment ID, text, author name or @handle, author channel ID and URL, likes, reply count, date (and YouTube's "2 weeks ago" text), edited, pinned, creator heart, written by the video's creator
Replythe same fields, plus parentId: the comment it answers
Videotitle, URL, publish date, views, likes, exact comment count, comments turned off, channel name and subscribers

How to scrape YouTube comments

  1. Open YouTube Comments Scraper on Apify and click Try for free.
  2. Paste video URLs or IDs, one per line (or add search terms, channels or playlists).
  3. Set Max comments per video and, if you want replies, Max replies per comment.
  4. Choose Top comments or Newest first.
  5. Click Start and download the comments as CSV, Excel, JSON, XML or HTML. The Comments view shows them as a table.

How to export YouTube comments to Excel or CSV

Run the scraper, open the Comments view of the results, and click Export with CSV or Excel. Each row is one comment or reply, with the video it belongs to.

How to get the newest comments of a video

Choose Newest first and set Max comments per video to how many recent comments you need. Run it on a schedule to follow a video's new comments.

How to scrape the comments of a whole channel

Paste the channel URL (for example https://www.youtube.com/@NASA) and set Videos per channel or playlist: the scraper takes the channel's newest videos and collects the comments of each.

How much does it cost to scrape YouTube comments?

Pay per result, with platform usage and proxies included and no monthly fee for the Actor:

ResultPrice per 1,000Silver planGold plan
Comments (replies included)$0.30$0.27$0.24
Videos (saved once each, before their comments)$0.61$0.549$0.488

Each run also has Apify's standard Actor start charge: $0.001 per run (one event per GB of memory, at least one; this Actor uses at most 1 GB, so one event per run).

Examples:

  • One video with 10,000 comments: $3.00 + $0.00061 = $3.00.
  • 100 videos with 500 comments each (50,000 comments): $15.00 + $0.06 = $15.06.

Apify's free plan comes with $5 of platform credit every month, enough for about 16,000 comments. Set a maximum cost per run and the scraper stops cleanly before the first result that would go over it.

Input example

{
"startUrls": [
"https://www.youtube.com/watch?v=jNQXAC9IVRw",
"https://youtu.be/VIDEO_ID",
"https://www.youtube.com/shorts/SHORT_ID"
],
"maxCommentsPerVideo": 1000,
"maxRepliesPerComment": 10,
"commentsSortBy": "top",
"searchQueries": ["iphone 18 review"],
"maxResultsPerQuery": 10
}

Output example

Each result has a dataType. A comment:

{
"dataType": "comment",
"id": "COMMENT_ID",
"videoId": "jNQXAC9IVRw",
"videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"videoTitle": "Me at the zoo",
"text": "The beginning of everything.",
"author": "@viewer",
"authorChannelId": "AUTHOR_CHANNEL_ID",
"authorChannelUrl": "https://www.youtube.com/channel/AUTHOR_CHANNEL_ID",
"authorIsChannelOwner": false,
"authorIsVerified": false,
"likeCount": 4100,
"replyCount": 93,
"publishedAt": "2025-11-08T00:00:00.000Z",
"publishedTimeText": "1 year ago",
"isEdited": false,
"isPinned": false,
"hasCreatorHeart": false,
"parentId": null,
"scrapedAt": "2026-11-08T10:30:00.000Z"
}

A reply has the same fields, with parentId set to the ID of the comment it answers. Each video comes once, before its comments, with dataType video and its title, views, likes and commentCount.

Use cases

  • Sentiment analysis and opinion mining: what viewers think about a product, a brand or a topic.
  • Product and market research: feature requests, complaints and questions under review videos.
  • Community management: follow new comments on your videos, find questions to answer.
  • Influencer vetting: the real engagement under a creator's videos.
  • AI and NLP datasets: large, dated collections of real comments and replies.

Use it via API, Python, JavaScript and integrations

Run it and get the comments in one call with the Apify API:

curl -X POST "https://api.apify.com/v2/acts/socialscrapers~youtube-comments-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"startUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"], "maxCommentsPerVideo": 200}'

Python, with the Apify client:

from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("socialscrapers/youtube-comments-scraper").call(run_input={
"startUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
"maxCommentsPerVideo": 500,
"maxRepliesPerComment": 5,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
if item["dataType"] == "comment":
print(item["author"], item["likeCount"], item["text"][:80])

JavaScript, with the Apify client:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('socialscrapers/youtube-comments-scraper').call({ startUrls: ['jNQXAC9IVRw'], commentsSortBy: 'newest' });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
const comments = items.filter((i) => i.dataType === 'comment');

Schedule runs, get a webhook when one finishes, or send the comments to Make, Zapier, n8n, Google Sheets and other tools through Apify integrations. AI agents and assistants can run it through Apify's MCP server.

YouTube Data API vs YouTube Comments Scraper

Official YouTube Data APIYouTube Comments Scraper
SetupGoogle Cloud project and API keyNone: paste video URLs or IDs
Limits10,000 quota units a day by defaultNo quota
Finding videosA separate search, 100 quota units eachSearch terms, channels and playlists in the same run
PriceFree within the quota$0.30 per 1,000 comments

Limits

  • Public videos only. Comments of age-restricted videos need a signed-in account, so those videos are saved without comments. Videos with comments turned off are saved with commentsTurnedOff: true.
  • Dates are estimated from YouTube's "2 weeks ago" text, to the day for dates a day or more back. Comment likes are as precise as YouTube shows them ("1.2K" becomes 1200).
  • Speed: comments come about 20 per request, so very large threads take a while. In test runs, 500 comments took under half a minute.
  • Live chat is not collected; live streams have a chat instead of comments.
  • Datacenter proxy choices fall back to residential. If you pick Apify Proxy without the RESIDENTIAL group, the first session YouTube refuses moves the run to RESIDENTIAL, in the same country; custom proxy URLs are used exactly as given.
  • Share links work as they are: youtu.be/… links, links with the app's ?si=… share parameter, m.youtube.com, music.youtube.com, /shorts/…, /live/… and /embed/… links all name the same video, channel or playlist.
  • A run with 0 results still succeeds. When a video is private or deleted, a channel does not exist or a search finds nothing, the run ends as Succeeded with a status message naming each input and why, and nothing is charged. When nothing in the input can be used at all, the run also ends as Succeeded, with a status message that starts "Nothing to scrape:" and says what to fix; no results are charged. A run fails only when YouTube refuses every one of 3 or more inputs and a well-known public channel is refused too (the scraper is then blocked; try again later).

FAQ

Is it legal to scrape YouTube comments? YouTube Comments Scraper collects only comments that anyone can see without signing in. Comments contain personal data (names and opinions), which laws such as the GDPR protect, so collect only what you need and have a legitimate reason for it. You are responsible for how you use the data and for following YouTube's terms and the laws that apply to you.

Do I need a YouTube account or API key? No. Paste the videos and start the run.

How many comments can I get from one video? As many as YouTube lists; there is no upper limit in the scraper.

Why did I get fewer comments than the video's comment count? The count includes replies and comments YouTube holds back or later removed; set Max replies per comment to collect replies too.

Can I scrape YouTube Shorts comments? Yes. Paste the Shorts URL like any other video.

Do I pay for the videos? Each video is saved once before its comments, at $0.61 per 1,000 videos, which is $0.00061 a video.

Other scrapers by Social Scrapers

ScraperWhat it gets
TikTok ScraperVideos, Profiles, Hashtags and Comments
Instagram Comments ScraperComments, Likes and Reply Counts
Instagram Hashtag ScraperReels and Keyword Search
Instagram Post ScraperPosts, Reels and Comments
Instagram Profile ScraperFollowers, Bio, Posts and Reels
Instagram Reels ScraperReels, Plays, Likes and Comments
YouTube Channel ScraperVideos, Shorts, Subscribers and About
YouTube ScraperVideos, Shorts, Channels and Comments
YouTube Shorts ScraperShorts, Views, Likes and Search
YouTube Transcript ScraperSubtitles, Captions and SRT
Facebook Ads Library ScraperMeta Ad Library and Spend
Facebook Groups ScraperPublic Group Posts and Reactions
Facebook Posts ScraperPages, Profiles and Timelines
Facebook Pages ScraperProfiles, Contact Info and Reviews
X (Twitter) Profile ScraperFollowers, Bio and Tweets
X (Twitter) Tweet ScraperLatest Posts by Profile
Threads ScraperPosts, Profiles, Replies and Search
Reddit ScraperPosts, Comments, Subreddits, Users and Search
Quora ScraperAnswers, Questions, Profiles and Topic Search
LinkedIn Ad Library ScraperAds, Advertisers and Impressions
LinkedIn Jobs ScraperJob Listings, Salaries and Companies
Google News ScraperHeadlines, Articles and Search
Google Ads Transparency ScraperAd Creatives and Advertisers
Telegram Channel ScraperPosts, Views and Media