YouTube Trending Scraper
Pricing
from $0.00005 / actor start
YouTube Trending Scraper
Scrape YouTube trending videos by region and category using the YouTube Data API v3. Extract video metadata, views, likes, comments, and more for SEO research, content planning, and trend analysis.
Pricing
from $0.00005 / actor start
Rating
0.0
(0)
Developer
Akash Kumar Naik
Actor stats
0
Bookmarked
1
Total users
0
Monthly active users
13 hours ago
Last modified
Categories
Share
YouTube Trending Scraper - Apify Actor
π¬ YouTube Trending Videos Scraper - Real-Time Trend Data Extraction
Discover what's trending on YouTube in real time! This Apify Actor scrapes YouTube's most popular/trending videos by region and category using the official YouTube Data API v3. Perfect for SEO research, content planning, competitor analysis, market research, and trend discovery.
Why Choose This YouTube Trending Scraper?
- β Real-Time Data - Get current trending videos as they appear on YouTube
- β Multi-Region Support - Scrape trending videos from any country (US, IN, GB, DE, JP, etc.)
- β Category Filtering - Filter by category (Music, Gaming, Sports, News, etc.)
- β No Quota Limits - Uses official API with reliable data extraction
- β Pay Per Event - Only pay for what you use, no monthly subscriptions
- β Developer Friendly - Python-based with full API integration
π Quick Start
Input Configuration
{"regionCode": "US","videoCategoryId": 0,"maxResults": 50}
Run via CLI
$apify run --input '{"regionCode": "US", "maxResults": 50}'
Run via API
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("your-username/youtube-trending-scraper").call(run_input={"regionCode": "US", "maxResults": 50})
π Output Data
The Actor returns comprehensive trending video data:
{"video_id": "dQw4w9WgXcQ","title": "Video Title","description": "Video description","channel_id": "UC...","channel_title": "Channel Name","published_at": "2024-01-15T12:00:00Z","thumbnail_url": "https://i.ytimg.com/vi/...","view_count": 1000000,"like_count": 50000,"comment_count": 2000,"duration": "PT10M30S","region_code": "US","video_category_id": null,"video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ","tags": ["music", "official"]}
π Supported Regions
Scrape YouTube trending videos from 200+ countries and regions using ISO 3166-1 alpha-2 codes:
| Region | Code | Region | Code |
|---|---|---|---|
| United States | US | Germany | DE |
| India | IN | Japan | JP |
| United Kingdom | GB | France | FR |
| Canada | CA | Brazil | BR |
| Australia | AU | Mexico | MX |
| South Korea | KR | Spain | ES |
| Russia | RU | Italy | IT |
| Indonesia | ID | Netherlands | NL |
π Video Categories
| Category ID | Category | Category ID | Category |
|---|---|---|---|
| 0 | All | 17 | Sports |
| 1 | Film & Animation | 18 | Shorts |
| 2 | Autos & Vehicles | 19 | Travel & Events |
| 10 | Music | 20 | Gaming |
| 15 | Pets & Animals | 21 | Videoblogging |
| 16 | Sports | 22 | People & Blogs |
π° Pricing (Pay Per Event)
This Actor uses Pay Per Event pricing model:
- Per Execution: $0.0075 per run (up to 50 videos)
- Free Units: 0
- Max Paid Units: 50 videos per execution
Cost Examples
| Scenario | Videos | Cost |
|---|---|---|
| Single US trending fetch | 50 | $0.0075 |
| Multi-region (5 countries) | 250 | $0.0375 |
| Daily monitoring (30 days) | 1,500 | $0.225/month |
π§ Use Cases
π SEO Research
- Identify trending topics in your niche
- Discover high-performing video titles
- Analyze trending content patterns
- Track keyword trends over time
π¬ Content Planning
- Find viral content ideas
- Monitor competitor videos
- Analyze trending categories
- Research content gaps
π Market Research
- Regional content analysis
- Trend forecasting
- Audience interest mapping
- Brand monitoring
π€ AI & Data Science
- Training data collection
- Trend prediction models
- Sentiment analysis
- Social media research
π API Integration
JavaScript
const { ApifyClient } = require('apify-client');const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });const input = {regionCode: 'US',videoCategoryId: 0,maxResults: 50};const run = await client.actor('your-username/youtube-trending-scraper').call(input);const dataset = await client.dataset(run.defaultDatasetId).listItems();console.log(dataset.items);
Python
from apify_client import ApifyClientclient = ApifyClient(token='YOUR_APIFY_TOKEN')run_input = {'regionCode': 'US','videoCategoryId': 0,'maxResults': 50}run = client.actor('your-username/youtube-trending-scraper').call(run_input=run_input)# Get resultsfor item in client.dataset(run['defaultDatasetId']).list_items()['items']:print(item)
cURL
curl -X POST https://api.apify.com/v2/acts/YOUR_ACTOR_ID/runs \-H "Authorization: Bearer YOUR_TOKEN" \-d '{"regionCode": "US", "maxResults": 50}'
β‘ Performance
- Speed: ~50 videos per second
- Reliability: 99.9% uptime
- Data Freshness: Real-time (current trending)
- Rate Limits: Subject to YouTube API quotas
π Legal & Compliance
This tool is intended for personal, research, and educational use. Users must comply with:
- YouTube Terms of Service
- Google API Terms of Service
- Applicable laws in their jurisdiction
The developer is not liable for misuse.
π License
MIT License