Fast YouTube Scraper API - Extract Videos, Channels, Playlists avatar
Fast YouTube Scraper API - Extract Videos, Channels, Playlists

Pricing

Pay per event

Go to Apify Store
Fast YouTube Scraper API - Extract Videos, Channels, Playlists

Fast YouTube Scraper API - Extract Videos, Channels, Playlists

YouTube Scraper API - extract videos from channels, playlists, searches, trending & Shorts with one powerful actor. Transparent event-based pricing from $0.005/video, 30-100 free items per query, 10-19 videos/sec, rich JSON output, no proxies or login - perfect for research & analytics.

Pricing

Pay per event

Rating

0.0

(0)

Developer

API Dojo

API Dojo

Maintained by Community

Actor stats

0

Bookmarked

11

Total users

9

Monthly active users

14 hours ago

Last modified

Share

๐Ÿ“บ YouTube Scraper API - Extract Videos, Channels, Playlists & Metadata at Scale

Extract videos, channels, playlists, search results, trending content, and Shorts from YouTube-no API keys, no proxy setup required.

Scrape @MrBeast, @kurzgesagt, any playlist, or search query in seconds. Get video metadata, engagement metrics (views, likes, comment counts), channel statistics, captions, and 50+ data fields in clean JSON/CSV format.

Simple pricing: $0.015 per channel/search query includes 30 FREE videos. Additional videos just $0.0005 each.

๐Ÿ’ฐ Pricing: $0.015/query (30 videos FREE) + $0.0005/video
โšก Speed: 10-20 videos/second
๐Ÿ“Š Output: JSON/CSV with 50+ fields per video
๐ŸŒ Coverage: 100+ languages, all countries
๐Ÿš€ Start now: Proxy handled โ€ข API & MCP ready

Why Teams Choose This Scraper

  • โœ… 10-19 videos/second - High-speed extraction (varies by query type and region)
  • โœ… 30-100 free videos per query - Generous free tier included
  • โœ… No API key required - Works without official YouTube Data API access
  • โœ… No proxy setup - Infrastructure handled automatically on Apify
  • โœ… 7 query types - Videos, channels, playlists, search, trending, Shorts, handles
  • โœ… MCP compatible - Works with AI agents and LLM workflows
  • โœ… 100+ languages - Localized results via gl and hl parameters

Ideal for competitor analysis, content tracking, influencer research, market intelligence, and ML dataset building.

Use this if you needChannel/playlist/search/trending/Shorts metadata at scale
ReturnsJSON/CSV; key fields: id, title, views, likes, comments (count), channel, captions
Typical speed10-19 videos/sec depending on query type
Pricing$0.015/query (30 videos FREE), then $0.0005/video

๐Ÿ“‹ Table of Contents

๐Ÿงญ What Does YouTube Scraper Do?

YouTube scraping automates the extraction of video metadata, channel statistics, playlist content, engagement metrics, and search results from YouTube.com. This enables content analysis, competitor monitoring, influencer research, trend tracking, and building ML datasets at scale.

The Api Dojo YouTube Scraper is a powerful, all-in-one actor built to extract videos, channels, playlists, searches, trending content, and Shorts. Collect structured metadata quickly and reliably-without API keys or complex setup.

This scraper serves as a practical alternative to the official YouTube Data API for bulk extraction. No quota limits, no API key management-just straightforward data access through Apify's infrastructure.

Complete YouTube Entity Coverage

This scraper understands and extracts all core YouTube entities:

EntityWhat You GetUse Case
๐ŸŽฌ YouTube VideoTitle, description, views, likes, comments, duration, thumbnails, streaming URLs, captionsVideo analytics, content research
๐Ÿ‘ค YouTube ChannelName, handle, subscriber count, video count, thumbnails, badges, verificationChannel analysis, influencer discovery
๐Ÿ“‹ YouTube PlaylistAll videos in playlist, playlist metadata, video orderContent curation, course analysis
๐Ÿ’ฌ YouTube CommentComment text, author, likes, replies (via Comments Scraper)Sentiment analysis, audience insights
๐ŸŽฅ YouTube ShortsShort-form video data with full metadataShorts trend tracking
๐Ÿ“บ YouTube Live StreamLive status, streaming data, real-time metricsLive content monitoring
๐Ÿ” YouTube Search ResultsVideos matching keywords with filtersKeyword research, content discovery
๐Ÿ“ˆ YouTube TrendingCurrently trending videos by countryTrend analysis, viral content

โšก Features & YouTube Entity Coverage

Complete, structured access to YouTube's public data-videos, channels, playlists, search, trending, and Shorts. Built for content analysis and growth intelligence at scale.

7 Query Types for Complete Coverage

Query TypeWhat It ExtractsExample Input
๐ŸŽฌ Single VideoDetailed data from individual videoshttps://www.youtube.com/watch?v=VIDEO_ID
๐Ÿ‘ค ChannelAll videos from any YouTube channelhttps://www.youtube.com/@MrBeast
๐Ÿ“‹ PlaylistComplete playlists with all video datahttps://www.youtube.com/playlist?list=ID
๐Ÿ” SearchVideos matching specific keywordsmachine learning tutorial
๐Ÿ“ˆ TrendingCurrently trending videos by countrygetTrending: true
๐ŸŽฅ ShortsYouTube Shorts from channelsincludeShorts: true
๐Ÿ”ฅ HandleChannels by handle (@username)@kurzgesagt

Core Features

FeatureDescriptionBenefit
๐Ÿ’ฐ Event-Based PricingPay only for videos you extract-no subscriptionsCost control: Only pay for what you scrape
๐ŸŽ 30-100 Free VideosGenerous free tier with every queryBudget-friendly: Substantial free data
โšก 10-19 Videos/SecondHigh-speed extraction across all query typesTime savings: Extract thousands in minutes
๐Ÿ”‘ No API Key RequiredWorks without YouTube Data API accessSimple: No quota limits or API setup
๐Ÿš€ No Proxy SetupInfrastructure handled on ApifyCost savings: No proxy management
๐ŸŒ 100+ LanguagesMulti-language and country supportGlobal: Localized content extraction
๐Ÿ“… Advanced FiltersUpload date, duration, features, sortingPrecision: Target specific content
๐ŸŽฏ Query WizardBuild queries without technical knowledgeEasy: No coding required
๐Ÿ“Š Rich Metadata50+ fields including captions and streaming URLsComplete: All video data in one call
๐Ÿค– MCP CompatibleWorks with AI agents and LLM workflowsFuture-ready: AI-native integration
๐Ÿ“ฅ JSON/CSV ExportClean structured output for analysisIntegration-ready: Direct pipeline import

๐Ÿ’ฐ Pricing: Transparent Event-Based Costs

Pay-per-use pricing with no subscriptions, hidden fees, or monthly minimums. Significantly more affordable than most alternatives for bulk extraction.

๐Ÿ“Š Event Costs by Query Type

Event TypePriceFree Videos IncludedWhat Triggers It
Playlist Query$0.05100 videos FREEScraping a YouTube playlist
Trending Query$0.02550 videos FREEGetting trending videos
Shorts Query$0.0240 videos FREEWhen includeShorts is enabled
Channel Query$0.01530 videos FREEScraping a YouTube channel
Search Query$0.01530 videos FREEPerforming a keyword search
Single Video Query$0.005Flat rateFetching a single video
Dataset Item$0.0005N/AEach video beyond free quota

๐Ÿ’ก How Charges Work

Playlist Queries ($0.05):

  • Each query includes 100 videos FREE
  • Additional videos beyond 100 cost $0.0005 each

Trending Queries ($0.025):

  • Each query includes 50 videos FREE
  • Additional videos beyond 50 cost $0.0005 each

Channel/Search Queries ($0.015):

  • Each query includes 30 videos FREE
  • Additional videos beyond 30 cost $0.0005 each

Single Video Queries ($0.005):

  • Flat rate per video (returns 1 video per query)
  • No additional charges

๐Ÿ“ˆ Cost Examples

ScenarioChargesCalculationTotal Cost
1 channel, 30 videos1 channel query$0.015$0.015
1 channel, 200 videos1 query + 170 items$0.015 + ($0.0005 ร— 170)$0.100
1 playlist, 100 videos1 playlist query$0.05$0.050
1 playlist, 500 videos1 query + 400 items$0.05 + ($0.0005 ร— 400)$0.250
5 searches, 300 videos5 queries + 150 items($0.015 ร— 5) + ($0.0005 ร— 150)$0.150
Trending, 100 videos1 query + 50 items$0.025 + ($0.0005 ร— 50)$0.050
10 single videos10 queries$0.005 ร— 10$0.050
10,000 videosMultiple queries + itemsVaries by source~$5.00

๐Ÿ’ก Pro Tip
Each query includes generous FREE videos! This makes YouTube data collection incredibly cost-effective for market research, content analysis, and YouTube data for machine learning projects.

๐Ÿš Input Parameters

Flexible input options for targeting multiple YouTube data surfaces - videos, channels, playlists, search, trending, and Shorts - with simple configuration.

FieldTypeDescriptionDefault
startUrlsarrayYouTube URLs (Video, Channel, Playlist, Shorts, Search)[]
youtubeHandlesarrayYouTube handles (e.g., @MrBeast, @kurzgesagt)[]
keywordsarraySearch keywords for YouTube search[]
getTrendingbooleanRetrieve currently trending videosfalse
includeShortsbooleanInclude YouTube Shorts from channelsfalse
glstringCountry code (US, GB, DE, etc.)US
hlstringLanguage code (en, es, de, etc.)en
uploadDatestringFilter: any, hour, today, week, month, yearall
durationstringFilter: any, short, longall
featuresstringFilter: 4k, hd, live, movie, cc, subtitles, etc.all
sortstringSort: relevance, upload_date, view_count, ratingr
maxItemsintegerMaximum total videos to outputInfinity
customMapFunctionstringJavaScript function to transform outputnull

Note: Provide at least one of: startUrls, youtubeHandles, keywords, or enable getTrending.

Supported URL Types

URL TypeFormatExample
๐ŸŽฌ Single Videohttps://www.youtube.com/watch?v=IDhttps://www.youtube.com/watch?v=dQw4w9WgXcQ
๐Ÿ‘ค Channelhttps://www.youtube.com/@handlehttps://www.youtube.com/@MrBeast
๐Ÿ“‹ Playlisthttps://www.youtube.com/playlist?list=IDhttps://www.youtube.com/playlist?list=PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf
๐Ÿ” Searchhttps://www.youtube.com/results?search_query=keywordhttps://www.youtube.com/results?search_query=AI
๐ŸŽฅ Shortshttps://www.youtube.com/shorts/IDhttps://www.youtube.com/shorts/abc123
๐Ÿ“บ Channel Shortshttps://www.youtube.com/@handle/shortshttps://www.youtube.com/@MrBeast/shorts

๐Ÿ’ก YouTube Scraper Strategy Guide

Choose the right strategy based on your data needs and budget. Each approach optimizes for different YouTube data extraction use cases.

Strategy 1: Scrape YouTube Channel (Creator Analysis)

Best for: YouTube competitor analysis, influencer research, content performance tracking

{
"startUrls": ["https://www.youtube.com/@kurzgesagt"],
"maxItems": 200
}
Cost BreakdownCalculation
1 channel query$0.015
170 additional videos$0.0005 ร— 170 = $0.085
Total$0.100

Use case: Extract complete channel data for YouTube channel statistics API analysis, content strategy research, and creator benchmarking.


Strategy 2: Scrape YouTube Playlist (Course/Series Analysis)

Best for: Educational content research, playlist curation, series analysis

{
"startUrls": ["https://www.youtube.com/playlist?list=PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf"],
"maxItems": 500
}
Cost BreakdownCalculation
1 playlist query$0.05
400 additional videos$0.0005 ร— 400 = $0.200
Total$0.250

Use case: Extract complete playlist for course analysis, content curation, and YouTube playlist research.


Strategy 3: YouTube Search Scraping (Keyword Research)

Best for: YouTube keyword search API, content discovery, market research

{
"keywords": ["machine learning tutorial", "AI for beginners"],
"hl": "en",
"gl": "US",
"uploadDate": "month",
"maxItems": 200
}
Cost BreakdownCalculation
2 search queries$0.015 ร— 2 = $0.030
140 additional videos$0.0005 ร— 140 = $0.070
Total$0.100

Use case: Scrape YouTube search results for keyword research, content gap analysis, and YouTube trending videos API discovery.


Best for: Viral content discovery, trend tracking, cultural analysis

{
"getTrending": true,
"gl": "US",
"maxItems": 100
}
Cost BreakdownCalculation
1 trending query$0.025
50 additional videos$0.0005 ร— 50 = $0.025
Total$0.050

Use case: Track YouTube trending videos for viral content analysis and cultural trend research.


Strategy 5: Single Video Extraction (Specific Content)

Best for: Competitor video analysis, viral content study, specific video data

{
"startUrls": [
"https://www.youtube.com/watch?v=xuCn8ux2gbs",
"https://www.youtube.com/watch?v=kXYiU_JCYtU"
]
}
Cost BreakdownCalculation
2 single video queries$0.005 ร— 2 = $0.010
Total$0.010

Use case: Get detailed YouTube video stats API data for specific videos.


Strategy 6: Channel + Shorts (Complete Creator Data)

Best for: Full creator analysis including short-form content

{
"youtubeHandles": ["@MrBeast"],
"includeShorts": true,
"maxItems": 200
}
Cost BreakdownCalculation
1 channel query$0.015
1 shorts query$0.02
130 additional videos$0.0005 ร— 130 = $0.065
Total$0.100

Use case: Complete creator analysis including YouTube Shorts for comprehensive content strategy research.


Strategy Comparison Table

StrategyBest ForCost per 100 VideosFree Videos
๐Ÿ‘ค ChannelCreator analysis$0.05030
๐Ÿ“‹ PlaylistCourse/series$0.050100
๐Ÿ” SearchKeyword research$0.05030 per keyword
๐Ÿ“ˆ TrendingTrend analysis$0.05050
๐ŸŽฌ Single VideoSpecific content$0.005/videoN/A
๐ŸŽฅ Channel + ShortsFull creator$0.06570

Pro Tips for Cost Optimization

โœ… Maximize Free Videos

  • Use playlists - 100 free videos per playlist query
  • Batch channels - 30 free videos per channel
  • Combine searches - 30 free videos per keyword

โœ… Control Spending

  • Set maxItems - Limit total videos to control costs
  • Use filters - Narrow results with uploadDate, duration, features
  • Start small - Test with 50-100 videos before scaling

๐Ÿ“ฆ Output

Clean, structured JSON output with comprehensive video information. Each video object contains 50+ fields.

Minimal Example (Core Fields)

{
"id": "lfR7Qj04-UA",
"title": "The Ultimate Pixel Art Tutorial",
"url": "https://www.youtube.com/watch?v=lfR7Qj04-UA",
"description": "Learn pixel art fundamentals in this comprehensive tutorial...",
"duration": 854,
"views": 1997072,
"likes": 93698,
"comments": 1449,
"channel": {
"id": "UCMLJ_TROV89ll587opuuY4w",
"name": "Saultoons",
"handle": "/@saultoons",
"subscriberCount": "177K subscribers",
"badges": ["Verified"]
},
"keywords": ["pixel art tutorial", "pixel art", "aseprite"],
"category": "Entertainment",
"publishDate": "2021-06-17T10:46:54-07:00",
"isLive": false,
"isFamilySafe": true
}

Field Availability Guarantees

Understanding which fields are always present vs. conditionally available helps you build reliable integrations.

FieldAvailabilityData TypeNotes
idโœ… AlwaysstringUnique video ID
urlโœ… AlwaysstringFull video URL
titleโœ… AlwaysstringVideo title
channel.idโœ… AlwaysstringChannel ID
channel.nameโœ… AlwaysstringChannel display name
viewsโœ… AlwaysintegerTotal view count
durationโœ… AlwaysintegerLength in seconds
publishDateโœ… AlwaysISO-8601Publication timestamp
likesโš ๏ธ SometimesintegerHidden on some videos
commentsโš ๏ธ SometimesintegerDisabled on some videos
captionsโš ๏ธ SometimesarrayNot all videos have captions
streamingDataโš ๏ธ SometimesobjectMay be restricted; optional field
descriptionโš ๏ธ SometimesstringMay be empty

Note: streamingData contains direct video URLs in multiple qualities. This field is optional and may not be available for all videos (age-restricted, geo-blocked, or premium content). Use customMapFunction to exclude it if not needed.

Export Options

  • JSON: Complete datasets with nested objects-ideal for programmatic processing
  • CSV: Direct download from Apify Console-perfect for spreadsheets and databases
  • API: RESTful endpoints for Python, Node.js, or any HTTP client

๐Ÿงฉ Custom Map Function

Transform output using the customMapFunction parameter. This JavaScript function receives each video object and returns your desired format-add engagement metrics, flatten channel data, or calculate custom analytics.

Important: Custom map function is for data transformation-not for filtering. Filtering items may result in automatic restrictions.

Example: Engagement Rate Calculation

(object) => ({
...object,
engagementRate: (object.likes / object.views * 100).toFixed(2),
channelName: object.channel?.name,
subscriberCount: object.channel?.subscriberCount,
durationMinutes: Math.floor(object.duration / 60),
isViral: object.views > 1000000,
streamingData: undefined,
captions: undefined
})

Common Transformations

Use CaseWhat to Add
Engagement AnalysisengagementRate, likesToViews, performanceScore
Channel FlatteningchannelName, subscriberCount, isVerified
Viral DetectionisViral, viralTier, viewsPerDay
Data CleanupSet streamingData: undefined, captions: undefined

โš–๏ธ YouTube Data API vs Scraper Comparison

Choosing between the official YouTube Data API and a scraper depends on your use case, volume, and budget. Here's an honest comparison.

FactorOfficial YouTube Data APIYouTube Scraper (This Tool)
Quota limits10,000 units/day (strict)No quota limits
Setup complexityOAuth, API keys, project setupNo setup-runs on Apify
Cost at scaleFree tier, then complex pricing$0.50 per 1,000 videos
Data coverageOfficial but limited fields50+ fields including streaming URLs
Rate limitingAggressive throttlingManaged automatically
Comment threadsRequires separate API callsUse Comments Scraper
ComplianceOfficial, ToS-compliantPublic data extraction

When to Use the Official API

  • You need write access (upload, modify playlists)
  • Your app requires OAuth user authentication
  • You're building a production app that needs official support
  • Volume is low (<10K requests/day)

When to Use This Scraper

  • You need bulk data extraction (10K+ videos)
  • You want no quota limits or API key management
  • You need additional fields not in the official API
  • You're doing research, analysis, or ML training
  • You want predictable, transparent pricing

๐Ÿ›ก๏ธ Reliability & Limitations

Transparency about what this scraper can and cannot do helps you plan integrations and set realistic expectations.

What Affects Speed

FactorImpact
Query typePlaylists are faster than searches
RegionSome regions have slower response times
Time of dayPeak hours may be slightly slower
Video availabilityDeleted/private videos are skipped

Typical performance: 10-19 videos/second under normal conditions. Large playlists (1000+ videos) may take longer due to pagination.

Data That May Be Missing

FieldWhen It's Missing
likesCreator has hidden like counts
commentsComments are disabled on the video
captionsNo captions uploaded for the video
streamingDataAge-restricted, geo-blocked, or premium content
descriptionCreator left description empty

Content We Cannot Access

  • โŒ Private videos - Not publicly accessible
  • โŒ Member-only content - Requires channel membership
  • โŒ Age-restricted videos - May have limited data
  • โŒ Geo-blocked content - Depends on Apify server location
  • โŒ Deleted videos - No longer exist on YouTube

Retry Behavior

The scraper automatically retries failed requests with exponential backoff. If a video consistently fails, it's skipped and logged. Check the run log for any skipped items.

Compliance Note

This scraper extracts publicly available data from YouTube. It does not bypass any authentication, access private content, or violate user privacy. Use extracted data responsibly and in accordance with applicable laws and YouTube's Terms of Service.

๐Ÿค– MCP Integration for AI Agents & LLM Workflows

This scraper is MCP (Model Context Protocol) compatible, making it ideal for AI agents, LLM workflows, and automated intelligence systems.

What is MCP?

MCP (Model Context Protocol) is an emerging standard for connecting AI models to external data sources and tools. It enables AI agents like Claude, GPT, and custom LLMs to access real-time YouTube data for analysis, research, and decision-making.

Why MCP Matters for YouTube Data

CapabilityBenefit
Real-time data accessAI agents can query live YouTube trends, not just training data
Structured outputClean JSON format integrates seamlessly with LLM context windows
Automated workflowsTrigger scrapes based on AI agent decisions
Research augmentationEnhance AI research with current video intelligence

MCP Use Cases

  • AI-Powered Content Analysis - LLMs analyze YouTube trends in real-time
  • Automated Competitor Monitoring - AI agents track competitor channels
  • Content Strategy Bots - Automated content research and ideation
  • Brand Monitoring Agents - AI monitors brand mentions and sentiment
  • Research Assistants - AI researchers access current YouTube data

Integration Example

# Example: Using YouTube Scraper with AI agent via Apify API
from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
# Run YouTube Scraper
run = client.actor("apidojo/youtube-scraper").call(run_input={
"keywords": ["AI tutorial"],
"maxItems": 100
})
# Get results for LLM context
dataset = client.dataset(run["defaultDatasetId"]).list_items()
# Feed to AI agent for analysis
youtube_context = json.dumps(dataset.items)
# Pass youtube_context to your LLM/AI agent

Expand your YouTube data extraction capabilities with our complete suite of specialized YouTube scraper APIs. Each tool focuses on specific data types for comprehensive video intelligence.

๐Ÿ“ฆ Complete Apidojo YouTube Scraper Ecosystem

ToolWhat It ExtractsBest For
๐Ÿ“บ YouTube ScraperVideos, channels, playlists, search, trending, ShortsAll-in-one extraction (You are here)
๐Ÿ’ฌ YouTube Comments ScraperComments, replies, user interactionsSentiment analysis, audience insights
๐Ÿ‘ค YouTube Channel ScraperChannel statistics, subscriber dataChannel analysis, influencer research
๐Ÿ“‹ YouTube Playlist ScraperPlaylist videos, course contentEducational content, series analysis

๐ŸŒ Cross-Platform Social Media Scrapers

PlatformToolWhat It Extracts
๐ŸŽต TikTokTikTok ScraperVideos, profiles, hashtags, sounds
๐Ÿ“ธ InstagramInstagram ScraperPosts, profiles, hashtags, comments
๐Ÿฆ TwitterTwitter ScraperTweets, profiles, followers

๐Ÿ”ง Troubleshooting Common Issues

โ“ Getting Fewer Results Than Expected?

Problem: Extraction returns fewer YouTube videos than anticipated

Solutions:

โœ… Check maxItems setting - Increase the limit if you need more videos
โœ… Verify filters - Ensure uploadDate, duration, features aren't too restrictive
โœ… Remember free tiers - Each query includes 30-100 FREE videos automatically


๐Ÿ’ฐ Unexpected Costs?

Problem: Your YouTube Scraper run cost more than anticipated

Solutions:

โœ… Each URL/keyword creates a separate query - 10 channels = 10 ร— $0.015 = $0.15 in base costs
โœ… Playlist queries cost more - $0.05 vs $0.015 for channels, but include 100 free videos
โœ… Use maxItems to cap spending - Set a limit to control total extraction volume


โ“ No Results Returned?

Problem: Extraction completes but returns empty dataset

Solutions:

โœ… Verify input format - Provide at least one of: startUrls, youtubeHandles, keywords, or getTrending
โœ… Check URLs - Must be valid YouTube URLs
โœ… Test filters - Overly restrictive filters may return no results


โ“ Missing Data Fields?

Problem: Some expected fields are missing from output

Solutions:

โœ… Open Storage tab - Full datasets available in Apify Console, not all fields show in preview
โœ… Check video availability - Private or deleted videos won't appear in results

๐ŸŽฏ Use Cases & Industries

This scraper serves professionals who need fast, structured YouTube insights-from competitor analysis to ML dataset building.


๐Ÿ“Š Marketing & Campaign Strategy

Track content performance, analyze trends, and optimize campaigns.

  • Analyze competitor channel strategies
  • Track views, likes, and engagement across campaigns
  • Monitor trending videos for viral opportunities

Example: Benchmark your content against 5 competitor channels.


๐Ÿ”ฌ Research & Data Science

Build large-scale datasets for academic research, NLP, and ML training.

  • Extract 100K+ videos for research datasets
  • Structured JSON/CSV for statistical analysis
  • Analyze cultural trends and social movements

Example: Build a 50K video dataset on climate change content.


๐ŸŽฅ Influencer Marketing

Discover creators, analyze engagement, and measure campaign ROI.

  • Track subscriber counts and engagement rates
  • Vet influencers with channel metadata
  • Discover emerging creators by niche

Example: Find tech creators with 50K-500K subscribers.


๐Ÿข Brand & Competitive Intelligence

Monitor brand mentions and track competitor activity.

  • Track brand mentions in video titles/descriptions
  • Monitor competitor channel growth
  • Analyze sentiment via Comments Scraper

Example: Track brand keywords vs. competitor mentions.


๐ŸŽต Music & Entertainment

Track music trends, discover artists, and analyze audience engagement.

  • Monitor music video performance
  • Discover trending artists and genres
  • Track viral content patterns

Example: Identify emerging artists for talent scouting.


๐Ÿ“ˆ SEO & Content Strategy

Research keywords, analyze rankings, and plan content.

  • Analyze top-ranking videos for target keywords
  • Extract video tags for keyword research
  • Track trending topics for content ideation

Example: Analyze top 100 videos for "Python tutorial".


๐ŸŽ“ Academic & Education

Collect data for media studies, cultural research, and educational content analysis.

  • Build datasets for communication research
  • Analyze educational playlists and courses
  • Track content virality patterns

Example: Analyze how online learning content is structured.

๐Ÿ’ก Quick Start Guide

Simple setup-whether extracting a single video or building a database of thousands.

Copy-Paste Examples by Persona

For Analysts (Channel โ†’ CSV):

{
"startUrls": ["https://www.youtube.com/@kurzgesagt"],
"maxItems": 100
}

โ†’ Run, then export to CSV from Storage tab.

For Developers (API โ†’ JSON):

from apify_client import ApifyClient
client = ApifyClient("YOUR_TOKEN")
run = client.actor("apidojo/youtube-scraper").call(run_input={
"keywords": ["machine learning"],
"maxItems": 50
})
items = client.dataset(run["defaultDatasetId"]).list_items().items

For AI Agents (MCP pattern):

# Fetch data, then pass to LLM
youtube_data = client.dataset(run["defaultDatasetId"]).list_items().items
context = json.dumps(youtube_data[:10]) # First 10 videos as context
# Pass context to your AI agent

3 Steps to Get Started

  1. Choose input: URLs, handles (@username), keywords, or enable getTrending
  2. Configure: Set maxItems, gl (country), hl (language), filters
  3. Run & Export: Click Start, then download JSON/CSV from Storage tab

๐Ÿ“‹ Method 1: Scrape by URL

Best for: Specific channels, playlists, videos

{
"startUrls": [
"https://www.youtube.com/@kurzgesagt",
"https://www.youtube.com/playlist?list=PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf"
],
"maxItems": 500
}

๐Ÿ“‹ Method 2: Scrape by Keywords

Best for: Content discovery, trend research, market analysis

{
"keywords": ["AI tutorial", "machine learning", "data science"],
"gl": "US",
"hl": "en",
"uploadDate": "month",
"maxItems": 300
}

Best for: Viral content discovery, trend tracking

{
"getTrending": true,
"gl": "US",
"maxItems": 100
}

๐Ÿ”ง Best Practices for YouTube Scraping

โœ… DO:

  • Start with test runs - Use 50-100 videos to validate output format
  • Use filters - Narrow results with uploadDate, duration, features
  • Batch similar sources - Combine related channels or keywords in one run
  • Set maxItems - Control costs by limiting total extraction

โŒ DON'T:

  • Use customMapFunction for filtering - This causes automatic blocking
  • Scrape private content - Only public YouTube data is accessible
  • Use overly restrictive filters - May return zero results

โ“ Frequently Asked Questions

What is a YouTube Scraper API?

A tool that programmatically extracts YouTube data-videos, channels, playlists, and engagement metrics. It serves as an alternative to the official YouTube Data API without quota limits or API key requirements.

How much does it cost to scrape 10,000 videos?

$5.00 total ($0.50 per 1,000 videos)-significantly cheaper than most alternatives.

Can I scrape YouTube comments?

This actor extracts video-level data including comment counts. For full comment threads, use our YouTube Comments Scraper.

Does this work for channel scraping?

Yes. Provide a channel URL or handle. Each channel query costs $0.015 and includes 30 videos FREE.

Can I export to CSV?

Yes. Download directly from Apify Console in JSON, CSV, or Excel format.

Can I use Python?

Yes. Full Python support via the Apify Client library. See the copy-paste examples above.

Is this faster than the official YouTube API?

Yes. 10-19 videos/second without quota limits. The official API has strict daily quotas (10K units/day).

Can I scrape YouTube Shorts?

Yes. Enable includeShorts: true. Shorts queries cost $0.02 and include 40 videos FREE.

Yes. Enable getTrending: true to extract trending videos by country. Costs $0.025 with 50 videos FREE.

Can I use this for machine learning datasets?

Yes. Extract structured JSON with 50+ fields per video-ideal for NLP, computer vision, and trend prediction models.

๐Ÿ“ž Contact

Questions or support: apidojo10@gmail.com


Ready to start? Transparent pricing, 10-19 videos/sec, no API key required, 7 query types. Start extracting YouTube data today. ๐Ÿ“บ