YouTube Data Scraper & AI Analyzer - Complete API Solution πŸŽ₯πŸ€– avatar
YouTube Data Scraper & AI Analyzer - Complete API Solution πŸŽ₯πŸ€–

Pricing

from $10.00 / 1,000 results

Go to Apify Store
YouTube Data Scraper & AI Analyzer - Complete API Solution πŸŽ₯πŸ€–

YouTube Data Scraper & AI Analyzer - Complete API Solution πŸŽ₯πŸ€–

Extract comprehensive YouTube data and get AI-powered insights with this professional-grade Apify Actor. Scrape videos, channels, comments, live streams, and more - then analyze with advanced AI for sentiment, topics, and engagement metrics.

Pricing

from $10.00 / 1,000 results

Rating

0.0

(0)

Developer

mikolabs

mikolabs

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Share

Extract comprehensive YouTube data and get AI-powered insights with this professional-grade Apify Actor. Scrape videos, channels, comments, live streams, and more - then analyze with advanced AI for sentiment, topics, and engagement metrics.

Perfect for: Content creators, marketers, researchers, data analysts, and businesses monitoring YouTube presence.


🌟 Why Choose This YouTube Scraper?

βœ… 16 Data Types - Most comprehensive YouTube scraper available
βœ… AI-Powered Analysis - Sentiment, summarization, topic extraction with OpenAI GPT
βœ… Official API Only - 100% compliant with YouTube Terms of Service
βœ… Pay-Per-Use - Only pay for what you scrape
βœ… No Coding Required - Simple configuration, instant results
βœ… Export Ready - JSON, CSV, Excel, Google Sheets integration


πŸ“Š What Can You Extract?

Core YouTube Data

1. Video Details πŸ“Ή

Extract complete video metadata:

  • Title, description, tags
  • View count, like count, comment count
  • Duration, publish date, category
  • Thumbnails (all resolutions)
  • Channel information

2. Channel Information πŸ“Ί

Get comprehensive channel stats:

  • Subscriber count, total videos
  • Total views, country
  • Channel description, custom URL
  • Upload playlist ID
  • Creation date

3. Comments & Replies πŸ’¬

Scrape full comment threads:

  • Comment text and author
  • Like counts, reply counts
  • All nested replies
  • Publish timestamps
  • Author channel IDs

4. Search Results πŸ”

Find videos by keywords:

  • Matching videos for any search query
  • Video metadata and stats
  • Channel information
  • Ranked by relevance

Track what's trending:

  • Regional trending (US, IN, GB, etc.)
  • Category-specific (Music, Gaming, News)
  • Real-time trending data
  • Engagement metrics

6. Playlist Contents πŸ“‹

Extract entire playlists:

  • All videos in any playlist
  • Video positions and metadata
  • Playlist creator info

Advanced Features

7. Captions/Subtitles πŸ“

Get available caption tracks:

  • All languages available
  • Auto-generated vs manual
  • Closed captions (CC)
  • Perfect for transcript generation

8. Live Chat Messages πŸ’°

Scrape live stream chats:

  • Real-time chat messages
  • SuperChat donations with amounts
  • Author information
  • Moderator/sponsor status
  • Perfect for donation tracking

9. Live Broadcasts πŸ“‘

Monitor live streams:

  • Scheduled start times
  • Live status tracking
  • Stream metadata
  • Recording status

Find recommended content:

  • YouTube's recommendation algorithm
  • Related video suggestions
  • Build content networks

11. Channel Activities πŸ“Š

Track channel behavior:

  • Recent uploads
  • Liked videos
  • Activity timeline
  • Content patterns

12. Video Categories 🏷️

Get all YouTube categories:

  • Music, Gaming, Education
  • News, Entertainment, Sports
  • Region-specific categories

13-16. Plus More!

  • Channel subscriptions
  • Channel sections (featured content)
  • Supported languages
  • Supported regions

πŸ€– AI-Powered Analysis (Optional)

Unlock deep insights with AI analysis powered by OpenAI GPT:

1. Sentiment Analysis 😊😐😒

Understand audience emotions:

  • Positive/Negative/Neutral percentages
  • Overall sentiment score
  • AI-generated sentiment summary
  • Trend analysis over time

Example Output:

{
"sentiment": {
"positive": 68.5,
"negative": 12.3,
"neutral": 19.2,
"overall": "positive",
"summary": "Audience highly appreciates the content quality..."
}
}

2. Comment Summarization πŸ“

Get the big picture instantly:

  • AI-generated summaries of all comments
  • Key themes and opinions
  • Main concerns and praises
  • 3-5 bullet point insights

3. Topic Extraction 🏷️

Discover what people discuss:

  • Main topics and themes
  • Trending keywords
  • Common questions
  • Popular discussion points

4. Engagement Analysis πŸ“ˆ

Understand interaction patterns:

  • Like distribution (high/medium/low)
  • Reply patterns
  • Top commenters
  • Engagement rate calculation

5. Video Performance Scoring 🎯

Rate your video success:

  • Engagement rate: (likes + comments) / views
  • Performance rating: Excellent/Good/Average/Low
  • Virality score (0-100)
  • Like-to-view and comment-to-view ratios

πŸš€ How to Use This Actor

Step 1: Configure Your Scrape

Choose your scrape type and provide the required inputs:

Example: Scrape Video Details

{
"scrapeType": "video",
"videoUrls": [
"https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"https://www.youtube.com/watch?v=VIDEO_ID_2"
]
}

Example: Scrape Comments with AI Analysis

{
"scrapeType": "comments",
"videoUrls": ["https://www.youtube.com/watch?v=VIDEO_ID"],
"maxComments": 500,
"includeReplies": true,
"enableAI": true,
"aiAnalysisType": "all"
}
{
"scrapeType": "trending",
"trendingRegion": "US",
"trendingCategory": "music",
"maxResults": 50
}

Example: Scrape Live Chat

{
"scrapeType": "live_chat",
"liveChatId": "YOUR_LIVE_CHAT_ID",
"maxMessages": 200
}

Step 2: Set Up API Keys

YouTube Data API Key (Required)

  1. Go to Google Cloud Console
  2. Create a new project
  3. Enable YouTube Data API v3
  4. Create credentials β†’ API Key
  5. Copy your API key

Add to Actor input:

{
"apiKey": "YOUR_YOUTUBE_API_KEY"
}

Or set as environment variable: YOUTUBE_API_KEY

OpenAI API Key (Optional - for AI features)

  1. Go to OpenAI Platform
  2. Create account or sign in
  3. Navigate to API Keys
  4. Create new secret key
  5. Copy your API key

Add to Actor input:

{
"openaiApiKey": "YOUR_OPENAI_API_KEY",
"enableAI": true
}

Or set as environment variable: OPENAI_API_KEY

Step 3: Run the Actor

Click Start and the Actor will:

  1. βœ… Connect to YouTube Data API
  2. βœ… Extract your requested data
  3. βœ… Perform AI analysis (if enabled)
  4. βœ… Save results to Dataset

Step 4: Export Your Data

Download results in your preferred format:

  • JSON - For developers and APIs
  • CSV - For Excel and spreadsheets
  • Excel - Ready-to-analyze spreadsheets
  • Google Sheets - Direct integration
  • HTML - Web-ready tables

πŸ“‹ Complete Input Reference

Required Parameters

ParameterTypeDescription
scrapeTypeStringType of data to scrape (see table below)

Scrape Types

Scrape TypeDescriptionRequired Input
videoVideo details and metadatavideoUrls
channelChannel information and statschannelUrls
commentsComments and reply threadsvideoUrls
searchSearch YouTube videossearchQueries
trendingTrending videos by regiontrendingRegion
playlistPlaylist contentsplaylistUrls
captionsAvailable caption tracksvideoUrls
categoriesVideo categoriestrendingRegion
live_broadcastsLive stream informationchannelUrls
live_chatLive chat messagesliveChatId
activitiesChannel recent activitieschannelUrls
subscriptionsChannel subscriptionschannelUrls
related_videosRelated/recommended videosvideoUrls
channel_sectionsChannel featured sectionschannelUrls
languagesSupported languagesNone
regionsSupported regionsNone

Optional Parameters

ParameterTypeDefaultDescription
videoUrlsArray[]YouTube video URLs
channelUrlsArray[]YouTube channel URLs
playlistUrlsArray[]YouTube playlist URLs
searchQueriesArray[]Search keywords
liveChatIdString-Live chat ID
maxResultsInteger50Max results per query (1-500)
maxCommentsInteger100Max comments per video (1-1000)
maxMessagesInteger200Max live chat messages (1-1000)
includeRepliesBooleantrueInclude comment replies
trendingRegionString"US"Region code (US, IN, GB, etc.)
trendingCategoryString"all"Category (all, music, gaming, movies, news)
apiKeyString-Your YouTube API key (optional if set in env)

AI Analysis Parameters

ParameterTypeDefaultDescription
enableAIBooleanfalseEnable AI-powered analysis
aiAnalysisTypeString"all"Type of AI analysis
openaiApiKeyString-Your OpenAI API key (optional if set in env)

AI Analysis Types:

  • all - Complete analysis (sentiment + summary + topics + engagement)
  • sentiment - Sentiment analysis only
  • summary - AI summarization only
  • topics - Topic extraction only
  • engagement - Engagement metrics only
  • basic - Basic stats without AI (free)

πŸ’° Pricing & Pay-Per-Event

Actor Usage Pricing

This Actor uses Apify's pay-per-event model. You only pay for what you use:

Pricing Events:

  • Actor Start - Charged once per run
  • Task Completed - Charged per scrape type execution

Typical Costs:

  • Scraping 10 videos: ~$0.01-$0.02
  • Scraping 100 comments: ~$0.02-$0.05
  • Scraping trending videos: ~$0.03-$0.06
  • AI analysis (100 comments): ~$0.10-$0.20 (OpenAI cost)

Free Tier: Apify offers free credits for testing!

API Quota Costs

YouTube Data API v3

  • Free quota: 10,000 units/day
  • Video details: 1 unit per video
  • Comments: 1 unit per request (~100 comments)
  • Search: 100 units per request
  • Live chat: 5 units per request

Most users stay within the free quota!

OpenAI API (Optional - for AI features)

  • GPT-3.5-turbo: ~$0.002 per 1,000 tokens
  • Average analysis: 500-1000 tokens
  • Cost per analysis: ~$0.001-$0.002

Example Costs:

  • 100 comments analyzed: ~$0.10-$0.20
  • 500 comments analyzed: ~$0.50-$1.00
  • 1000 comments analyzed: ~$1.00-$2.00

πŸ’‘ Tip: Use aiAnalysisType: "basic" for free analysis without OpenAI!


🎯 Use Cases & Applications

For Content Creators 🎬

  • Audience Sentiment - Understand how viewers feel about your content
  • Engagement Tracking - Monitor likes, comments, and shares
  • Competitor Analysis - See what works for similar channels
  • Trend Identification - Discover trending topics in your niche
  • Comment Management - Export and analyze all comments

For Digital Marketers πŸ“ˆ

  • Brand Monitoring - Track brand mentions and sentiment
  • Influencer Research - Find and analyze influencers
  • Campaign Performance - Measure video marketing ROI
  • Market Research - Understand audience preferences
  • Competitor Intelligence - Monitor competitor content

For Researchers & Analysts πŸ“Š

  • Social Media Research - Academic and market research
  • Sentiment Studies - Large-scale sentiment analysis
  • Trend Analysis - Identify and track trends
  • Dataset Creation - Build ML/AI training datasets
  • Network Analysis - Map content relationships

For Businesses πŸ’Ό

  • Customer Feedback - Analyze product reviews and feedback
  • Support Insights - Identify common customer questions
  • Crisis Management - Monitor negative sentiment
  • Product Research - Understand market demand
  • Competitive Intelligence - Track competitor activity

For Developers πŸ’»

  • API Integration - Build YouTube data into your apps
  • ML/AI Training - Create training datasets
  • Recommendation Systems - Build content recommenders
  • Analytics Dashboards - Power real-time dashboards
  • Automation - Automate YouTube monitoring

πŸ“€ Data Export & Integration

Export Formats

  • βœ… JSON - Perfect for APIs and developers
  • βœ… CSV - Import into Excel, Google Sheets
  • βœ… Excel - Ready-to-analyze spreadsheets
  • βœ… XML - Enterprise system integration
  • βœ… RSS - Feed readers and aggregators
  • βœ… HTML - Web-ready tables

Integrations

  • βœ… Google Sheets - Direct export to spreadsheets
  • βœ… Slack - Real-time notifications
  • βœ… Email - Automated reports
  • βœ… Webhooks - Custom integrations
  • βœ… Zapier - Connect to 5,000+ apps
  • βœ… Make (Integromat) - Advanced automation

API Access

Access your data programmatically:

// Get dataset items via Apify API
const dataset = await client.dataset('DATASET_ID').listItems();

⚑ Performance & Limits

Speed

  • Video scraping: ~100 videos in 2 minutes
  • Comment scraping: ~500 comments in 1 minute
  • AI analysis: ~100 comments in 30 seconds
  • Batch processing: Process multiple URLs simultaneously

Limits

  • Max results per request: 500
  • Max comments per video: 1,000
  • Max live chat messages: 1,000
  • YouTube API quota: 10,000 units/day (free tier)

Optimization Tips

  • Use specific scrape types instead of scraping everything
  • Set appropriate maxResults to avoid unnecessary API calls
  • Use aiAnalysisType: "basic" when AI isn't needed
  • Schedule runs during off-peak hours for better performance

πŸ”’ Security & Compliance

100% Compliant

  • βœ… Uses official YouTube Data API v3 only
  • βœ… Fully compliant with YouTube Terms of Service
  • βœ… No unofficial scraping or API abuse
  • βœ… Respects video and channel privacy settings
  • βœ… Automatic rate limiting and error handling

Data Security

  • βœ… API keys stored securely as environment variables
  • βœ… No data stored permanently (only in your dataset)
  • βœ… GDPR compliant data handling
  • βœ… Secure HTTPS connections only

Privacy

  • βœ… Only public data is accessible
  • βœ… Private videos and comments are not scraped
  • βœ… Respects channel privacy settings
  • βœ… No personal data collection

πŸ› οΈ Troubleshooting

"No API key provided"

Solution: Add your YouTube API key to the input or set YOUTUBE_API_KEY environment variable.

"Quota exceeded"

Solution: You've reached YouTube's daily API quota (10,000 units). Wait 24 hours or request a quota increase from Google Cloud Console.

"Video not found"

Solution: The video may be private, deleted, or age-restricted. Verify the URL is correct and the video is public.

"Comments disabled"

Solution: The video owner has disabled comments. This is expected behavior.

"Live chat not found"

Solution: The live chat ID must be from an active or recently ended live stream.

"AI analysis failed"

Solution: Check your OpenAI API key is valid and you have sufficient credits. The Actor will fall back to basic analysis automatically.


πŸ“ž Support & Resources

Documentation

Get API Keys

Need Help?

  • πŸ’¬ Contact Apify support
  • πŸ“§ Check the Actor's issue tracker
  • πŸ“š Review example inputs in the Actor's repository

🌟 Key Features Summary

βœ… 16 Scrape Types - Most comprehensive YouTube data extraction
βœ… AI Analysis - 6 types of AI-powered insights
βœ… Official API - 100% YouTube TOS compliant
βœ… Pay-Per-Use - Only pay for what you scrape
βœ… No Coding - Simple JSON configuration
βœ… Batch Processing - Scrape multiple URLs at once
βœ… Export Ready - JSON, CSV, Excel, Google Sheets
βœ… Integrations - Slack, Email, Webhooks, Zapier
βœ… Fast - Process 100s of videos in minutes
βœ… Secure - GDPR compliant, secure API handling


πŸš€ Get Started Now

  1. Click "Try for Free" to test the Actor
  2. Configure your scrape using the examples above
  3. Add your API keys (YouTube required, OpenAI optional)
  4. Click "Start" and get your data in seconds!

πŸ“Š Example Output

Video Details

{
"type": "video",
"id": "dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up",
"viewCount": 1400000000,
"likeCount": 15000000,
"commentCount": 2500000,
"duration": "PT3M33S",
"tags": ["rick astley", "music", "80s"]
}

AI Analysis

{
"type": "ai_analysis",
"sentiment": {
"positive": 72.5,
"negative": 8.3,
"neutral": 19.2,
"overall": "positive"
},
"summary": "β€’ Viewers love the nostalgic value\nβ€’ Many appreciate the music quality\nβ€’ Positive reception overall",
"topics": ["nostalgia", "music quality", "80s music", "meme culture"]
}

Built with ❀️ for YouTube data enthusiasts

100% Official API | Fully Compliant | Production Ready

Start extracting YouTube insights today!