YouTube Comments Scraper | Pay Per Result
by alpha-scraper
Extract YouTube comments, authors, and metadata in seconds. Perfect for research, analysis, or gathering business insights—pay only for the data you get.
Opens on Apify.com
About YouTube Comments Scraper | Pay Per Result
Need to pull YouTube comments for a project, but dreading the manual work? I've been there. This scraper pulls comments fast, giving you structured data without the headache. It grabs the comment ID (CID), type, publish timestamp, the actual comment text, author details, and the page URL—all in a clean format ready for analysis. I use it mostly for research and competitive analysis. If you're tracking sentiment around a product launch, studying engagement patterns, or just need a dataset for a machine learning project, this tool gets the job done. It saves a ton of time you'd otherwise spend copying and pasting or wrestling with unofficial APIs. The pay-per-result model is great because you only pay for what you actually extract, which keeps costs predictable for one-off tasks or smaller monitoring jobs. Just point it at a video URL, and it fetches the comment data in seconds. You can export to JSON, CSV, or other standard formats to fit right into your existing workflow. It's become a reliable part of my toolkit for gathering social data without overcomplicating things.
What does this actor do?
YouTube Comments Scraper | Pay Per Result is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
YouTube Comments Scraper
Overview
This Apify actor scrapes structured comment data from YouTube videos. You provide one or more video URLs, and it returns JSON data including comment text, author details, timestamps, votes, and video metadata. The original raw comment object is preserved for each entry.
Key Features
- Scrapes comments, author info (name, ID, URL, avatar), and video metadata (ID, URL, title, comment count).
- Preserves the full, unmodified
rawcomment object for each entry. - Allows limiting comments per video (
maxComments) or fetching all comments (getAllComments). - Supports sorting comments by
top(highest votes) ornewest. - Outputs to both Apify datasets and downloadable container files.
- Recommended to use Apify Proxy (especially RESIDENTIAL) for reliable runs.
How to Use
Configure the actor run with an input JSON object. The only required parameter is startUrls.
Example Input
{
"startUrls": [
"https://www.youtube.com/watch?v=wT4HcYAeV5U",
"https://www.youtube.com/watch?v=H6l0q4l2NLo"
],
"maxComments": 100,
"sortBy": "top"
}
Input Parameters:
* startUrls (required): Array of YouTube video URLs to scrape.
* maxComments (optional): Maximum number of comments to scrape per video. Ignored if getAllComments is true.
* getAllComments (optional): Set to true to scrape all available comments, overriding maxComments.
* sortBy (optional): Comment sort order. Use "top" or "newest".
Input/Output
Input: Provide video URLs via the startUrls array in the actor's input configuration.
Output: The actor generates the following for each video:
* A dataset entry in the Apify Console.
* A file output_<videoId>.json containing the complete video object.
* A file comments_<videoId>.jsonl with one JSON comment object per line (JSONL format).
Example Output Structure
{
"videoUrl": "https://www.youtube.com/watch?v=wT4HcYAeV5U",
"videoId": "wT4HcYAeV5U",
"title": "YouTube",
"commentsCount": null,
"comments": [
{
"cid": "Ugxl_IUyS2PaN9t-_wV4AaABAg",
"type": "comment",
"publishedTimeText": "7 hours ago",
"publishedTimeTs": 1759729079.617027,
"comment": "Madhubanti + Rashmika = ",
"author": "@maddockfilmsindia",
"authorId": null,
"authorUrl": null,
"authorThumbnail": null,
"replyCount": 7,
"voteCount": 5,
"isHearted": false,
"isEdited": false,
"raw": { ... },
"videoId": "H6l0q4l2NLo",
"pageUrl": "https://www.youtube.com/watch?v=H6l0q4l2NLo"
}
]
}
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try YouTube Comments Scraper | Pay Per Result now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- alpha-scraper
- Pricing
- Paid
- Total Runs
- 76
- Active Users
- 6
Related Actors
🏯 Tweet Scraper V2 - X / Twitter Scraper
by apidojo
Instagram Scraper
by apify
TikTok Scraper
by clockworks
Instagram Profile Scraper
by apify
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support