Youtube Comments Api

Youtube Comments Api

by caa_software

Bypass YouTube API limits. Extract comments, authors, dates, and video data from any video URL into JSON, CSV, or Excel formats with no quotas.

121 runs
20 users
Try This Actor

Opens on Apify.com

About Youtube Comments Api

Tired of hitting YouTube API limits when you're trying to get comment data? I've been there. This actor is basically your go-to workaround for pulling YouTube comments without any of the official API's quotas or restrictions. Just drop in a video URL or VideoID, and it fetches everything you need: the full comment text, when it was posted, the author's username, plus the video's title and ID. It's saved me a ton of time on projects where I needed to analyze sentiment, gather feedback, or just archive discussions. You get the data in clean, ready-to-use formats like JSON, CSV, and Excel, so you can plug it straight into your analysis tools, databases, or spreadsheets. It's perfect for developers building social listening dashboards, researchers studying online communities, or marketers trying to understand audience reactions. No more worrying about daily caps—just reliable access to the comment data you actually need to move your project forward.

What does this actor do?

Youtube Comments Api is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

YouTube Comments API Actor

This Apify actor extracts comments from public YouTube videos without requiring an API key. It uses a direct scraping approach to bypass YouTube API quotas and provides structured data suitable for analysis.

Overview

The actor downloads comments from any public YouTube video. You provide video URLs or IDs, and it returns the comments in a structured JSON format along with video metadata. It handles multiple languages, offers sorting options, and is built to process large numbers of comments efficiently.

Key Features

  • No API Key Required: Operates via direct scraping, avoiding YouTube API limits.
  • Flexible Input: Accepts an array of YouTube video URLs or video IDs.
  • Configurable Output: Control the number of comments, sort order (top or newest), and language.
  • Structured Data: Returns rich metadata for each comment (author, likes, reply count, timestamps) and a summary for each video.
  • Built-in Error Handling: Manages common issues like unavailable videos, disabled comments, or invalid URLs gracefully.

How to Use

Configure the actor run with an input JSON object. The main required parameter is urlOrVideoId, which is an array containing one or more video identifiers.

Input Schema

Parameter Type Required Default Description
urlOrVideoId Array[String] Yes - YouTube video URLs or video IDs (e.g., mnF3sUfyNRI).
language String Yes "en" Language code for the interface (en, tr, es, fr, de, it).
max_comments Number Yes 50 Maximum number of comments to retrieve per video.
sortBy String Yes "top" Sort method: "top" or "newest".

Input Example

{
  "urlOrVideoId": ["https://www.youtube.com/watch?v=mnF3sUfyNRI"],
  "language": "en",
  "max_comments": 100,
  "sortBy": "newest"
}

Output

The actor outputs a dataset where each item corresponds to one processed video. The output contains the video info, the settings used, an array of comments, and a summary.

Output Structure

{
  "video_info": {
    "video_id": "mnF3sUfyNRI",
    "video_url": "https://www.youtube.com/watch?v=mnF3sUfyNRI",
    "download_date": "2025-09-03T20:22:16.881390",
    "downloader": "youtube-comments-api"
  },
  "settings": {
    "max_comments": 100,
    "sort_by": "newest",
    "language": "en",
    "total_downloaded": 95
  },
  "comments": [
    {
      "comment_id": "Ugz_xHS6GebfPxWhAjt4AaABAg",
      "author": "@sandro6411",
      "author_channel_id": "UCkAr1IWgyEBfp49BamNnVTw",
      "text": "what's up with speed's voice ?",
      "time_text": "1 minute ago",
      "time_parsed": 1756930876.09903,
      "like_count": "0",
      "reply_count": 0,
      "is_reply": false,
      "parent_id": null,
      "is_hearted": false,
      "is_pinned": false,
      "is_verified": false
    }
    // ... more comments
  ],
  "summary": {
    "total_comments": 95,
    "main_comments": 90,
    "replies": 5,
    "hearted_comments": 1,
    "pinned_comments": 0
  }
}

If a video cannot be processed (e.g., unavailable, comments disabled), an error object is returned for that specific video, allowing the rest of the batch to complete.

Performance & Best Practices

  • Batch Size: Process 10-50 videos per run for optimal performance.
  • Resource Allocation: Allocate at least 512MB of memory for large comment sets.
  • Timeout: Set the actor timeout to 15-30 minutes when processing many videos or a high max_comments value.
  • Error Handling: Check the output for error objects on individual video failures.

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Youtube Comments Api now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
caa_software
Pricing
Paid
Total Runs
121
Active Users
20
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support