YouTube Comments Scraper
Pricing
Pay per usage
YouTube Comments Scraper
Scrape YouTube comments at scale. Get comment text, replies, author details, timestamps & engagement metrics from any video. Perfect for sentiment analysis, brand monitoring, content research, engagement tracking & AI training. Structured, export-ready data.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Shahid Irfan
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Share
Extract comments and replies from YouTube videos with ease. Collect user profiles, comment text, likes, reply counts, and engagement metrics at scale. Perfect for sentiment analysis, market research, and audience feedback tracking.
Features
- Multi-Video Scraping — Collect comments from one or multiple YouTube video URLs in a single run.
- Detailed Metadata — Extract comment content, author details, like counts, and reply counts.
- Creator Signals — Identify pinned comments, creator-hearted comments, and author-creator badges.
- Advanced Sorting — Sort comments by newest first or top comments using YouTube's native ordering.
Use Cases
Sentiment Analysis
Analyze viewer reactions and community feedback on product launches, updates, or specific topics.
Competitor Intelligence
Track audience discussions on competitor channels to identify customer pain points, complaints, and feature requests.
Lead Generation
Discover highly engaged community members, active commentators, or potential leads within your niche.
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
startUrls | Array | Yes | [] | One or more YouTube video URLs to scrape |
maxComments | Integer | No | 1 | Maximum number of comments to collect per video |
commentsSortBy | String | No | "1" | Sorting order ("0": Newest first, "1": Top comments) |
maxConcurrency | Integer | No | 5 | Maximum number of pages processed in parallel |
Output Data
Each scraped comment item contains the following fields:
| Field | Type | Description |
|---|---|---|
type | String | Type of item: comment or reply |
url | String | Canonical video URL |
comment | String | Extracted text content of the comment |
cid | String | Unique comment identifier |
author | String | Comment author's display name |
authorId | String | Author's YouTube channel ID |
authorUrl | String | Public URL of the author's channel |
authorThumbnail | String | Avatar image URL for the author |
publishedTimeText | String | Relative published time text (e.g. 3 days ago) |
publishedAt | String | Normalized ISO timestamp of publication |
voteCount | Number | Number of likes on the comment |
replyCount | Number | Number of replies to this comment |
authorIsChannelOwner | Boolean | Whether the author is the video creator |
hasCreatorHeart | Boolean | Whether the creator hearted the comment |
isPinned | Boolean | Whether the comment is pinned to the top |
replyToCid | String | ID of parent comment (for replies) |
scrapedAt | String | ISO timestamp when the data was collected |
Usage Examples
Basic Comment Extraction
Extract the top comments from a single YouTube video:
{"startUrls": [{ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }],"maxComments": 50,"commentsSortBy": "1"}
Sample Output
{"type": "comment","url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ","pageUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ","videoId": "dQw4w9WgXcQ","title": "Rick Astley - Never Gonna Give You Up (Official Music Video)","comment": "This song will never die.","cid": "Ugx...","author": "John Doe","authorId": "UC...","authorUrl": "https://www.youtube.com/channel/UC...","authorThumbnail": "https://yt3.ggpht.com/...","publishedTimeText": "2 days ago","publishedAt": "2026-06-19T14:00:00.000Z","voteCount": 1420,"replyCount": 5,"commentsCount": 842910,"authorIsChannelOwner": false,"hasCreatorHeart": true,"isPinned": false,"replyToCid": null,"scrapedAt": "2026-06-21T09:00:00.000Z"}
Tips for Best Results
Sorting Strategy
- Use Top comments to get comments that received the most engagement and user reactions.
- Use Newest first to monitor real-time community engagement or recent feedback.
Performance Optimization
- Set
maxConcurrencyappropriately to balance scraping speed and run stability. - When running large batches of videos, start with smaller comment limits to test your workflow.
Integrations
Connect your data with:
- Google Sheets — Export for team collaboration and reporting
- Airtable — Build structured customer review databases
- Slack — Notify your team of critical comments or reviews
- Webhooks — Automate integrations with custom endpoints
Export Formats
- JSON — For developer workflows and API systems
- CSV — For easy loading into spreadsheet tools
- Excel — For local analysis and business metrics
Frequently Asked Questions
Does it support replies?
Yes, replies to comments are automatically extracted and linked to their parent comments via replyToCid.
Can I scrape multiple videos at once?
Yes. Simply input multiple YouTube video URLs into the startUrls array parameter.
How are dates normalized?
Relative dates like "3 days ago" or "1 year ago" are resolved into normalized ISO timestamps under publishedAt.
Support
For issues or feature requests, contact support through the Apify Console.
Resources
Legal Notice
This actor is designed for legitimate data collection purposes. Users are responsible for ensuring compliance with website terms of service and applicable laws. Use data responsibly and respect rate limits.