Youtube Trending Scraper avatar

Youtube Trending Scraper

Pricing

$19.99/month + usage

Go to Apify Store
Youtube Trending Scraper

Youtube Trending Scraper

Discover what’s trending on YouTube in real time 🔥🎥 Scrape trending videos by country with titles, channels, views, rankings, publish dates, and more. Perfect for SEO research, content planning, and competitor analysis. Stay ahead with fresh YouTube insights 🚀📈

Pricing

$19.99/month + usage

Rating

0.0

(0)

Developer

ScraperX

ScraperX

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Youtube Trending Scraper is a fast, reliable youtube trending videos scraper that lets you scrape the YouTube trending page by country and category, then enrich every video with titles, channels, views, likes, comments, keywords, dates, thumbnails, and more. Built for marketers, developers, data analysts, and researchers, this youtube trending data extractor and youtube trends tracker works as a youtube trending scraper without api keys — perfect for planning content, SEO, and analytics at scale. 🚀

What data / output can you get?

Below are real output fields this youtube top charts scraper returns. Example values are illustrative.

Data typeDescriptionExample value
idYouTube video ID2dmCaK0qslM
titleVideo titleEpic Gameplay Trailer
urlFull YouTube video URLhttps://www.youtube.com/watch?v=2dmCaK0qslM
viewsView count (string as extracted)1487513
likesLike count (string as extracted)124690
commentsComment count (string as extracted)1K
channel.idChannel IDUCE-8FgcXvnAsb2EG1FizSyg
channel.nameChannel nameChannel Name
channel.handleChannel handle if available@channelname
categoryVideo categoryGaming
publishDateISO publish date from microformat2025-10-31T07:06:17-07:00
durationVideo length in seconds (integer or null)8940

Bonus metadata includes: channel.url and badges, keywords array, embeddability, family-safe and live flags, plus thumbnail objects with url, width, and height. You can export the youtube trending dataset download in JSON, CSV, or Excel via Apify’s Dataset UI.

Key features

  • 🔐 Smart proxy management
    Automatically uses Apify Proxy when configured and can step up from datacenter to residential if YouTube returns thin or blocked pages. Adaptive retries make this a robust real-time youtube trending monitor.

  • 🌍 Multi-country coverage
    Scrape youtube trending by country using 2‑letter codes (US, GB, IN, BD, JP, …). Mix regions to compare what’s hot worldwide with this youtube trending by country scraper.

  • 🎯 Category filtering
    Choose a vertical: music, gaming, movies, sports, or entertainment to focus your scrape. Ideal for building a targeted youtube trending analytics tool.

  • 🎚️ Precise volume control
    Limit how many videos you collect per country with maxVideosPerInput (default 10; set 0 for unlimited) for sampling or comprehensive pulls.

  • 🧠 Layered extraction for accuracy
    Combines HTML meta tags with ytInitialPlayerResponse and ytInitialData to power a reliable youtube trending video metadata scraper (titles, counts, dates, keywords, channels, thumbnails).

  • ⚡ Efficient, production-ready stack
    Built as a youtube trending videos Python script on Apify (Python + aiohttp + BeautifulSoup) for concurrency and resilience. Use via the Apify API in any stack.

  • 📤 Easy exports and integrations
    Results are saved to the Apify Dataset for one‑click export (JSON, CSV, Excel) and integration into automation/BI workflows.

  1. Sign in to your Apify account at console.apify.com.
  2. Open the “youtube-trending-scraper” actor in the Apify Store.
  3. In the Input tab, add your country codes under startUrls (one per line). You can also paste a youtube.com link with &gl=XX to use that region; unknown text defaults to US.
  4. Select contentType: music, gaming, movies, sports, or entertainment (default is gaming).
  5. Set maxVideosPerInput to control how many items per country (default 10; set 0 for unlimited).
  6. Optionally set proxyConfiguration. If youtube.com is picky about your IP, enable Apify Proxy; the actor can automatically step up from datacenter → residential if needed.
  7. Click Start. The actor fetches trending IDs for each region, then enriches each video with full metadata.
  8. When the run completes, open the Dataset tab to view and export results as JSON, CSV, or Excel.

Pro tip: Trigger runs via the Apify API and automate exports to build a repeatable youtube trending crawler pipeline for your dashboards.

Use cases

Use caseDescription
SEO research + keyword discoveryIdentify regional keywords and topics by mining titles and keywords from trending results for on‑page and content strategy.
Content planning for creatorsTrack what’s performing by country and category (gaming, music, sports, entertainment) to guide your next video ideas.
Competitor and channel monitoringCompare top channels, badges, and engagement metrics across regions with a repeatable youtube trending data extractor.
Market intelligence by regionMeasure category performance across countries to inform campaigns and localized content investments.
Academic & trend researchCollect structured datasets for longitudinal studies and diffusion analyses using a consistent youtube trends tracker.
API pipeline enrichmentCall the actor via API, store outputs in your DB, and feed dashboards with fresh youtube trending video lists.

Built for precision, automation, and reliability, this tool streamlines hands‑off trend tracking across regions and categories.

  • ✅ Accurate, layered extraction from multiple page signals for robust metadata
  • 🌍 Scales across countries with flexible limits for sampling or full pulls
  • 🧩 Developer‑friendly via Apify SDK and API for any stack
  • 🔄 Built‑in retries and proxy fallback to handle blocking/thin pages
  • 🔒 Collects public data only — no login or private data access
  • 💸 Cost‑effective alternative to building and maintaining your own scraper
  • 🔌 Workflow‑ready outputs for BI tools, automation platforms, and custom scripts

In short: a stable youtube trending crawler that outperforms brittle extensions and ad‑hoc scripts, designed for repeatable analytics and monitoring.

Yes — when done responsibly. This actor collects publicly available information from YouTube video pages and does not access private or authenticated content.

Guidelines for compliant use:

  • Only collect and process public data.
  • Respect YouTube’s Terms of Service and applicable laws (e.g., GDPR, CCPA).
  • Avoid personal data processing unless you have a lawful basis.
  • Use reasonable rate limits and proxies to avoid undue load.
  • Consult your legal team for edge cases or jurisdiction-specific requirements.

Input parameters & output format

Example JSON input

{
"startUrls": ["US", "GB", "IN"],
"contentType": "gaming",
"maxVideosPerInput": 10,
"proxyConfiguration": {
"useApifyProxy": true
}
}

Input parameters

  • startUrls (array, required): One 2‑letter country code per line (US, GB, IN, BD, JP, …). Each line = that region’s trending chart. Unknown text → US; a youtube.com link with &gl=XX uses region XX. Default: none.
  • contentType (string, optional): Which vertical chart to read: music, gaming, movies, sports, or entertainment. Default: gaming.
  • maxVideosPerInput (integer, optional): Max trending videos to keep per country row. Set 0 for unlimited. Default: 10.
  • proxyConfiguration (object, optional): Route traffic through Apify Proxy so YouTube is less likely to block or return thin pages. Leave off for a direct run; if things get blocked, the actor can still step up through datacenter → residential automatically. Default: not set.

Example JSON output

{
"type": "video",
"id": "2dmCaK0qslM",
"title": "Epic Gameplay Trailer",
"status": "OK",
"url": "https://www.youtube.com/watch?v=2dmCaK0qslM",
"description": "Video description text...",
"duration": 8940,
"views": "1487513",
"likes": "124690",
"comments": "1K",
"channel": {
"id": "UCE-8FgcXvnAsb2EG1FizSyg",
"name": "Channel Name",
"handle": "@channelname",
"url": "https://www.youtube.com/@channelname",
"subscriberCount": "4.81M subscribers",
"thumbnails": [],
"badges": ["Verified"]
},
"keywords": ["keyword1", "keyword2"],
"isRatingsAllowed": true,
"isLive": false,
"isFamilySafe": true,
"category": "Gaming",
"isPrivate": false,
"isExclusive": false,
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/2dmCaK0qslM/maxresdefault.jpg",
"width": 168,
"height": 94
}
],
"embedUrl": "https://www.youtube.com/embed/2dmCaK0qslM",
"isEmbeddable": true,
"isUnlisted": false,
"publishDate": "2025-10-31T07:06:17-07:00",
"relativeDate": null,
"uploadDate": "2025-10-31T07:06:17-07:00"
}

Notes on optional fields:

  • duration may be null if not detected.
  • channel.handle and channel.url may be null if not available in the page HTML/JSON.
  • thumbnails can be an empty array if the thumbnail URL isn’t detected.
  • embedUrl is null if the video ID isn’t available.
  • relativeDate is returned as null.
  • views, likes, comments are strings as extracted from the page.

FAQ

Do I need the YouTube API to use this?

No. This is a youtube trending scraper without api. It collects public watch‑page HTML and JSON to build a structured dataset, so no API keys are required.

Can I target specific categories like gaming or music?

Yes. Set contentType to one of: music, gaming, movies, sports, or entertainment. The default is gaming.

How do I scrape multiple countries at once?

Add multiple 2‑letter codes in startUrls, one per line (e.g., US, GB, IN). The actor will fetch each region’s trending chart and merge the results.

How many videos will I get per country?

By default, maxVideosPerInput is 10 per country row. Set it to 0 for unlimited to collect all IDs found for that region’s page.

Does it handle blocking or thin pages?

Yes. If YouTube responds with incomplete HTML or blocking signals, the actor can use Apify Proxy and automatically step up from datacenter to residential to improve success.

What data fields are included in the output?

Each record includes id, title, url, views, likes, comments, a channel object (id, name, handle, url, subscriberCount, badges, thumbnails), keywords, category, duration, publishDate, uploadDate, thumbnails, and flags like isLive, isFamilySafe, isEmbeddable. See the Output Format above for a full example.

Can I use this with Python or Node.js?

Yes. The actor is implemented in Python and can be triggered via the Apify API from any stack, making it suitable for pipelines that download the youtube trending video list into your systems.

How can I download the results?

Open the run’s Dataset in Apify and export to JSON, CSV, or Excel. You can also fetch the dataset via the API for automation.

Closing thoughts

Youtube Trending Scraper is built for reliable, structured trend intelligence across countries and categories. It delivers rich metadata (titles, channels, engagement, dates, keywords, thumbnails) and scales from quick samples to full regional charts. Ideal for marketers, developers, analysts, and researchers, it plugs into any pipeline via the Apify API. Start extracting smarter YouTube trend insights today with a dependable youtube trending analytics tool.

🔗 What are other Youtube scraping tools?

If you want to scrape specific Youtube data, you can use any of the dedicated scrapers below for faster and more targeted results.

🔗 Scraper Name🔗 Scraper Name
📧 YouTube Channel Email Scraper📝 YouTube Transcript Scraper
📞 YouTube Channel Phone Number Scraper📈 YouTube Trending Scraper
💬 YouTube Comments Scraper🧠 YouTube Video Summarizer
📺 YouTube Channel Scraper🎥 YouTube Video Scraper by Hashtag
🗂️ YouTube Metadata Scraper🔍 YouTube Channel Finder
▶️ YouTube Playlist Scraper🔎 YouTube Search Scraper
🧰 YouTube Scraper📝 YouTube Community Posts Scraper
🎥 YouTube Shorts Scraper🎥 YouTube Video Details Scraper