Youtube Comments Scraper avatar

Youtube Comments Scraper

Pricing

from $1.00 / 1,000 comment scrapeds

Go to Apify Store
Youtube Comments Scraper

Youtube Comments Scraper

Scrape comments from any YouTube video using the official YouTube Data API v3. Extract comment text, author, likes, reply count, timestamps, and more. Supports replies, sorting by newest or most relevant, and up to 10,000 comments per video. No proxies required.

Pricing

from $1.00 / 1,000 comment scrapeds

Rating

0.0

(0)

Developer

Darren S

Darren S

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

4 hours ago

Last modified

Share

Scrape comments from any YouTube video using the official YouTube Data API v3. No proxies, no browser, no blocks — just a free API key and clean structured data.

Features

  • Scrape up to 10,000 comments per video
  • Process multiple videos in a single run
  • Includes replies to top-level comments (optional)
  • Sort by newest first or most relevant
  • Returns author, comment text, like count, reply count, timestamps, and more
  • Works with any YouTube URL format — full URLs, short URLs, or bare video IDs
  • Fast and reliable: uses the official API, not browser scraping or proxies
  • Export as JSON, CSV, or Excel

Use Cases

  • Sentiment analysis — Understand how audiences feel about a video, product, or topic
  • Market research — Gather unfiltered audience feedback on competitors' content
  • Content strategy — Discover what questions viewers are asking so you can create better content
  • Social listening — Monitor brand mentions, product reviews, and customer pain points on YouTube
  • AI training data — Build labelled comment datasets for sentiment, toxicity, or topic models
  • Academic research — Collect social media data at scale for NLP studies
  • Influencer vetting — Gauge real engagement quality and audience sentiment before partnerships

Getting a YouTube API Key (free)

The YouTube Data API v3 is free and includes 10,000 quota units per day — enough for ~10,000 comment fetches daily.

  1. Go to console.cloud.google.com
  2. Create a new project (or select an existing one)
  3. Open APIs & Services → Library and enable YouTube Data API v3
  4. Go to APIs & Services → Credentials → Create Credentials → API Key
  5. Copy the key and paste it into the youtubeApiKey input

Input

FieldTypeDefaultDescription
videoUrlsArrayYouTube video URLs or bare video IDs
youtubeApiKeyStringYour YouTube Data API v3 key (required)
maxCommentsPerVideoNumber100Comments to fetch per video (max 10,000)
includeRepliesBooleanfalseAlso fetch replies to top-level comments
sortByStringtimetime (newest first) or relevance

Output

Each comment is saved as a dataset item:

{
"video_id": "dQw4w9WgXcQ",
"video_title": "Rick Astley - Never Gonna Give You Up",
"video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"comment_id": "UgxABCDEF123",
"text": "This song never gets old!",
"author": "MusicFan42",
"author_channel_id": "UCxxxxxx",
"like_count": 42,
"reply_count": 3,
"published_at": "2024-01-15T10:30:00.000Z",
"updated_at": "2024-01-15T10:30:00.000Z",
"is_reply": false,
"parent_id": null
}

Frequently Asked Questions

Do I need a YouTube account? No account needed — just a free API key from Google Cloud Console.

Is it free to use the YouTube API? Yes. The YouTube Data API v3 has a free daily quota of 10,000 units. Fetching a page of 100 comments costs approximately 1 unit, so 10,000 comments costs ~100 units — well within the free tier.

Can I scrape comments from multiple videos at once? Yes. Add as many video URLs or IDs as you need to the videoUrls array.

Does it get replies to comments? Yes — enable includeReplies to fetch replies nested under top-level comments. Each reply is a separate dataset item with is_reply: true and its parent's ID in parent_id.

Why use this instead of scraping YouTube directly? The official API is faster, more reliable, and avoids IP blocks entirely. No proxies required.

What's the maximum comments per video? 10,000 per video per run. For videos with more comments, re-run with a different sort order or filter.

Pricing

  • $1.00 per 1,000 comments scraped
  • Actor start: $0.00005 per run

Example: 500 comments from each of 2 videos = 1,000 comments = $1.00 total.