YouTube Comments Scraper
Pricing
from $0.02 / 1,000 comment extracteds
YouTube Comments Scraper
Extract public YouTube video comments, replies, authors, likes, timestamps, and video context for social listening and creator analytics.
Pricing
from $0.02 / 1,000 comment extracteds
Rating
0.0
(0)
Developer
Hanna Nosova
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Share
Extract public YouTube video comments and replies at scale.
This Apify actor helps teams collect public comment data from YouTube videos for social listening, creator analytics, moderation research, brand monitoring, audience research, and community reporting.
It accepts YouTube video URLs or video IDs, reads public comment threads, and saves clean dataset rows with author, text, timestamps, reply metadata, and source video details.
Choose the right YouTube actor
| Need | Use |
|---|---|
| Viewer feedback and replies | YouTube Comments Scraper |
| Recent uploads from a channel | YouTube Channel Videos Scraper |
| Caption text for summaries, RAG, or research | YouTube Transcript Scraper |
What does YouTube Comments Scraper do?
YouTube Comments Scraper collects public comments from one or more YouTube videos.
Use it when you need structured comment data instead of manually scrolling through a video page.
The actor returns one dataset item per comment or reply.
Each row includes the video ID, canonical video URL, video title, comment ID, author name, author channel URL, text, visible published time, reply relationship fields, requested sort mode, and scrape timestamp.
Who is it for?
Social listening teams
Track what viewers say about a campaign, product, creator, brand mention, or announcement video.
Creators and channel managers
Export comments for content planning, community analysis, moderation workflows, and audience research.
Agencies
Collect public viewer feedback across client videos and competitor videos for recurring reporting.
Researchers
Analyze public conversations around media, politics, education, entertainment, and cultural trends.
Support and community teams
Find repeated complaints, questions, feature requests, or praise in video comment sections.
Why use this actor?
- 💬 Export comments into JSON, CSV, Excel, XML, or HTML from Apify datasets.
- 🎬 Process multiple public videos in one run.
- 🧵 Include reply metadata so nested conversations stay understandable.
- 🔎 Use comment IDs and author URLs for deduplication and follow-up analysis.
- ⚙️ Run manually, on a schedule, through the API, or from an automation workflow.
- 🧩 Connect the output to spreadsheets, BI dashboards, sentiment tools, or LLM pipelines.
What data can you extract?
| Field | Description |
|---|---|
videoId | YouTube video ID |
videoUrl | Canonical YouTube watch URL |
videoTitle | Public video title when exposed by YouTube |
commentId | Public comment identifier when exposed by YouTube |
parentCommentId | Parent comment ID for replies |
isReply | Whether the row is a nested reply |
authorName | Public author display name |
authorChannelUrl | Public author channel URL |
authorThumbnailUrl | Public author avatar image URL |
text | Comment or reply text |
likeCount | Visible like count when available |
publishedTimeText | Relative published time shown by YouTube |
replyCount | Visible reply count when available |
sort | Requested comment sort mode |
scrapedAt | ISO timestamp when the row was saved |
How much does it cost to scrape YouTube comments?
This actor uses pay-per-event pricing.
There is a small start event for each run and a per-comment event for every dataset item saved.
Current formula-derived BRONZE pricing is about $0.0408 per 1,000 comments, plus a small $0.005 start event. Higher Apify plan tiers receive automatic volume discounts.
Apify will show the exact maximum charge before you start a run.
Input options
YouTube video URLs
Paste one or more public YouTube video URLs.
Supported examples:
https://www.youtube.com/watch?v=dQw4w9WgXcQhttps://youtu.be/dQw4w9WgXcQhttps://www.youtube.com/shorts/dQw4w9WgXcQ
YouTube video IDs
If you already have video IDs, enter them directly.
dQw4w9WgXcQ
Maximum comments per video
Set a cap to control run size and cost.
For a quick test, use 10 to 25 comments.
For monitoring, increase the limit based on the size of the videos you track.
Sort order
Choose top comments or newest comments.
Newest-first depends on what YouTube exposes for the selected video at run time.
Include replies
Enable replies when you want conversation context.
Disable replies when you only need top-level comments.
Proxy configuration
The actor supports Apify Proxy configuration.
Automatic proxy settings are a good default for most runs.
Use residential proxy only if your workload is throttled.
Example input
{"videoUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],"maxCommentsPerVideo": 25,"sort": "top","includeReplies": true,"proxyConfiguration": {"useApifyProxy": true}}
Example output
{"videoId": "dQw4w9WgXcQ","videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ","videoTitle": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)","commentId": "Ugzge340dBgB75hWBm54AaABAg","parentCommentId": null,"isReply": false,"authorName": "@YouTube","authorChannelUrl": "https://www.youtube.com/@YouTube","authorThumbnailUrl": "https://yt3.ggpht.com/example=s88-c-k-c0x00ffffff-no-rj","text": "can confirm: he never gave us up","likeCount": 255000,"publishedTimeText": "1 year ago","replyCount": 960,"sort": "top","scrapedAt": "2026-06-16T14:21:28.786Z"}
How to scrape YouTube comments
- Open the actor on Apify.
- Paste one or more YouTube video URLs.
- Set the maximum number of comments per video.
- Choose top or newest sort.
- Decide whether to include replies.
- Click Start.
- Download the dataset in your preferred format.
Tips for best results
- Start with a small limit to confirm the video has public comments.
- Use video IDs if you already have a list from another workflow.
- Disable replies when you only need high-level audience sentiment.
- Schedule recurring runs for campaign monitoring.
- Deduplicate downstream by
commentIdif you run the same video repeatedly. - Use
scrapedAtto compare comment exports over time.
Common use cases
- Brand sentiment tracking on product launch videos.
- Creator audience analysis across recent uploads.
- Exporting comments for moderation review.
- Detecting recurring customer questions.
- Researching public reaction to news or entertainment videos.
- Building datasets for natural language processing.
- Monitoring competitor campaign responses.
Integrations
Send results to Google Sheets through Apify integrations.
Load dataset exports into BigQuery, Snowflake, Airtable, or your BI stack.
Trigger the actor from Zapier, Make, n8n, GitHub Actions, or a custom backend.
Use webhooks to notify your team when a recurring monitoring run finishes.
API usage with Node.js
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('fetch_cat/youtube-comments-scraper').call({videoUrls: ['https://www.youtube.com/watch?v=dQw4w9WgXcQ'],maxCommentsPerVideo: 25,sort: 'top',includeReplies: true,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
API usage with Python
from apify_client import ApifyClientclient = ApifyClient('MY-APIFY-TOKEN')run = client.actor('fetch_cat/youtube-comments-scraper').call(run_input={'videoUrls': ['https://www.youtube.com/watch?v=dQw4w9WgXcQ'],'maxCommentsPerVideo': 25,'sort': 'top','includeReplies': True,})items = client.dataset(run['defaultDatasetId']).list_items().itemsprint(items)
API usage with cURL
curl "https://api.apify.com/v2/acts/fetch_cat~youtube-comments-scraper/runs?token=$APIFY_TOKEN" \-H 'Content-Type: application/json' \-d '{"videoUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],"maxCommentsPerVideo": 25,"sort": "top","includeReplies": true}'
MCP usage
You can run this actor from Claude Desktop, Claude Code, and other MCP-compatible tools through Apify MCP.
Use this MCP URL pattern:
https://mcp.apify.com/?tools=fetch_cat/youtube-comments-scraper
Claude Code setup:
$claude mcp add apify-youtube-comments https://mcp.apify.com/?tools=fetch_cat/youtube-comments-scraper
Claude Desktop JSON configuration:
{"mcpServers": {"apify-youtube-comments": {"url": "https://mcp.apify.com/?tools=fetch_cat/youtube-comments-scraper"}}}
Example prompts:
- "Scrape the top 50 comments from this YouTube video and summarize the main viewer reactions."
- "Export public comments from these three video URLs and identify common product complaints."
- "Run the YouTube Comments Scraper for this video ID and group comments by sentiment."
Scheduling
Create a schedule in Apify Console to monitor the same video list daily, weekly, or monthly.
Scheduled runs are useful for campaigns, launches, music videos, trailers, tutorials, and recurring brand mentions.
Data quality notes
YouTube can change what it exposes for individual videos.
Some videos have comments disabled.
Some comments may be hidden, moderated, removed, region-limited, or unavailable.
Visible like counts and reply counts may not be available for every row.
Troubleshooting
Why did I get zero comments?
The video may have comments disabled, may be private or deleted, may be age restricted, or YouTube may not expose comments for that request.
Try another public video with visible comments and a small limit.
Why are some fields null?
YouTube does not expose every field for every comment.
The actor keeps the row instead of inventing values.
Should I use residential proxy?
Usually no.
Start with the default proxy settings.
Use residential only if YouTube throttles your specific workload.
Legality and privacy
This actor is designed to collect publicly visible YouTube comments.
Do not use it to collect private, account-only, or restricted data.
You are responsible for using the data in accordance with applicable laws, platform terms, and privacy requirements.
Avoid collecting more data than you need.
Related scrapers
Explore other actors by the same developer on Apify:
- https://apify.com/fetch_cat/youtube-transcript-scraper
- https://apify.com/fetch_cat/youtube-channel-videos-scraper
FAQ
Can I scrape multiple videos in one run?
Yes. Add multiple video URLs or IDs to the input.
Can I get replies?
Yes. Enable includeReplies to include nested replies when YouTube exposes them.
Can I export to CSV?
Yes. Apify datasets can be downloaded as CSV, JSON, Excel, XML, RSS, and HTML.
Can I run this from code?
Yes. Use the Apify API, JavaScript client, Python client, webhooks, schedules, or MCP.
Does this require a YouTube account?
No. The actor is designed for public comments visible without login.
Limitations
This actor does not use private accounts.
It does not bypass paywalls, login walls, or private video restrictions.
It cannot return comments that YouTube itself does not expose for the public video page.
Changelog
0.1
Initial version for public YouTube video comments with URL/ID input, per-video limits, sorting option, reply option, proxy configuration, and structured comment dataset output.