Fast YouTube Trending Scraper API | Viral Videos & Rankings avatar

Fast YouTube Trending Scraper API | Viral Videos & Rankings

Pricing

from $0.50 / 1,000 dataset items

Go to Apify Store
Fast YouTube Trending Scraper API | Viral Videos & Rankings

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

API Dojo

Maintained by Community

Actor stats

36

Bookmarked

492

Total users

31

Monthly active users

0.33 hours

Issues response

2 hours ago

Last modified

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

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:

EntityWhat You ExtractUse Case
🎬 Video DataTitle, description, duration, tagsContent ideation, keyword research
📊 EngagementViews, likes, comments, trending rankViral content detection, performance analysis
📺 Channel InfoName, ID, URL, subscriber dataInfluencer discovery, rising creator identification
🌍 RegionalCountry code, category ID, languageMarket research, cultural trend analysis
📅 TemporalPublish date, trending date, time on trendingTrend 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.

CategoryWhat It ExtractsExample Use Case
🔥 Now TrendingGeneral trending videosBroad trend spotting
🎵 MusicMusic chart trackingYouTube Music trending analysis
🎬 MoviesTrending movie contentEntertainment industry research
🎮 GamingGaming trend monitoringGaming niche analysis

Core Features

FeatureDescriptionBenefit
💰 Event-Based PricingPay only for videos you extractCost control: Only pay for what you scrape
🎁 ~50 Free VideosFree tier with every trending queryBudget-friendly: Substantial free data
14 Videos/SecondHigh-speed extractionTime savings: Extract hundreds in minutes
🔑 No AuthenticationWorks without YouTube loginSimple: Start scraping immediately
🚀 No Proxy RequiredInfrastructure handled on ApifyCost savings: No proxy management
🌍 Region TargetingFilter by country (gl) and language (hl)Precision: Target specific markets
📅 Scheduler ReadyWorks with webhooks and cron jobsAutomation: Daily trending updates
📥 JSON/CSV ExportClean structured output for analysisIntegration-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 TypePriceFree Videos IncludedWhat Triggers It
Trending Query$0.025~50 videos FREEScraping trending videos from a region
Dataset Item$0.0005N/AEach video beyond the first free page

� Cost Examples

ScenarioChargesCalculationTotal Cost
1 query, 50 videos1 query$0.025 × 1$0.025
1 query, 100 videos1 query + 50 items$0.025 + ($0.0005 × 50)$0.050
1 query, 200 videos1 query + 150 items$0.025 + ($0.0005 × 150)$0.100
4 regions, 200 videos4 queries$0.025 × 4$0.100
4 regions, 400 videos4 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.

FieldTypeDescriptionDefault
typestringTrending category: n (now), music, movies, gamingn
glstringRegion code / country code (US, UK, DE, JP, etc.)us
hlstringLanguage parameter (en, es, de, ja, etc.)en
maxItemsnumberMaximum number of videos to retrieveInfinity
customMapFunctionstringTransformation logic for the output JSONnull
Category CodeCategory NameWhat It Extracts
nNow TrendingGeneral trending videos across all categories
musicMusicYouTube Music trending, music chart tracking
moviesMoviesTrending movie trailers and film content
gamingGamingGaming trend monitoring, esports content

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.

Best for: Content strategy, trend spotting, viral content detection

{
"type": "n",
"gl": "us",
"hl": "en",
"maxItems": 50
}
Cost BreakdownCalculation
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.


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 BreakdownCalculation
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 BreakdownCalculation
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 BreakdownCalculation
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

StrategyBest ForCost per RunFree Videos
🔥 Single RegionDaily monitoring$0.025~50
🌍 Multi-RegionGlobal trends$0.125~250
🎵 Category-SpecificNiche analysis$0.050~50
📅 Scheduled DailyContinuous 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.

FieldAvailabilityData TypeNotes
id✅ AlwaysstringUnique video ID
title✅ AlwaysstringVideo title
url✅ AlwaysstringFull video URL
views✅ AlwaysnumberTotal view count
likes✅ AlwaysnumberTotal like count
duration✅ AlwaysnumberVideo duration in seconds
channel.id✅ AlwaysstringChannel ID
channel.name✅ AlwaysstringChannel display name
thumbnails✅ AlwaysarrayThumbnail URLs (multiple sizes)
description⚠️ SometimesstringVideo description
keywords⚠️ SometimesarrayVideo tags and keywords
isLive✅ AlwaysbooleanLivestream 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 CaseWhat to Add
Trend Analysistitle, views, likes, keywords
Content Ideationtitle, description, keywords, duration
Channel Researchchannel.id, channel.name, channel.url
Keyword Researchtitle, keywords, description

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

ToolWhat It ExtractsBest For
🔥 YouTube Trending ScraperTrending videos, viral content, regional rankingsTrend spotting (You are here)
📺 YouTube ScraperVideos, shorts, playlists, view countsContent analysis, search results
💬 YouTube Comments ScraperComments, replies, engagement dataSentiment analysis, audience research
🏯 YouTube Channel ScraperChannel profiles, subscribers, metadataCreator discovery, influencer research

🎯 Choose the Right Extractor for Your Use Case

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

PlatformToolWhat It Extracts
📸 InstagramInstagram ScraperPosts, reels, profiles, hashtags
🎵 TikTokTikTok ScraperVideos, profiles, engagement metrics
🐦 TwitterTwitter Scraper LiteTweets, 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:

ScenarioCost CalculationWhat You Pay
1 region, 50 videos1 query$0.025 (all free)
1 region, 100 videos1 query + 50 items$0.050
4 regions, 50 videos each4 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 availabilitykeywords 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 ApifyClient
client = 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

  1. Choose region: Set country code (gl) and language (hl)
  2. Select category: Choose n (now), music, movies, or gaming
  3. Run & Export: Click Start, then download JSON/CSV from Storage tab

Best for: Daily monitoring, content strategy

{
"type": "n",
"gl": "us",
"hl": "en",
"maxItems": 50
}

Best for: Music charts, gaming trends, entertainment research

{
"type": "music",
"gl": "us",
"hl": "en",
"maxItems": 100
}

✅ 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

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.

$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.

Yes! This YouTube trending scraper requires no authentication or login. Start extracting trending data immediately without any YouTube account or API key.

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.

Yes. Download YouTube trending data directly from Apify Console in JSON, CSV, or Excel format. Perfect for spreadsheet analysis and trend tracking.

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.

Yes. Use the gl parameter to target specific countries (US, UK, DE, JP, BR, etc.). Trending content is region-specific.

Yes. Use the type parameter: n (now trending), music, movies, or gaming for category-specific trending.

Yes. Use Apify Scheduler or webhooks for automated daily runs. Trending data changes daily—scheduling ensures continuous monitoring.

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.

Yes. Use type: "gaming" for gaming trend monitoring, esports content tracking, and gaming niche analysis.

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! 🏯