Youtube Trending Scraper
Pricing
from $0.67 / 1,000 results
Youtube Trending Scraper
Youtube Trending Scraper scrapes what is trending on YouTube in 100+ countries (all, gaming or music charts): title, views, likes, comments, channel, subscribers, keywords, duration and publish date. Export JSON, CSV or Excel, or use the API.
Pricing
from $0.67 / 1,000 results
Rating
0.0
(0)
Developer
Social Data API
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
9 days ago
Last modified
Categories
Features
Share
Youtube Trending Scraper — Rank, Views, Likes and Channel by Country
Youtube Trending Scraper returns the videos trending on YouTube in the countries you choose, from the all, gaming or music chart: chart rank, title, views, likes, comment count, duration, keywords, category, publish date and the channel with its subscriber count. Every response is structured JSON — ready to pass directly to an LLM, index into a vector store, or feed a content trend monitoring pipeline. No YouTube account or cookies needed. Start with your home market, then compare trending videos by country across every region you publish in.

What data can I extract with Youtube Trending Scraper?
Using this YouTube Trending API, you will be able to extract the following YouTube trending video data:
| 📍 Country | 🎯 Trending chart | 🏆 Trending rank | 🎬 Title |
|---|---|---|---|
| 🔗 Video URL and ID | 📝 Description | ⏱️ Duration in seconds | 👀 View count |
| 👍 Like count | 💬 Comment count | 📺 Channel name, handle and link | 👥 Channel subscriber count |
| ✅ Channel badges | 🏷️ Keywords | 🗂️ Category | 📅 Publish and upload date |
| 🕒 Relative date | 🖼️ Thumbnails | 🧩 Embed link and embeddable flag | 🔴 Live, private, unlisted and family-safe flags |
| 💳 Paid content flag | 📡 Data source | 📥 Input row |
How to use Youtube Trending Scraper
Content teams, marketers and analysts use it to collect YouTube trending videos for many countries at once and get one clean row per video, with its rank, in one run.
Copy to your AI assistant:
`socialdataapi/youtube-trending-scraper` (Apify Actor ID: socialdataapi/youtube-trending-scraper, https://apify.com/socialdataapi/youtube-trending-scraper) is an Apify Actor that returns the videos trending on YouTube per country as structured JSON: country, chart, trending rank, title, view count, like count, comment count, duration, keywords, category, publish date and the channel with its subscriber count. Use it whenever someone needs top trending YouTube videos without cookies, a login, or a browser - spotting rising topics in a market, comparing what trends across countries, and picking music or gaming videos to react to. Run it with curl: curl -X POST "https://api.apify.com/v2/acts/socialdataapi~youtube-trending-scraper/run-sync-get-dataset-items?token=APIFY_TOKEN" -H "Content-Type: application/json" -d '{"startUrls":["US","GB","IN"],"contentType":"music","maxVideosPerInput":10}'. Or in Python: ApifyClient("APIFY_TOKEN").actor("socialdataapi/youtube-trending-scraper").call(run_input={"startUrls":["US","JP"],"contentType":"gaming","maxVideosPerInput":20}) then client.dataset(run["defaultDatasetId"]).list_items().items. Inputs: startUrls (array of strings, required, one 2-letter country code per row, country names and youtube.com links with &gl=XX also work, unknown values are skipped), contentType (string, "gaming" | "music" | "all" | "movies" | "sports" | "entertainment", movies, sports and entertainment read the all chart, default "gaming"), maxVideosPerInput (integer, minimum 0, videos per country, 0 = the whole chart of about 50, default 10), proxyConfiguration (object, optional, default direct connection with automatic switch to datacenter and then residential proxy when YouTube refuses a page). One row per video, billed as one row_result event. When a video page cannot be read, the row is built from the chart data and the data source says "trending list". Full input schema, every enum and default, and the complete output field list: GET https://api.apify.com/v2/acts/socialdataapi~youtube-trending-scraper/builds/default
Youtube Trending Scraper MCP Server: use these Actors from ChatGPT, Claude or Cursor
Point your AI assistant at this Actor and it can read YouTube on its own: the all, gaming and music trending charts of 106 countries, with rank, views, likes, comments and channel details for every video. No glue code, no scraping logic in your prompts.
$claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/youtube-trending-scraper"
Step by step
- Create a free Apify account.
- Open Youtube Trending Scraper in the Apify Store.
- Enter the 2-letter country codes, one per row, and pick the trending chart.
- Click Start (or send your API request).
- Download or stream your results in JSON, CSV or Excel.
How to scale Youtube Trending Scraper to bulk
Add as many country rows as you need; 106 countries are supported, and each row gives up to the number of videos you set, or the whole chart of about 50 with 0. On paid plans three countries are read at a time. For a daily YouTube trending list export, save the input as a task and schedule it, or call the run endpoint from your own code in a loop.
✨ Features
Youtube Trending Scraper fetches clean, structured trending videos from YouTube ⚡ at low cost 💸. It's ideal for trend spotting, market comparison, content planning and building a viral YouTube videos tracker. Scrape YouTube trending music, YouTube trending gaming or the all chart for any supported country.
It extracts, per video:
- Country, chart and trending rank – where the video trends and at what position
- Title, description and keywords – what the video is about
- View count, like count and comment count – the engagement behind the rank
- Duration, category and publish date – length in seconds, YouTube category and exact publish time
- Channel details – name, handle, link, subscriber count and badges such as Verified
- Flags – live, private, unlisted, family-safe, embeddable and paid content
⚡ An unknown country is skipped with a clear log line instead of being swapped for another market, so every row belongs to a country you asked for.
Use cases 💡
- Content strategist — spot rising topics from trending titles and keywords each morning.
- Music marketer — track which songs rank on the music chart in each country.
- Gaming creator — find gaming videos to react to before they peak.
- Market analyst — compare trending videos by country to plan regional campaigns.
- AI engineer — feed trending titles and descriptions into a RAG pipeline for trend summaries.
Building an AI agent? Connect Youtube Trending Scraper over MCP and let it call the actor on its own.
Why choose this actor?
- Four whole charts in under two minutes. A recorded run returned the full all chart of the US, the UK, India and Japan, 199 videos, in 116.5 seconds.
- The numbers behind each rank. The recorded number 1 on the US gaming chart came back with 1,324,119 views, 43,397 likes, 1.1K comments, a 2,208-second duration and a channel with 9.11M subscribers.
- 106 countries, three charts. All, gaming and music charts for 106 countries, by 2-letter code, country name or a youtube.com link with a country parameter.
⬇️ Input

The actor takes a list of countries, one per row, plus the chart to read. The country list is the only required field.
| Parameter | Required | Type | Description | Example value |
|---|---|---|---|---|
startUrls | Yes | array of strings | One 2-letter country code per row (US, GB, IN, BD, JP, ...). Country names and youtube.com links with &gl=XX also work. Unknown values are skipped, not replaced with US. | ["US", "GB", "IN"] |
contentType | No | string | Chart to read: gaming (default), music or all. movies, sports and entertainment are kept for old tasks and read the all chart. | "music" |
maxVideosPerInput | No | integer | Maximum saved videos per country row, minimum 0. 0 = the whole chart (about 50). Default 10. | 20 |
proxyConfiguration | No | object | Default: a direct connection (or your proxy) that steps up to Apify datacenter, then residential proxy, only when YouTube refuses a page. | {"useApifyProxy": false} |
Accepted country formats:
US,usUnited States,Japan,south koreahttps://www.youtube.com/feed/trending?gl=GB
Free plan limits
Users on the Apify free plan can fetch up to 20 videos per run (all countries together) and 200 videos per month. When the limit is reached, the run finishes successfully with a status message explaining the limit. Upgrade to any paid Apify plan to remove these limits.
Example input
{"startUrls": ["US","GB","IN"],"contentType": "music","maxVideosPerInput": 20,"proxyConfiguration": {"useApifyProxy": false}}
⬆️ Output

Every trending video is one typed, normalized JSON item with the same 30 fields on every run; a value YouTube does not show is null, never made up. Export as JSON (default), CSV or Excel.
Example output
{"type": "video","id": "pB0Wjj0jTFo","title": "You CAN'T Win At This Casino","status": "OK","url": "https://www.youtube.com/watch?v=pB0Wjj0jTFo","description": "We played Who's Cheating again... this time with more people","duration": 2208,"views": "1324119","likes": "43397","comments": "1.1K","channel": {"id": "UCzXwjTI6c6mVn6oui_p6oiw","name": "SMii7Y","handle": "@SMii7Y","url": "https://www.youtube.com/@SMii7Y","subscriberCount": "9.11M subscribers","thumbnails": [{"url": "https://yt3.ggpht.com/ytc/AIdro_mPtRF9gjBwYY0sZXjNfrhVmND-OaL_sMYvsX1-_lyqbVA=s48-c-k-c0x00ffffff-no-rj", "width": 48, "height": 48}],"badges": ["Verified"]},"keywords": ["smii7y", "smii7yplus", "whos cheating"],"isRatingsAllowed": true,"isLive": false,"isFamilySafe": true,"category": "Gaming","isPrivate": false,"isExclusive": false,"thumbnails": [{"url": "https://i.ytimg.com/vi/pB0Wjj0jTFo/hqdefault.jpg", "width": 168, "height": 94}],"embedUrl": "https://www.youtube.com/embed/pB0Wjj0jTFo","isEmbeddable": true,"isUnlisted": false,"publishDate": "2026-11-13T12:13:09-08:00","relativeDate": "12 hours ago","uploadDate": "2026-11-13T12:13:09-08:00","dataSource": "video page","country": "US","trendingCategory": "gaming","trendingRank": 1,"input": "US"}
How does it work?
Youtube Trending Scraper reads public data that any logged-out visitor can see, with plain HTTP requests and no browser. For each country it reads the public trending chart you picked, keeps the videos in chart order, then reads each video's public YouTube page for the full details. If a video page cannot be read, the row is still saved from the chart data and marked as such.
The run starts on a direct connection. If YouTube refuses a page, the actor retries and moves to Apify datacenter proxy and then residential proxy for the rest of the run. It returns only publicly visible data, needs no YouTube account, and keeps the same 30-field schema even when YouTube changes its site.
How do you integrate Youtube Trending Scraper into your stack?
It works with what you already use: the REST API from any language, MCP for AI agents, and no-code tools.
Using Youtube Trending Scraper with the Apify API
import requestsresp = requests.post("https://api.apify.com/v2/acts/socialdataapi~youtube-trending-scraper/run-sync-get-dataset-items",params={"token": "APIFY_TOKEN"},json={"startUrls": ["US", "GB"], "contentType": "music", "maxVideosPerInput": 10},)for video in resp.json():print(video["country"], video["trendingRank"], video["title"])
Works in Go, Ruby, Node.js, cURL — any language that can make an HTTP request.
MCP integration for AI agents
Add the actor to your AI client with one command:
$claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/youtube-trending-scraper"
This registers Youtube Trending Scraper as a tool your agent can call directly. Ask it what is trending in Japan's music chart and it starts the run, waits and reads the video rows back. It works in Claude Code, Cursor and Windsurf, and in any other client that speaks MCP over HTTP.
No-code tools (n8n, Make, LangChain)
n8n: add the Apify node and choose "Run an Actor" with socialdataapi/youtube-trending-scraper, or use the HTTP Request node pointed at the run-sync endpoint with your token. Each video comes back as one item for the next node.
Make: use the Apify app's "Run an Actor" module, then "Get Dataset Items" to send each trending video to a Google Sheet, Airtable or Slack module.
LangChain: install langchain-apify and load ApifyActorsTool("socialdataapi/youtube-trending-scraper") so your agent can fetch trending videos as a tool.
Is it legal to scrape YouTube data?
Scraping publicly available YouTube data is generally legal, as long as you collect only what any visitor can see and use it responsibly. Youtube Trending Scraper returns only public video and channel data — what any user sees without logging in. Channel names and descriptions can count as personal data under the GDPR: collecting public data is generally permissible, but storing and using it must comply with the data-protection law that applies to you. Consult legal counsel if your use case involves bulk storage of personal data.
Frequently asked questions
What fields does Youtube Trending Scraper return?
It returns the country, trending rank, title, view count and like count of each video, plus the comment count, duration, keywords, category, publish date and channel details. See the data fields section for all 30 fields.
Does Youtube Trending Scraper require a YouTube account or login?
No. Only public video data is extracted, the same data YouTube shows to logged-out visitors. No credentials are needed.
How fast does Youtube Trending Scraper run?
A recorded run returned 199 videos from four whole country charts in 116.5 seconds; two countries with 5 videos each took about 10 seconds. Data is fetched live on every run, not cached.
What happens if a country is unknown or a chart is missing?
An unknown country is skipped with a warning in the log and gives no rows; it is never replaced with another country. A chart that cannot be read is logged and the run goes on with the next country. A video whose page cannot be read is still saved from the chart data, with the data source set to "trending list" and the fields only the video page has left null; filter on the data source in code if you need full rows.
Can I scrape multiple YouTube trending charts at once?
Yes. Add many country rows to one run; each row reads the chart you picked, and on paid plans three countries are read at a time.
Does Youtube Trending Scraper work with Claude, ChatGPT, and other AI agent tools?
Yes — Youtube Trending Scraper is available as an MCP tool. Register it in Claude Code, Cursor or Windsurf with:
$claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/youtube-trending-scraper"
Any agent that can call an HTTP endpoint can use the REST API directly.
Does Youtube Trending Scraper return data in a format LLMs can use directly?
Yes. Every video is typed, normalized JSON with consistent field names. No HTML parsing, no selectors. Pass it straight to an LLM, index it into a vector store, or feed it to an agent tool — no transformation step.
What happens when YouTube changes its layout or updates its anti-bot system?
The actor is maintained. When YouTube changes, the actor is updated, and your calls keep returning the same JSON schema with no changes on your end.
Can I use Youtube Trending Scraper without managing proxies or browser infrastructure?
Yes. The actor starts on a direct connection and switches to Apify proxies by itself when YouTube refuses a page. You send one request and get structured JSON back. No proxy accounts, no headless browser setup, no maintenance.
Which YouTube trending fields work best for AI training data and RAG indexing?
For RAG, use the text fields: the title, description, keywords and category. For training data, use the numeric and boolean fields: trending rank, duration, view and like counts, and the live, family-safe and embeddable flags. View, like and comment counts are strings as shown, so cast them to numbers first.
Related scrapers
| Scraper | What it extracts |
|---|---|
| YouTube Scraper | YouTube videos, channels and their details. |
| YouTube Search Scraper | Videos that match a YouTube search. |
| YouTube Video Details Scraper | Full details of single YouTube videos. |
| YouTube Shorts Scraper | YouTube Shorts and their stats. |
| TikTok Trending Videos Scraper | Videos trending on TikTok. |
| Twitter Trends Scraper | Trending topics on X (Twitter). |
Your feedback
Found a bug or missing a field? Let us know on this Actor's Issues tab in Apify Console. Every report is read, and fixes ship as new versions of the actor.