Fast YouTube Trending Scraper API | Viral Videos & Rankings
Pricing
from $0.50 / 1,000 dataset items
Fast YouTube Trending Scraper API | Viral Videos & Rankings
Your tailor-made tool to harness the dynamic world of trending content on YouTube. This powerful tool is designed to give you an in-depth, real-time snapshot of what's capturing the world's attention. And more, its extremely cheap price at only $0.50 per 1000 videos!
Pricing
from $0.50 / 1,000 dataset items
Rating
5.0
(7)
Developer

API Dojo
Actor stats
35
Bookmarked
492
Total users
31
Monthly active users
0.33 hours
Issues response
a day ago
Last modified
Categories
Share

Fast YouTube Trending Scraper API: Extract Viral Videos, Rankings & Trend Data at Scale 🏯
The most comprehensive YouTube trending data extractor for viral content detection, trend spotting, and content strategy.
Extract YouTube trending videos including video titles, view counts, channel data, trending rank, and category information from any region or language. This YouTube trending videos API works without login—no proxies, no authentication, no API keys required. Built for marketers, content creators, and analysts who need to scrape YouTube trending data at scale.
💰 Transparent Event-Based Pricing
- Trending Query: $0.025 per query (~50 videos FREE!)
- Additional Videos: $0.0005 each
⚡ Speed: Up to 14 videos/second
📊 Coverage: Now Trending, Music, Movies, Gaming categories by region
🎯 Output: JSON/CSV with video titles, view counts, channel data, thumbnails, and keywords
🚀 Setup: Zero configuration—no authentication or proxy required
Perfect for trend spotting, viral content detection, content ideation, and competitor analysis at a fraction of traditional API costs.
📋 Table of Contents
- ⚡ Features & Capabilities
- 💰 Pricing: Transparent Event-Based Costs
- 🍚 Input Parameters
- 💡 YouTube Trending Scraper Strategy Guide
- 📦 Output Format
- 🧩 Custom Map Function
- 🌴 Related Scrapers & Data Extraction Tools
- 🆓 Demo Mode & Free Testing
- 🔧 Troubleshooting Common Issues
- 🎯 Use Cases & Industries
- 💡 Quick Start Guide
- ❓ Frequently Asked Questions
- 📞 Contact
🧭 What Does the YouTube Trending Scraper Do?
YouTube trending scraper is a tool that automates the process of collecting video IDs, video titles, view counts, like counts, channel names, trending ranks, and category data from YouTube's trending page. This YouTube most popular videos scraper enables viral content detection, trend spotting, and large-scale content strategy research.
The Api Dojo YouTube Trending Scraper API retrieves comprehensive trending video data—including video descriptions, tags, thumbnails, channel URLs, and region-specific rankings—from any country or language. This tool operates at speeds up to 14 videos per second without requiring proxies, authentication, or official YouTube API quotas.
This YouTube trending scraper serves as a practical alternative to the YouTube Data API v3 (videos resource, chart=mostPopular) for bulk trending data collection. No quota limits, no API key management—just straightforward data access through Apify's infrastructure. Extract YouTube trending videos for any region in minutes.
What You Get From Every Query
When you extract YouTube trending videos, you receive comprehensive viral content intelligence:
🎬 Video Information
- Video ID, video title, video URL
- Video description, tags, and hashtags
- Video duration and video category
- Thumbnail URLs (default, medium, high, maxres)
- Is livestream, is Shorts-eligible
📊 Engagement Metrics
- View count, like count, comment count
- Publish date and trending date
- Trending rank / position (#1 trending, #2 trending, etc.)
📺 Channel Information
- Channel name, channel ID, channel URL
- Channel subscriber data
- Language of video
🌍 Regional Data
- Region code / country code (trending is region-specific)
- YouTube category ID (Music, Gaming, News, Sports, etc.)
- Language parameter settings
What Data Can You Extract?
This YouTube trending data extractor captures all key trending video information:
| Entity | What You Extract | Use Case |
|---|---|---|
| 🎬 Video Data | Title, description, duration, tags | Content ideation, keyword research |
| 📊 Engagement | Views, likes, comments, trending rank | Viral content detection, performance analysis |
| 📺 Channel Info | Name, ID, URL, subscriber data | Influencer discovery, rising creator identification |
| 🌍 Regional | Country code, category ID, language | Market research, cultural trend analysis |
| 📅 Temporal | Publish date, trending date, time on trending | Trend tracking, timing analysis |
⚡ Features & Capabilities
Complete, structured access to YouTube's trending page data—including video IDs, view counts, channel information, and regional rankings. This YouTube trending videos API is built for viral content intelligence at scale.
4 Trending Categories
| Category | What It Extracts | Example Use Case |
|---|---|---|
| 🔥 Now Trending | General trending videos | Broad trend spotting |
| 🎵 Music | Music chart tracking | YouTube Music trending analysis |
| 🎬 Movies | Trending movie content | Entertainment industry research |
| 🎮 Gaming | Gaming trend monitoring | Gaming niche analysis |
Core Features
| Feature | Description | Benefit |
|---|---|---|
| 💰 Event-Based Pricing | Pay only for videos you extract | Cost control: Only pay for what you scrape |
| 🎁 ~50 Free Videos | Free tier with every trending query | Budget-friendly: Substantial free data |
| ⚡ 14 Videos/Second | High-speed extraction | Time savings: Extract hundreds in minutes |
| 🔑 No Authentication | Works without YouTube login | Simple: Start scraping immediately |
| 🚀 No Proxy Required | Infrastructure handled on Apify | Cost savings: No proxy management |
| 🌍 Region Targeting | Filter by country (gl) and language (hl) | Precision: Target specific markets |
| 📅 Scheduler Ready | Works with webhooks and cron jobs | Automation: Daily trending updates |
| 📥 JSON/CSV Export | Clean structured output for analysis | Integration-ready: Direct pipeline import |
💰 Pricing: Transparent Event-Based Costs
Pay only for what you scrape—no subscriptions, no hidden fees. Significantly more affordable than traditional YouTube data APIs for bulk trending extraction.
📊 Event Costs by Query Type
| Event Type | Price | Free Videos Included | What Triggers It |
|---|---|---|---|
| Trending Query | $0.025 | ~50 videos FREE | Scraping trending videos from a region |
| Dataset Item | $0.0005 | N/A | Each video beyond the first free page |
� Cost Examples
| Scenario | Charges | Calculation | Total Cost |
|---|---|---|---|
| 1 query, 50 videos | 1 query | $0.025 × 1 | $0.025 |
| 1 query, 100 videos | 1 query + 50 items | $0.025 + ($0.0005 × 50) | $0.050 |
| 1 query, 200 videos | 1 query + 150 items | $0.025 + ($0.0005 × 150) | $0.100 |
| 4 regions, 200 videos | 4 queries | $0.025 × 4 | $0.100 |
| 4 regions, 400 videos | 4 queries + 200 items | ($0.025 × 4) + ($0.0005 × 200) | $0.200 |
Important Usage Guidelines
This YouTube trending scraper is built to collect meaningful trending data. Trending data changes daily—consider using scheduled actor runs for continuous monitoring.
🍚 Input Parameters
Flexible input options for targeting YouTube trending videos with simple configuration.
| Field | Type | Description | Default |
|---|---|---|---|
type | string | Trending category: n (now), music, movies, gaming | n |
gl | string | Region code / country code (US, UK, DE, JP, etc.) | us |
hl | string | Language parameter (en, es, de, ja, etc.) | en |
maxItems | number | Maximum number of videos to retrieve | Infinity |
customMapFunction | string | Transformation logic for the output JSON | null |
Supported Trending Categories
| Category Code | Category Name | What It Extracts |
|---|---|---|
n | Now Trending | General trending videos across all categories |
music | Music | YouTube Music trending, music chart tracking |
movies | Movies | Trending movie trailers and film content |
gaming | Gaming | Gaming trend monitoring, esports content |
� YouTube Trending Scraper Strategy Guide
Choose the right extraction approach based on your data needs and budget. Each strategy optimizes for different use cases when you need to scrape YouTube trending or extract YouTube trending videos at scale.
Strategy 1: Single Region Trending (Daily Monitoring)
Best for: Content strategy, trend spotting, viral content detection
{"type": "n","gl": "us","hl": "en","maxItems": 50}
| Cost Breakdown | Calculation |
|---|---|
| 1 trending query | $0.025 |
| 0 additional videos | $0.000 |
| Total | $0.025 |
Use case: Monitor US trending videos daily for content ideation and viral content patterns.
Strategy 2: Multi-Region Comparison (Global Trends)
Best for: Market research, cultural trend analysis, international content strategy
{"type": "n","gl": "us","hl": "en","maxItems": 50}// Run separately for: US, UK, DE, JP, BR
| Cost Breakdown | Calculation |
|---|---|
| 5 trending queries | $0.025 × 5 = $0.125 |
| 0 additional videos | $0.000 |
| Total | $0.125 |
Use case: Compare trending content across 5 regions for global market research and cultural insights.
Strategy 3: Category-Specific Monitoring (Niche Analysis)
Best for: Music chart tracking, gaming trend monitoring, entertainment research
{"type": "music","gl": "us","hl": "en","maxItems": 100}
| Cost Breakdown | Calculation |
|---|---|
| 1 trending query | $0.025 |
| 50 additional videos | $0.0005 × 50 = $0.025 |
| Total | $0.050 |
Use case: Track YouTube Music trending for music industry research and chart analysis.
Strategy 4: Scheduled Daily Runs (Continuous Monitoring)
Best for: News monitoring, real-time event tracking, brand safety monitoring
{"type": "n","gl": "us","hl": "en","maxItems": 50}// Schedule: Daily at 9:00 AM via Apify Scheduler
| Cost Breakdown | Calculation |
|---|---|
| 30 queries/month | $0.025 × 30 = $0.75 |
| Monthly Total | $0.75 |
Use case: Automated daily trending updates for news monitoring and real-time trend detection.
Strategy Comparison Table
| Strategy | Best For | Cost per Run | Free Videos |
|---|---|---|---|
| 🔥 Single Region | Daily monitoring | $0.025 | ~50 |
| 🌍 Multi-Region | Global trends | $0.125 | ~250 |
| 🎵 Category-Specific | Niche analysis | $0.050 | ~50 |
| 📅 Scheduled Daily | Continuous monitoring | $0.75/month | ~50/day |
Pro Tips for Cost Optimization
✅ Maximize Free Videos
- Each query includes ~50 free videos—often enough for daily monitoring
- Use category filters—target specific niches instead of broad trending
- Schedule runs—automate daily trending updates with Apify Scheduler
✅ Control Spending
- Set
maxItems—limit total videos to control costs - Use region targeting wisely—narrow to relevant markets
- Start with 50 videos—often sufficient for trend analysis
📦 Output Format
Clean, structured JSON output with comprehensive YouTube trending video data. Each video object contains video ID, title, view counts, channel information, and metadata—everything you need to extract YouTube trending videos at scale.
Minimal Example (Core Fields)
{"id": "lL2ZwXj1tXM","title": "Three Days Grace - Never Too Late","url": "https://www.youtube.com/watch?v=lL2ZwXj1tXM","description": "Three Days Grace's official music video for 'Never Too Late'...","duration": 211,"views": 272272914,"likes": 272272914,"status": "OK","channel": {"id": "UCK-VRwguZP3cokOAxI0F1HA","name": "ThreeDaysGraceVEVO","url": "https://www.youtube.com/channel/UCK-VRwguZP3cokOAxI0F1HA"},"keywords": ["three days grace", "rock", "music", "official video"],"isLive": false,"isPrivate": false,"thumbnails": [{"url": "https://i.ytimg.com/vi/lL2ZwXj1tXM/hqdefault.jpg","width": 480,"height": 360}]}
Field Availability Guarantees
Understanding which fields are always present vs. conditionally available helps you build reliable integrations when you scrape YouTube trending data.
| Field | Availability | Data Type | Notes |
|---|---|---|---|
id | ✅ Always | string | Unique video ID |
title | ✅ Always | string | Video title |
url | ✅ Always | string | Full video URL |
views | ✅ Always | number | Total view count |
likes | ✅ Always | number | Total like count |
duration | ✅ Always | number | Video duration in seconds |
channel.id | ✅ Always | string | Channel ID |
channel.name | ✅ Always | string | Channel display name |
thumbnails | ✅ Always | array | Thumbnail URLs (multiple sizes) |
description | ⚠️ Sometimes | string | Video description |
keywords | ⚠️ Sometimes | array | Video tags and keywords |
isLive | ✅ Always | boolean | Livestream indicator |
Export Options
- JSON: Complete datasets with nested objects—ideal for trend analysis and content research
- 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—flatten nested data, extract specific fields, or restructure for your pipeline.
Important: Custom map function is for data transformation—not for filtering. Filtering items may result in automatic restrictions.
Example: Simplified Output for Trend Analysis
(object) => ({videoId: object.id,title: object.title,views: object.views,likes: object.likes,channelName: object.channel?.name || null,channelId: object.channel?.id || null,duration: object.duration,keywords: object.keywords?.join(', ') || null})
Common Transformations
| Use Case | What to Add |
|---|---|
| Trend Analysis | title, views, likes, keywords |
| Content Ideation | title, description, keywords, duration |
| Channel Research | channel.id, channel.name, channel.url |
| Keyword Research | title, keywords, description |
🌴 Related Scrapers & Data Extraction Tools
Expand your YouTube data extraction capabilities with our complete suite of specialized scraper APIs. Each tool focuses on specific data types for comprehensive video intelligence.
📦 Complete Apidojo YouTube Scraper Ecosystem
| Tool | What It Extracts | Best For |
|---|---|---|
| 🔥 YouTube Trending Scraper | Trending videos, viral content, regional rankings | Trend spotting (You are here) |
| 📺 YouTube Scraper | Videos, shorts, playlists, view counts | Content analysis, search results |
| 💬 YouTube Comments Scraper | Comments, replies, engagement data | Sentiment analysis, audience research |
| 🏯 YouTube Channel Scraper | Channel profiles, subscribers, metadata | Creator discovery, influencer research |
🎯 Choose the Right Extractor for Your Use Case
🔥 Need Trending & Viral Content?
→ YouTube Trending Scraper (You are here)
Extract trending videos, viral content, regional rankings, and category-specific trends
📺 Need Video & Search Data?
→ YouTube Scraper
Extract videos, shorts, playlists, view counts, and search results
💬 Need Comment & Engagement Data?
→ YouTube Comments Scraper
Extract comments, replies, sentiment data, and user interactions
🏯 Need Channel & Creator Data?
→ YouTube Channel Scraper
Extract channel IDs, subscriber counts, descriptions, and profile metadata
🌐 Cross-Platform Social Media Scrapers
| Platform | Tool | What It Extracts |
|---|---|---|
| Instagram Scraper | Posts, reels, profiles, hashtags | |
| 🎵 TikTok | TikTok Scraper | Videos, profiles, engagement metrics |
| Twitter Scraper Lite | Tweets, profiles, followers |
🆓 Demo Mode & Free Testing
If you run on Apify's Free plan, you can still use this YouTube trending scraper with limited results (up to 10 items). For unrestricted usage and to unlock the full power of this YouTube trending videos API at scale, subscribe to a paid Apify plan at apify.com/pricing.
Free Plan Benefits:
- ✅ Test this API with up to 10 trending video extractions
- ✅ Each query includes ~50 FREE videos
- ✅ Perfect for testing workflows before scaling
- ✅ Validate output format and data quality risk-free
Upgrade for Full Access:
- 🚀 Unlimited trending video extraction from YouTube
- 🚀 14 videos per second processing speed
- 🚀 API access for automated workflows and integrations
- 🚀 Scheduled runs for daily trending updates
For unrestricted usage, subscribe to a paid Apify plan.
🔧 Troubleshooting Common Issues
Having trouble with your extraction? Here are solutions to common issues when you scrape YouTube trending data, manage costs, and optimize performance with this trending tracker.
❓ Getting Fewer Videos Than Expected?
Problem: Extraction returns fewer trending videos than anticipated
Solutions:
✅ Check maxItems setting—increase the limit if you need more videos
✅ Verify region code (gl)—some regions have fewer trending videos
✅ Check category type—niche categories may have fewer results
✅ Remember free tiers—Free users are capped at 10 items
💰 Unexpected Costs?
Problem: Your run cost more than anticipated
Key pricing differences to remember:
| Scenario | Cost Calculation | What You Pay |
|---|---|---|
| 1 region, 50 videos | 1 query | $0.025 (all free) |
| 1 region, 100 videos | 1 query + 50 items | $0.050 |
| 4 regions, 50 videos each | 4 queries | $0.100 |
Cost control tips:
✅ Each region creates a separate query—4 regions = 4 separate charges
✅ Use maxItems to cap spending—set hard limits on total extraction
✅ 50 videos often sufficient—trending data is concentrated at the top
❓ No Results Returned?
Problem: Extraction completes but returns empty dataset
Solutions:
✅ Verify region code format—use standard country codes (US, UK, DE, JP)
✅ Check category code—use n, music, movies, or gaming
✅ Don't use customMapFunction for filtering—this can cause automatic blocks
✅ Confirm region has trending—some smaller regions may have limited data
❓ Missing Data Fields?
Problem: Some expected fields are missing from output
Solutions:
✅ Open Storage tab—full datasets available in Apify Console
✅ Check video type—some fields only appear on certain videos
✅ Verify field availability—keywords and description may be empty
🎯 Use Cases & Industries
This YouTube trending scraper serves professionals who need fast, structured viral content insights—from trend spotting to content strategy and competitive intelligence. Use it to extract YouTube trending videos for any business intelligence need.
🔥 Trend Spotting & Viral Content Detection
Identify viral content and emerging trends before they peak.
- Monitor daily trending videos for viral content detection
- Identify emerging content patterns and themes
- Track trending rank changes over time
- Spot rising creators and breakout content
Example: Monitor US trending daily to identify viral content patterns for content strategy planning.
🎨 Content Strategy & Ideation
Inspire your content creation with trending video insights.
- Analyze trending titles for YouTube SEO keyword research
- Study successful video formats and durations
- Research content ideation patterns from viral videos
- Identify optimal posting times based on trending data
Example: Extract trending video titles and keywords for keyword research and content planning.
📊 Market Research & Cultural Analysis
Understand market trends and cultural patterns through trending data.
- Compare trending content across regions for cultural trend analysis
- Track market research patterns in specific categories
- Analyze audience preferences by region and language
- Research entertainment industry trends
Example: Compare trending videos across 5 regions for global market research insights.
🎵 Music & Gaming Industry Monitoring
Track category-specific trends for specialized industries.
- Monitor YouTube Music trending for music chart tracking
- Track gaming trend monitoring for esports and gaming content
- Analyze entertainment industry patterns
- Research category-specific viral content
Example: Track Music category trending daily for music chart tracking and artist discovery.
📰 News Monitoring & Real-Time Events
Stay ahead of breaking news and real-time events.
- Monitor trending for news monitoring and breaking stories
- Track real-time event tracking during major events
- Identify emerging news topics before mainstream coverage
- Research brand safety monitoring for trending content
Example: Schedule daily trending runs for news monitoring and real-time event detection.
💡 Quick Start Guide
Simple setup—whether extracting trending videos from a single region or monitoring global trends. This YouTube trending videos API makes it easy to scrape YouTube trending data in minutes.
Copy-Paste Examples by Persona
For Analysts (Region → CSV):
{"type": "n","gl": "us","hl": "en","maxItems": 50}
→ Run, then export to CSV from Storage tab.
For Developers (API → JSON):
from apify_client import ApifyClientclient = ApifyClient("YOUR_TOKEN")run = client.actor("apidojo/youtube-trending-scraper").call(run_input={"type": "n","gl": "us","hl": "en","maxItems": 50})items = client.dataset(run["defaultDatasetId"]).list_items().items
For Scheduled Runs (Daily Monitoring):
# Schedule via Apify Console or API# Cron: 0 9 * * * (Daily at 9:00 AM)run_input = {"type": "n","gl": "us","hl": "en","maxItems": 50}
3 Steps to Get Started
- Choose region: Set country code (
gl) and language (hl) - Select category: Choose
n(now),music,movies, orgaming - Run & Export: Click Start, then download JSON/CSV from Storage tab
📋 Method 1: Single Region Trending
Best for: Daily monitoring, content strategy
{"type": "n","gl": "us","hl": "en","maxItems": 50}
📋 Method 2: Category-Specific Trending
Best for: Music charts, gaming trends, entertainment research
{"type": "music","gl": "us","hl": "en","maxItems": 100}
🔧 Best Practices for YouTube Trending Scraping
✅ DO:
- Schedule daily runs—trending data changes frequently
- Use category filters—target specific niches for focused insights
- Start with 50 videos—often sufficient for trend analysis
- Compare regions—run multiple queries for global insights
❌ DON'T:
- Use customMapFunction for filtering—this causes automatic blocking
- Forget region codes—trending is region-specific
- Ignore categories—Music, Gaming, Movies have different trends
❓ Frequently Asked Questions
What is a YouTube Trending Scraper API?
A YouTube trending scraper API is a tool that programmatically extracts trending video data—video titles, view counts, channel information, and regional rankings. This YouTube most popular videos scraper serves as an alternative to the YouTube Data API v3 without quota limits or API key requirements.
How much does it cost to scrape YouTube trending videos?
$0.025 per query with ~50 free videos included. Additional videos cost $0.0005 each. Monthly monitoring (30 daily runs) costs approximately $0.75/month.
Can I scrape YouTube trending without login?
Yes! This YouTube trending scraper requires no authentication or login. Start extracting trending data immediately without any YouTube account or API key.
What YouTube trending data can I extract?
Extract video IDs, video titles, view counts, like counts, channel names, channel IDs, video descriptions, keywords, thumbnails, duration, and regional rankings—all in structured JSON or CSV format.
Can I export scraped YouTube trending data to CSV?
Yes. Download YouTube trending data directly from Apify Console in JSON, CSV, or Excel format. Perfect for spreadsheet analysis and trend tracking.
Can I use Python to scrape YouTube trending?
Yes! Full Python support via the Apify Client library. See the copy-paste examples above for YouTube trending scraper Python integration.
Is this faster than the YouTube Data API?
Yes. 14 videos/second without quota limits. The official YouTube Data API v3 has strict rate limits and requires complex OAuth setup.
Can I scrape trending videos by region?
Yes. Use the gl parameter to target specific countries (US, UK, DE, JP, BR, etc.). Trending content is region-specific.
Can I scrape trending by category (Music, Gaming, Movies)?
Yes. Use the type parameter: n (now trending), music, movies, or gaming for category-specific trending.
Can I schedule daily trending updates?
Yes. Use Apify Scheduler or webhooks for automated daily runs. Trending data changes daily—scheduling ensures continuous monitoring.
Can I compare trending across multiple regions?
Yes. Run separate queries for each region to compare global trending patterns. Each region query costs $0.025.
Can I use this for content ideation?
Yes. Perfect for content strategy, keyword research from trending titles, and content ideation based on viral patterns.
Can I track music charts on YouTube?
Yes. Use type: "music" to track YouTube Music trending for music chart analysis and artist discovery.
Can I monitor gaming trends?
Yes. Use type: "gaming" for gaming trend monitoring, esports content tracking, and gaming niche analysis.
Is this a real-time YouTube trending API?
Yes. Extract current YouTube trending data in real-time with 14 videos/second processing speed. Data reflects the latest publicly available trending information.
📞 Contact
If you need any sort of support, please send an email to apidojo10@gmail.com. You name it, we get it.
Ready to start extracting YouTube trending data? With transparent event-based pricing, scheduler-ready automation, and support for all regions and categories, this YouTube Trending Scraper API is the perfect tool for viral content detection, trend spotting, and content strategy. Start scraping today! 🏯


