YouTube Comments Scraper avatar

YouTube Comments Scraper

Pricing

Pay per usage

Go to Apify Store
YouTube Comments Scraper

YouTube Comments Scraper

Scrape YouTube comments at scale. Get comment text, replies, author details, timestamps & engagement metrics from any video. Perfect for sentiment analysis, brand monitoring, content research, engagement tracking & AI training. Structured, export-ready data.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Shahid Irfan

Shahid Irfan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Extract comments and replies from YouTube videos with ease. Collect user profiles, comment text, likes, reply counts, and engagement metrics at scale. Perfect for sentiment analysis, market research, and audience feedback tracking.

Features

  • Multi-Video Scraping — Collect comments from one or multiple YouTube video URLs in a single run.
  • Detailed Metadata — Extract comment content, author details, like counts, and reply counts.
  • Creator Signals — Identify pinned comments, creator-hearted comments, and author-creator badges.
  • Advanced Sorting — Sort comments by newest first or top comments using YouTube's native ordering.

Use Cases

Sentiment Analysis

Analyze viewer reactions and community feedback on product launches, updates, or specific topics.

Competitor Intelligence

Track audience discussions on competitor channels to identify customer pain points, complaints, and feature requests.

Lead Generation

Discover highly engaged community members, active commentators, or potential leads within your niche.


Input Parameters

ParameterTypeRequiredDefaultDescription
startUrlsArrayYes[]One or more YouTube video URLs to scrape
maxCommentsIntegerNo1Maximum number of comments to collect per video
commentsSortByStringNo"1"Sorting order ("0": Newest first, "1": Top comments)
maxConcurrencyIntegerNo5Maximum number of pages processed in parallel

Output Data

Each scraped comment item contains the following fields:

FieldTypeDescription
typeStringType of item: comment or reply
urlStringCanonical video URL
commentStringExtracted text content of the comment
cidStringUnique comment identifier
authorStringComment author's display name
authorIdStringAuthor's YouTube channel ID
authorUrlStringPublic URL of the author's channel
authorThumbnailStringAvatar image URL for the author
publishedTimeTextStringRelative published time text (e.g. 3 days ago)
publishedAtStringNormalized ISO timestamp of publication
voteCountNumberNumber of likes on the comment
replyCountNumberNumber of replies to this comment
authorIsChannelOwnerBooleanWhether the author is the video creator
hasCreatorHeartBooleanWhether the creator hearted the comment
isPinnedBooleanWhether the comment is pinned to the top
replyToCidStringID of parent comment (for replies)
scrapedAtStringISO timestamp when the data was collected

Usage Examples

Basic Comment Extraction

Extract the top comments from a single YouTube video:

{
"startUrls": [{ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }],
"maxComments": 50,
"commentsSortBy": "1"
}

Sample Output

{
"type": "comment",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"pageUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"videoId": "dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up (Official Music Video)",
"comment": "This song will never die.",
"cid": "Ugx...",
"author": "John Doe",
"authorId": "UC...",
"authorUrl": "https://www.youtube.com/channel/UC...",
"authorThumbnail": "https://yt3.ggpht.com/...",
"publishedTimeText": "2 days ago",
"publishedAt": "2026-06-19T14:00:00.000Z",
"voteCount": 1420,
"replyCount": 5,
"commentsCount": 842910,
"authorIsChannelOwner": false,
"hasCreatorHeart": true,
"isPinned": false,
"replyToCid": null,
"scrapedAt": "2026-06-21T09:00:00.000Z"
}

Tips for Best Results

Sorting Strategy

  • Use Top comments to get comments that received the most engagement and user reactions.
  • Use Newest first to monitor real-time community engagement or recent feedback.

Performance Optimization

  • Set maxConcurrency appropriately to balance scraping speed and run stability.
  • When running large batches of videos, start with smaller comment limits to test your workflow.

Integrations

Connect your data with:

  • Google Sheets — Export for team collaboration and reporting
  • Airtable — Build structured customer review databases
  • Slack — Notify your team of critical comments or reviews
  • Webhooks — Automate integrations with custom endpoints

Export Formats

  • JSON — For developer workflows and API systems
  • CSV — For easy loading into spreadsheet tools
  • Excel — For local analysis and business metrics

Frequently Asked Questions

Does it support replies?

Yes, replies to comments are automatically extracted and linked to their parent comments via replyToCid.

Can I scrape multiple videos at once?

Yes. Simply input multiple YouTube video URLs into the startUrls array parameter.

How are dates normalized?

Relative dates like "3 days ago" or "1 year ago" are resolved into normalized ISO timestamps under publishedAt.


Support

For issues or feature requests, contact support through the Apify Console.

Resources


This actor is designed for legitimate data collection purposes. Users are responsible for ensuring compliance with website terms of service and applicable laws. Use data responsibly and respect rate limits.