
Youtube Comments Api
Pricing
$20.00/month + usage

Youtube Comments Api
This alternative YouTube Data API has no limits or quotas. Extract YouTube comments data from any YouTube video via Url or VideoId: full comment text, posting date, author username, video title, videoId. Download YouTube comments in JSON, CSV, and Excel.
5.0 (1)
Pricing
$20.00/month + usage
0
3
3
Last modified
19 days ago
YouTube Comments Api for Apify
Professional YouTube comments api actor for Apify platform
This documentation provides complete integration guide for creating an Apify actor that downloads YouTube video comments. No API keys required.
π― Overview
What This Actor Does
- Extracts comments from any public YouTube video
- Supports multiple languages and sorting options
- Returns structured data perfect for analysis
- Handles large datasets efficiently
- No YouTube API quotas or restrictions
Key Features
- β No API Key Required - Uses direct scraping approach
- β Flexible Input - Accepts video URLs or IDs
- β Language Support - Multiple language options
- β Sorting Options - Top comments or newest first
- β Scalable - Handle any number of comments
- β Rich Metadata - Complete comment information
- β Error Handling - Robust error management
π Input Schema
Input Parameters
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
urlOrVideoId | Array[String] | β Yes | - | YouTube video URLs or video IDs |
language | String | β Yes | "en" | Language code (en, tr, es, fr, de, it) |
max_comments | Number | β Yes | 50 | Maximum comments per video |
sortBy | String | β Yes | "top" | Sort method: "top" or "newest" |
Input Examples
Basic Input
{"language": "en","max_comments": 50,"sort_by": "newest","urlOrVideoId": "https://www.youtube.com/watch?v=mnF3sUfyNRI"}
π€ Output Schema
Output Structure
Each video produces an output record with the following 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": 50,"sort_by": "newest","language": "en","total_downloaded": 50},"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},...],"summary": {"total_comments": 50,"main_comments": 50,"replies": 0,"hearted_comments": 0,"pinned_comments": 0}}]
π Performance Guidelines
Best Practices
- Batch Size: Process 10-50 videos per run for optimal performance
- Memory: Allocate at least 512MB for large comment sets
- Timeout: Set timeout to 15-30 minutes for large datasets
- Error Handling: Always include error handling for failed videos
- Rate Limiting: Add delays between requests if processing many videos
π¨ Error Handling
Common Errors and Solutions
Video Unavailable
{"videoUrl": "https://www.youtube.com/watch?v=INVALID","error": true,"errorMessage": "Video unavailable: INVALID","processedAt": "2023-12-01T10:30:00.000Z"}
Comments Disabled
{"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ","error": true,"errorMessage": "Comments disabled: dQw4w9WgXcQ","processedAt": "2023-12-01T10:30:00.000Z"}
Invalid URL
{"videoUrl": "invalid-url","error": true,"errorMessage": "Invalid YouTube URL or video ID: invalid-url","processedAt": "2023-12-01T10:30:00.000Z"}
π Security & Privacy
Data Handling
- Only public comments are extracted
- No personal data beyond public usernames
- Comments are processed as-is from YouTube
- No authentication or login required
Compliance
- Respects YouTube's public content policy
- No rate limiting violations
- Ethical scraping practices
- GDPR compliant for public data
This documentation provides everything needed to create a professional YouTube comment extraction actor for the Apify platform. The solution is scalable, robust, and ready for production use.
On this page
Share Actor: