YouTube Comments Scraper - with Replies
Pricing
from $10.00 / 1,000 results
YouTube Comments Scraper - with Replies
Extract all comments and replies from any YouTube video. Get comment text, author, likes, reply count, and timestamps. Supports pagination for videos with thousands of comments.
YouTube Comments Scraper
What does YouTube Comments Scraper do?
YouTube Comments Scraper is a powerful Apify actor that extracts all comments and replies from any public YouTube video. It uses YouTube's internal InnerTube API to efficiently paginate through comments, extracting the comment text, author name, author channel ID, like count, reply count, published time, and other metadata for each comment. The scraper supports both top-level comments and threaded replies, giving you a complete picture of the conversation happening on any video.
This tool is ideal for sentiment analysis, audience research, competitor monitoring, content strategy planning, and social listening. Whether you are analyzing public opinion on a topic, monitoring brand mentions in video comments, or building a dataset for natural language processing research, this scraper provides clean, structured data ready for immediate use.
Features
- Extract all comments from any public YouTube video using the InnerTube API
- Scrape threaded replies for each top-level comment
- Get author name, channel ID, comment text, like count, reply count, and timestamps
- Detect hearted and pinned comments
- Configurable maximum comment limit per video
- Sort by top comments or newest first
- Batch processing of multiple video URLs
- Proxy support for reliable large-scale scraping
- Fast and cost-effective at approximately $1 per 1,000 comments
How to Use
- Navigate to the actor's input page on Apify Console
- Add one or more YouTube video URLs to the "Video URLs" field
- Set the maximum number of comments to extract (default is 500)
- Choose whether to include replies (enabled by default)
- Select sort order: top comments or newest first
- Optionally configure proxy settings for reliability
- Click "Start" to begin the extraction
- Download results in JSON, CSV, Excel, or other formats from the Dataset tab
You can also call this actor programmatically via the Apify API or integrate it into automated workflows using the Apify client libraries for JavaScript, Python, and other languages.
Input Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
urls | Array | List of YouTube video URLs to scrape comments from (required) | - |
maxComments | Integer | Maximum number of top-level comments per video (1-50,000) | 500 |
includeReplies | Boolean | Whether to also scrape replies to each comment | true |
sortBy | String | Sort order: "top" or "newest" | "top" |
proxyConfiguration | Object | Proxy settings for the scraper | None |
Output Data
Each scraped comment returns the following fields:
| Field | Type | Description |
|---|---|---|
videoId | String | YouTube video ID |
commentId | String | Unique comment ID |
author | String | Comment author display name |
authorChannelId | String | Author's YouTube channel ID |
text | String | Full comment text |
likeCount | String | Number of likes on the comment |
replyCount | Integer | Number of replies |
publishedTime | String | Relative publish time (e.g., "2 days ago") |
isHearted | Boolean | Whether the creator hearted the comment |
isPinned | Boolean | Whether the comment is pinned |
isReply | Boolean | Whether this is a reply to another comment |
parentCommentId | String | Parent comment ID (for replies only) |
scrapedAt | String | ISO timestamp of when the data was scraped |
Pricing
This actor is priced at approximately $1 per 1,000 comments scraped, making it one of the most affordable YouTube comment extraction solutions available. Actual costs depend on your Apify subscription plan and proxy usage.
Related Actors
Check out these other YouTube scrapers by quick_kirigami:
- YouTube Video Scraper - Extract video metadata including title, views, likes, and more
- YouTube Channel Scraper - Extract channel metadata, subscriber counts, and recent videos
- YouTube Shorts Scraper - Extract metadata from YouTube Shorts and trending shorts
