YouTube Comments Scraper - Comments & Replies avatar

YouTube Comments Scraper - Comments & Replies

Pricing

from $0.20 / 1,000 results

Go to Apify Store
YouTube Comments Scraper - Comments & Replies

YouTube Comments Scraper - Comments & Replies

Scrape YouTube comments from any video URL or ID via the official YouTube Data API v3. Optionally include reply threads. Returns text, author, likes, timestamps, language, and channel info. Built for sentiment analysis, AI training, brand monitoring, and creator research.

Pricing

from $0.20 / 1,000 results

Rating

0.0

(0)

Developer

NIJ KANANI

NIJ KANANI

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

5 days ago

Last modified

Categories

Share

πŸ“Ί YouTube Comments Scraper

Scrape YouTube comments and replies from any video URL or ID using the official YouTube Data API v3. Returns text, author, likes, timestamps, language, and channel info β€” JSON or CSV.

🎯 Built for sentiment analysis, AI/LLM training datasets, brand monitoring, creator research, and audience insights.


✨ What you can do

  • πŸŽ₯ Multiple videos per run β€” paste any list of URLs or IDs
  • πŸ’¬ Top-level comments + reply threads β€” flattened with parentId for tree reconstruction
  • πŸ”Ž Optional substring filter β€” only return comments containing your keywords
  • πŸ“Š Sort by relevance (top) or time (newest)
  • πŸ“Ί Includes video metadata β€” title, channel, view/like/comment counts

πŸš€ Quick start

{
"videoUrlsOrIds": [
"https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"kffacxfA7G4"
],
"apiKey": "AIzaSy...",
"includeReplies": true,
"order": "relevance",
"maxCommentsPerVideo": 500,
"searchTerms": ["amazing", "great"]
}

πŸ”‘ Get the API key (free, 5 min)

  1. Open https://console.cloud.google.com/
  2. Create a project (any name)
  3. Search "YouTube Data API v3" β†’ click β†’ Enable
  4. Left sidebar: APIs & Services β†’ Credentials
  5. Click "+ Create credentials" β†’ "API key"
  6. Recommended: Restrict key β†’ API restrictions β†’ YouTube Data API v3
  7. Paste the AIzaSy... key into the input form

Free quota: 10,000 units/day per project.

  • 1 page of comments (~100) = 1 unit
  • Average video (500 comments) = ~5 units
  • 2,000 average videos/day for free

πŸ“₯ Input

FieldDescription
videoUrlsOrIdsList of YouTube URLs or 11-char video IDs
apiKeyRequired β€” your YouTube Data API v3 key
includeRepliesFetch reply threads (default true)
orderrelevance (top) or time (newest)
maxCommentsPerVideoCap on top-level comments per video
searchTermsOptional substring filter

URL formats supported: youtube.com/watch?v=ID, youtu.be/ID, youtube.com/shorts/ID, youtube.com/embed/ID.


πŸ“€ Output (per comment)

{
"videoId": "dQw4w9WgXcQ",
"videoTitle": "Rick Astley - Never Gonna Give You Up",
"channelTitle": "Rick Astley",
"commentId": "Ugw...",
"parentId": null,
"isReply": false,
"author": "@username",
"authorChannelId": "UC123...",
"authorProfileImage": "https://...",
"text": "Comment text",
"textOriginal": "Comment text",
"likeCount": 234,
"publishedAt": "2026-04-15T...",
"updatedAt": "2026-04-15T...",
"totalReplyCount": 5,
"scrapedAt": "2026-05-06T..."
}

🎯 Use cases

WhoWhy
πŸ€– AI / sentiment teamsReal audience reactions for training/benchmarking
🎨 Creators & marketersAudience insights, content optimization
🏒 Brand teamsTrack mentions on competitors' / influencers' videos
πŸ“Š ResearchersStudy online discourse around news/topics/products

βš™οΈ Tech notes

  • Uses YouTube Data API v3 β€” official, terms-compliant
  • Each user provides their own API key (we never store it)
  • Auto-handles videos with disabled comments β€” logs and skips, doesn't fail
  • Pagination via nextPageToken until cap or end

❓ FAQ

Will it use up my quota? A typical video scrape costs ~5 quota units. 10,000/day = ~2,000 typical scrapes.

What about comment replies? We fetch them automatically when includeReplies is on. They appear as separate items with isReply: true and parentId set.

Hidden / spam comments? The API only returns publicly visible comments. Hidden ones aren't included.