YouTube Comments Scraper avatar

YouTube Comments Scraper

Pricing

from $3.00 / 1,000 results

Go to Apify Store
YouTube Comments Scraper

YouTube Comments Scraper

Extract and scrape YouTube video comments with advanced filtering. Get comment text, author details, likes, replies, timestamps, and verified badges. Supports pagination, sorting by newest/top, and bulk extraction from multiple videos.

Pricing

from $3.00 / 1,000 results

Rating

5.0

(1)

Developer

Sachin Kumar Yadav

Sachin Kumar Yadav

Maintained by Community

Actor stats

1

Bookmarked

43

Total users

0

Monthly active users

4 months ago

Last modified

Security

Limited permissions

Share

💬 YouTube Comment Scraper - Extract Comments with Metadata

🚀 Extract and scrape YouTube video comments with advanced filtering and metadata. Get comment text, author details, likes, replies, timestamps, verified badges, and more. Perfect for sentiment analysis, market research, and content insights!


📋 Table of Contents


✨ Features

💬 Comment Extraction Capabilities

  • ✅ Bulk Comment Scraping - Extract thousands of comments from multiple videos
  • ✅ Pagination Support - Automatically fetch all comments with continuation tokens
  • ✅ Sort Options - Get top comments or newest comments first
  • ✅ YouTube Shorts Support - Full compatibility with YouTube Shorts videos
  • ✅ Batch Processing - Process multiple videos in a single run
  • ✅ Custom Limits - Control how many comments to extract per video

🎯 Use Cases

Use CaseDescriptionKey Benefits
📊 Sentiment AnalysisAnalyze audience reactions and opinionsUnderstand viewer sentiment, identify trends, gauge reception
🔍 Market ResearchStudy competitor videos and audience feedbackCompetitive intelligence, customer insights, product feedback
🤖 AI Training DataCollect comments for machine learning modelsLarge-scale datasets, diverse opinions, real user content
📈 Engagement AnalyticsTrack comment patterns and engagement ratesMeasure video performance, identify viral content, track growth
🎓 Academic ResearchStudy social media behavior and communicationResearch data, behavioral patterns, linguistic analysis
🛡️ Content ModerationMonitor comments for brand safetyIdentify spam, detect harmful content, protect brand reputation
💼 Influencer AnalysisEvaluate influencer audience engagementVerify authenticity, measure influence, assess partnerships
📱 Social ListeningMonitor brand mentions and customer feedbackReal-time feedback, crisis management, customer service

⚡ Quick Start

1️⃣ Basic Usage - Extract Top Comments

{
"video_urls": [
"https://www.youtube.com/watch?v=jNQXAC9IVRw"
],
"sort_by": "top",
"max_comments": 100
}

2️⃣ Extract Newest Comments

{
"video_urls": [
"https://www.youtube.com/watch?v=jNQXAC9IVRw"
],
"sort_by": "newest",
"max_comments": 500
}

3️⃣ Bulk Extraction from Multiple Videos

{
"video_urls": [
"https://www.youtube.com/watch?v=jNQXAC9IVRw",
"https://youtu.be/dQw4w9WgXcQ",
"jNQXAC9IVRw"
],
"geo": "US",
"lang": "en",
"sort_by": "top",
"max_comments": 200
}

4️⃣ Extract All Available Comments

{
"video_urls": [
"https://www.youtube.com/watch?v=jNQXAC9IVRw"
],
"sort_by": "top"
}

Note: Leave max_comments empty to extract all available comments


📊 Input Parameters

ParameterTypeRequiredDescriptionDefaultExample
video_urlsArray✅ YesYouTube video URLs or video IDs-["https://youtube.com/watch?v=..."]
geoString❌ NoISO 3166-2 country code"US""US", "IN", "GB"
langString❌ NoLanguage/locale code"en""en", "es", "hi"
sort_byString❌ NoSort order: top or newest"top""top", "newest"
max_commentsInteger❌ NoMax comments per videoAll100, 500, 1000

🔗 Supported URL Formats

  • ✅ https://www.youtube.com/watch?v=VIDEO_ID
  • ✅ https://youtu.be/VIDEO_ID
  • ✅ https://www.youtube.com/shorts/VIDEO_ID
  • ✅ https://www.youtube.com/embed/VIDEO_ID
  • ✅ https://m.youtube.com/watch?v=VIDEO_ID
  • ✅ Direct video ID: VIDEO_ID (e.g., jNQXAC9IVRw)

📤 Output Format

💬 Comment Data Structure

{
"source": "youtube",
"input_url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"video_id": "jNQXAC9IVRw",
"comment_id": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
"author_name": "@SanDiegoZoo",
"author_channel_id": "UCC5NfQ6Mf0dq_eEwv4P_hWA",
"author_thumbnail": "https://yt3.ggpht.com/...",
"text": "We're so honored that the first ever YouTube video was filmed here!",
"published_time_text": "5 years ago",
"publish_date": "2020-11-07",
"published_at": "2020-11-07T00:00:00Z",
"likes_count": "4.3M",
"reply_count": 985,
"is_verified": true,
"is_artist": false,
"is_creator": false,
"is_channel_owner": false,
"reply_token": "Eg0SC2pOUVhBQzlJVlJ3GAYy..."
}

📋 Output Fields Explained

FieldTypeDescription
sourceStringAlways "youtube"
input_urlStringOriginal input URL
video_idStringYouTube video ID
comment_idStringUnique comment identifier
author_nameStringComment author's username
author_channel_idStringAuthor's YouTube channel ID
author_thumbnailStringAuthor's profile picture URL
textStringComment text content
published_time_textStringHuman-readable publish time
publish_dateStringISO date (YYYY-MM-DD)
published_atStringISO 8601 timestamp
likes_countStringNumber of likes (formatted)
reply_countIntegerNumber of replies
is_verifiedBooleanHas verified badge
is_artistBooleanHas artist badge
is_creatorBooleanHas creator badge
is_channel_ownerBooleanIs video uploader
reply_tokenStringToken to fetch replies

🔧 Configuration Options

🌍 Supported Countries (Geo Codes)

RegionCodeRegionCodeRegionCode
🇺🇸 United StatesUS🇮🇳 IndiaIN🇬🇧 United KingdomGB
🇩🇪 GermanyDE🇯🇵 JapanJP🇧🇷 BrazilBR
🇨🇦 CanadaCA🇫🇷 FranceFR🇪🇸 SpainES
🇷🇺 RussiaRU🇦🇺 AustraliaAU🇮🇹 ItalyIT
🇳🇱 NetherlandsNL🇹🇷 TürkiyeTR🇮🇩 IndonesiaID
🇲🇽 MexicoMX🇰🇷 South KoreaKR🇸🇦 Saudi ArabiaSA
🇦🇪 UAEAE🇵🇰 PakistanPK🇧🇩 BangladeshBD
🇳🇬 NigeriaNG🇵🇭 PhilippinesPH🇻🇳 VietnamVN
🇹🇭 ThailandTH🇪🇬 EgyptEG🇿🇦 South AfricaZA

🗣️ Supported Languages

LanguageCodeLanguageCodeLanguageCode
EnglishenSpanishesFrenchfr
GermandeHindihiJapaneseja
KoreankoPortugueseptRussianru
ArabicarItalianitIndonesianid
TurkishtrVietnameseviThaith
ChinesezhPolishplDutchnl
SwedishsvNorwegianno--

📊 Sort Options

OptionDescriptionBest For
topMost popular comments firstFinding highly-engaged comments, viral content
newestMost recent comments firstReal-time monitoring, latest feedback

❓ FAQ

Q: How many comments can I extract?

A: You can extract unlimited comments! Set max_comments to control the limit per video, or leave it empty to extract all available comments. Most videos have 100-10,000 comments, but viral videos can have millions.

Q: Does this work with YouTube Shorts?

A: Yes! The actor fully supports YouTube Shorts. Just provide the Shorts URL or video ID.

Q: Can I extract comment replies?

A: The actor extracts top-level comments and provides reply_token for each comment. You can use this token to fetch nested replies in a separate request.

Q: What's the difference between 'top' and 'newest' sorting?

A:

  • Top: Comments sorted by popularity (most likes first) - Best for sentiment analysis
  • Newest: Comments sorted by recency (latest first) - Best for real-time monitoring

Q: How do I handle videos with millions of comments?

A: Set a reasonable max_comments limit (e.g., 1000-5000) to avoid long runtimes. For most use cases, the top comments provide sufficient insights.

Q: Can I extract comments from private or deleted videos?

A: No, the actor can only extract comments from publicly available videos.

Q: What happens if a video has comments disabled?

A: The actor will return an empty dataset for that video and log a warning message.

Q: Are there any rate limits?

A: The actor includes built-in rate limiting and retry logic to handle API throttling automatically.

Q: How accurate are the like counts?

A: Like counts are provided as-is from YouTube's API. They may be abbreviated (e.g., "4.3M" instead of exact numbers).

Q: Can I extract comments in specific languages only?

A: The lang parameter sets the locale for the request, but YouTube returns all comments regardless of language. You'll need to filter by language in post-processing.


Get Started Now

Ready to extract YouTube comments data?

  1. Enter the YouTube video URL or video ID
  2. Set maxComments (0 for unlimited)
  3. Select your preferred sorting, region, and language
  4. Click "Start" to run the actor
  5. View results in clean table views
  6. Export data in your preferred format
  7. Click "Try for free" to test the actor

If this actor helps your workflow, please give it a star!

Looking for more YouTube data? Check out these complementary actors:


🏷️ Find Me

youtube comment scraper, youtube comment extractor, youtube comments api, extract youtube comments, youtube comment finder, youtube comment history, youtube sentiment analysis, youtube comment data, youtube scraper, youtube api, comment extraction, youtube analytics, social media scraper, youtube engagement, comment analysis, youtube data mining, youtube research tool, youtube comment search, apify actor, youtube automation, bulk comment extraction, youtube comment downloader, youtube feedback analysis, youtube market research, youtube nlp, youtube text mining, youtube opinion mining, youtube comment parser, youtube data extraction, youtube web scraping, youtube comment collector, youtube insights, youtube audience analysis, youtube engagement metrics, youtube comment export, youtube csv export, youtube json data, youtube batch processing, youtube shorts comments, youtube video comments, youtube comment replies, verified comments, youtube creator comments, youtube top comments, newest youtube comments, youtube comment bot

Built with ❤️ by Sachin Kumar Yadav using Apify Platform