ParseForge Scrapers

YouTube Comments Scraper

parseforge/youtube-comments-scraper

Social mediaVideosAI

Extract comments and replies from YouTube videos with optional AI-powered sentiment, emotion, toxicity, and language detection. No API key needed.

Run this scraper See the API call
Total users
104
Monthly active
11
Total runs
9.4K
Bookmarked
4
Rating
5.0 (3)
Last modified
12 days ago

Overview

ParseForge

YouTube Comments Scraper

Scrape comments and replies from any YouTube video, up to a million per run. Every comment comes with its text, author, likes, timestamp, and computed AI signals. No API key or OAuth. Export to CSV, JSON, Excel, or XML.

YouTube's official API requires an app registration, OAuth, and imposes strict quotas that limit how many comments you can pull. This Actor reads the public comment feeds directly, filtered by video URL, and returns each comment and reply in one fixed schema. Optionally, enable AI enhancement to get sentiment, emotion, toxicity, and language detection for every comment.

Who uses it What they scrape YouTube for
Content creators Which topics or phrases spark the most engagement in their video comments.
Market researchers What audiences are saying about a brand, product, or trend across multiple videos.
Community managers Flag toxic or highly emotional comments for moderation or response.
Data analysts Build sentiment and emotion datasets from public YouTube discussions.

What it does

This Actor collects comments and replies from YouTube videos by URL, and returns each one as a flat row with optional AI-powered analysis.

  • ๐Ÿง  AI-powered analysis: Sentiment (positive/negative/neutral), emotion (joy, anger, sadness, etc.), toxicity score, and language detection per comment.
  • ๐Ÿ’ฌ Replies included or excluded: Choose to scrape only top-level comments or include nested replies up to a configurable depth.
  • ๐Ÿ“ฆ Bulk extraction: Scrape from multiple video URLs in one run, up to 1,000,000 comments total.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with YouTube data

๐Ÿ“ˆ Track audience sentiment on a product launch.

A brand manager runs the scraper on review and unboxing videos, enables AI analysis, and exports the sentiment breakdown to decide on messaging adjustments.

๐Ÿ” Moderate comments at scale.

A community manager scrapes comments from a popular channel, filters by high toxicity scores, and prioritises moderation actions.

๐Ÿ“Š Build a training dataset for NLP models.

A data scientist collects millions of YouTube comments with AI-generated labels (sentiment, emotion, language) to train a custom classifier.

๐Ÿ’ก Identify trending topics in a niche.

A content creator scrapes comments from competitor videos, groups by common phrases, and plans their next video around what viewers are asking.

Why choose this scraper

What you get
No API limits Bypass YouTube's quota restrictions and OAuth setup.
AI signals Get sentiment, emotion, toxicity, and language without extra tools.
Full reply tree Optionally scrape nested replies with a configurable max per comment.
Flat schema Every comment and reply is a single row, ready for analysis.

How it compares

Compared to the popular YouTube Scraper, this actor focuses specifically on comments and replies with built-in AI analysis.

Feature ParseForge YouTube Scraper
Scrapes comments and replies Yes Not listed
AI sentiment analysis Yes Not listed
AI emotion detection Yes Not listed
AI toxicity scoring Yes Not listed
AI language detection Yes Not listed
Scrapes video metadata Not listed Yes
Scrapes channel info Not listed Yes

Configure the run

Drive the Actor from one or more YouTube video URLs (supports youtube.com/watch, youtu.be, and youtube.com/shorts). Filters run as each comment is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    }
  ],
  "maxItems": 10
}

A larger pull:

{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    }
  ],
  "maxItems": 200
}

Pricing

Pay-per-result: $0.0045 per result collected. You pay only for the results written to your dataset.

Results collected Approximate cost
100 results $0.45
1,000 results $4.50
10,000 results $45.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the YouTube Comments Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to YouTube through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/youtube-comments-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no comments?

Check that the video URL is correct and publicly accessible. Some videos have comments disabled or are private. Also verify that maxItems is set high enough.

The AI analysis is not running.

Ensure the 'AI Enhancement' toggle is enabled in the input settings. AI analysis only runs when this option is turned on.

Replies are not being scraped.

Make sure 'Include Replies' is set to true. Also check that maxRepliesPerComment is not set to 0.

The run is taking too long.

Reduce maxItems or maxRepliesPerComment. AI analysis also increases run time; disable it if speed is critical.

I get an error about invalid URL.

Only use URLs in the formats: https://www.youtube.com/watch?v=..., https://youtu.be/..., or https://www.youtube.com/shorts/... Remove any extra parameters or playlist IDs.

FAQ

Question Answer
Do I need a YouTube API key? No. This scraper reads the public comment feeds directly, so no API key or OAuth is required.
Can I scrape comments from a live stream? Yes, as long as the video is publicly accessible and has comments enabled. The scraper reads the current comment feed.
What video URL formats are supported? Standard youtube.com/watch?v=..., youtu.be/..., and youtube.com/shorts/... URLs are all supported.
How many comments can I scrape per run? Up to 1,000,000 comments per run, configurable via the maxItems field.
Does the AI analysis cost extra? AI enhancement is an optional feature that uses processing time on the Apify platform. It may increase run duration and cost, but no separate API key is needed.
Can I scrape replies to comments? Yes. Enable the 'Include Replies' option and set the max replies per comment (default 100, up to 1000).
What fields are returned for each comment? Each comment row includes the comment text, author name, author channel URL, like count, published date, and if AI is enabled, sentiment, emotion, toxicity score, and detected language.
Can I scrape comments from multiple videos at once? Yes. Provide multiple video URLs in the startUrls array, and the scraper will process them sequentially in one run.
Is there a limit on the number of videos I can input? No hard limit, but the total comment count across all videos is capped by the maxItems setting.
What export formats are available? You can export the dataset as CSV, JSON, Excel, or XML directly from the Apify platform.

Related actors

Browse the full ParseForge collection for more scrapers.

๐Ÿ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

โš ๏ธ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Google LLC. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

Input

FieldTypeWhat it doesDefault
startUrls required array Enter YouTube video URLs to scrape comments from. Supports youtube.com/watch, youtu.be, and youtube.com/shorts URLs. [{"url":"https://www.youtube.com/watch?v
maxItems integer How many comments to collect per run. 10
includeReplies boolean Whether to include replies to comments. If false, only main comments will be scraped. true
maxRepliesPerComment integer Maximum number of replies to fetch per comment. Only used when Include Replies is enabled. 100
aiEnhancement boolean Enable AI-powered analysis for each comment. Adds sentiment analysis, emotion detection, toxicity scoring, and language detection. Note: This uses AI processing and may increase run time. false

Pricing

from $3.50 per 1,000 results

Charged forWhat it isPrice each
result Single result in the default dataset. $0.0035 to $0.004
Comment Enhancement Charged when AI enhancement successfully analyzes a comment. Includes sentiment (positive/neutral/negative), emotion (joy, anger, fear, etc.), toxicity score, and language detection. $0.002 to $0.0025
Actor Start Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). $0.004 to $0.0045

Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.

API

One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.

POST ยท run and get results
curl -X POST "https://api.apify.com/v2/acts/parseforge~youtube-comments-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "helloWorld": 123
  }'

Examples

Input that runs as-is.

input.json
{
  "helloWorld": 123
}

Reviews

Rated 5.0 out of 5 across 3 reviews. Read them on Apify.

Issues

We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.

Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.

Related scrapers

Run YouTube Comments Scraper on Apify All scrapers