YouTube Comments Scraper avatar
YouTube Comments Scraper

Pricing

from $0.40 / 1,000 results

Go to Apify Store
YouTube Comments Scraper

YouTube Comments Scraper

Export YouTube comments & replies to a structured dataset in minutes. Get author, text, likes, timestamps, and more—ready for analysis, dashboards, or archiving. Built for speed and reliability.

Pricing

from $0.40 / 1,000 results

Rating

5.0

(1)

Developer

API ninja

API ninja

Maintained by Community

Actor stats

1

Bookmarked

20

Total users

10

Monthly active users

4 days ago

Last modified

Share

A powerful Apify actor that extracts comments from YouTube videos with advanced filtering and customization options. Perfect for sentiment analysis, market research, content analysis, and social media monitoring.

✨ Features

  • 🎯 Multi-Video Support: Scrape comments from multiple YouTube videos in a single run
  • 📊 Flexible Comment Limits: Choose specific comment counts or extract all available comments
  • 💬 Reply Extraction: Include comment replies for comprehensive conversation analysis
  • 🔄 Smart Sorting: Order comments by "top" (most popular) or "newest" (most recent)
  • 🌍 Localization: Specify country and language for region-specific content
  • ⚡ High Performance: Optimized scraping with intelligent data extraction

🚀 Quick Start

Basic Usage

{
"videoUrls": [
"https://www.youtube.com/watch?v=dQw4w9WgXcQ"
]
}

Advanced Configuration

{
"videoUrls": [
"https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"https://www.youtube.com/watch?v=9bZkp7q19f0"
],
"commentsPerVideo": 500,
"scrapeAllComments": false,
"includeReplies": true,
"orderBy": "top",
"geo": "US",
"lang": "en"
}

📋 Input Configuration

The actor accepts the following configuration parameters:

ParameterTypeRequiredDefaultDescription
videoUrlsarray✅ Yes-YouTube video URLs or video IDs to scrape. Supports both full URLs (https://www.youtube.com/watch?v=VIDEO_ID) and video IDs (VIDEO_ID)
commentsPerVideointeger❌ No100Number of comments to extract per video. Ignored when scrapeAllComments is enabled. Minimum: 100
scrapeAllCommentsboolean❌ NofalseExtract all available comments from the video when enabled
includeRepliesboolean❌ NofalseInclude comment replies (approximately 10 replies per comment)
orderBystring❌ NotopSort comments by popularity: top or newest
geostring❌ No-ISO 3166-2 country code (e.g., US, GB, IN) for region-specific results
langstring❌ No-ISO 639-1 language code (e.g., en, es, fr) for localized content

Input Validation

  • videoUrls must contain at least one valid YouTube URL or video ID
  • geo must be a valid 2-letter country code (uppercase)
  • lang must be a valid 2-letter language code (lowercase)
  • commentsPerVideo must be at least 100 when specified

📤 Output Structure

The actor generates a structured dataset with the following fields for each comment:

{
"commentId": "UgwYX91Z7rTb7a6jGux4AaABAg",
"text": "This is an amazing video! Really helped me understand the concept better.",
"published": "2 days ago",
"likes": 42,
"author": "John Doe",
"authorThumb": "https://yt3.ggpht.com/ytc/AKedOLQexample",
"authorId": "UC123456789012345678",
"authorUrl": "/channel/UC123456789012345678",
"isEdited": false,
"isPinned": false,
"replyCount": 3,
"replyToken": "Eg0SC1Vnd1lXOTFaN3JUYjdhNmpHdXg0QWFBQUJBZw",
"isReply": false
}

Field Descriptions

FieldTypeDescription
commentIdstringUnique identifier for the comment
textstringThe comment content
publishedstringRelative time when the comment was posted
likesintegerNumber of likes the comment received
authorstringDisplay name of the comment author
authorThumbstringURL to the author's profile thumbnail
authorIdstringYouTube channel ID of the author
authorUrlstringRelative URL to the author's channel
isEditedbooleanWhether the comment has been edited
isPinnedbooleanWhether the comment is pinned by the creator
replyCountintegerNumber of replies to this comment
replyTokenstringToken for fetching replies (if applicable)
isReplybooleanWhether this item is a reply to another comment

🔧 Use Cases

Market Research

Analyze customer sentiment and feedback on product-related videos to understand market trends and user preferences.

Content Analysis

Study engagement patterns and popular discussion topics to optimize content strategy.

Academic Research

Collect data for social media analysis, communication studies, and behavioral research.

Competitor Monitoring

Track comments on competitor videos to gather insights about their audience engagement.

🔌 Integrations

This actor seamlessly integrates with popular automation platforms:

  • Make: Create automated workflows with YouTube comment data
  • Zapier: Connect YouTube comments to 3000+ apps
  • Google Sheets: Direct export to spreadsheets for analysis
  • Airtable: Organize comment data in relational databases

⚠️ Important Notes

  • Rate Limiting: The actor implements intelligent delays to respect YouTube's rate limits
  • Comment Availability: Some videos may have comments disabled or limited by the creator
  • Reply Limitations: Approximately 10 replies per comment are extracted to balance completeness and performance
  • Geographic Restrictions: Some content may be region-restricted based on geo and lang settings

🤝 Support

For questions, bug reports, or feature requests drop an issue on the page.

Built with ❤️