Best Youtube Comments Scraper avatar

Best Youtube Comments Scraper

Under maintenance
Go to Store
This Actor is under maintenance.

This Actor may be unreliable while under maintenance. Would you like to try a similar Actor instead?

See alternative Actors
Best Youtube Comments Scraper

Best Youtube Comments Scraper

ahmadashfaq/best-youtube-comments-scraper

Extract YouTube comments effortlessly without API keys. Get author names, timestamps, and engagement metrics instantly. Perfect for content creators, marketers & researchers. Avoid rate limits and export to CSV/JSON. Start uncovering audience insights today!

Developer
Maintained by Community

YouTube Comments Scraper Actor

This Apify actor extracts comments from YouTube videos. It scrolls through the comments section and collects information including the author, content, likes, and timestamp for each comment.

Features

  • Extracts comments from any public YouTube video
  • Deduplicates comments using LRU cache
  • Configurable maximum number of comments to extract
  • Handles dynamic loading through scrolling
  • Resource-efficient (blocks unnecessary resources)
  • Comprehensive error handling and logging

Input Parameters

  • videoUrl (required): The URL of the YouTube video to scrape comments from
  • maxComments (optional): Maximum number of comments to extract (default: 100, set to 0 for all comments)

Output Format

1{
2    "videoUrl": "https://www.youtube.com/watch?v=...",
3    "totalComments": 100,
4    "extractedAt": "2024-12-31T...",
5    "comments": [
6        {
7            "author": "User Name",
8            "content": "Comment text",
9            "likes": 42,
10            "timestamp": "2 months ago",
11            "extractedAt": "2024-12-31T..."
12        }
13        // ... more comments
14    ]
15}

Usage

  1. Input the YouTube video URL
  2. Set the maximum number of comments to extract (optional)
  3. Run the actor
  4. Download results in JSON format

Local Development

  1. Install dependencies:

    npm install
  2. Run locally:

    apify run