YouTube trending feed scraper in n8n

Get video lists for YouTube's Gaming, Music, News, Movies and Trending sections in any of 31 regional markets, with views, duration and channel details; rows from a fallback search are labeled.

What this workflow does

Import it and n8n runs the YouTube Trending Feed Extractor by Category & Market Actor on Apify every day at 08:00 with the starter input below. Each row comes back with source, title, channel, chart views and 66 more; repeats with the same url are dropped. A Google Sheets append is included and stays off until you add your sheet. The only credential it needs is your Apify API token.

Read from the workflow file, built for YouTube Trending Feed Extractor by Category & Market version 1.0.2. Updated 2026-11-14.
YouTube Social media and trends Runs daily at 08:00

How the rows travel

6 nodes, in the order n8n runs them. The yellow stop is the call to the Apify Actor; the dashed stop is optional.

  1. Daily trigger Schedule trigger
  2. Configure input Code
  3. Run Apify Actor HTTP Request
  4. Normalize + dedupe Code
  5. Rows ready No operation
  6. Google Sheets (optional) Google Sheets, off until you switch it on

Input

The Configure input node holds the starter input. Change it there; every setting the Actor accepts is listed below.

{
  "maxItems": 25,
  "maxItemsPerChart": 3,
  "includeVideoDetails": false,
  "maxConcurrency": 3,
  "mode": "charts"
}
Input settings of YouTube Trending Feed Extractor by Category & Market
SettingTypeRequiredDefaultWhat it does
mode string Yes charts What to read. 'charts' uses YouTube's official music, trailer and podcast charts. 'hubs' uses YouTube's category pages such as Gaming trending, News, Sports, Learning and Courses. One of: charts, hubs.
charts array No ["trendingVideos"] One or more YouTube charts. Trending music videos is the official replacement for the retired general Trending page. 7 choices.
categories array No ["gaming"] One or more category pages. Gaming trending and Gaming live return up to 50 videos. News reads the selected news sections. One of: gaming, gamingLive, news, sports, learning, courses.
newsSections array No ["top"] Which News tabs to read. 'Top stories' is the main /news page; the other sections are direct news-destination feeds. Available sections vary by country. 8 choices.
countries array No ["US"] One or more markets. The 68 YouTube Charts markets are supported; 'global' is supported only for charts that publish a global ranking (top videos, top songs, top artists, Shorts… 69 choices.
period string No daily Daily or weekly ranking. Weekly-only charts automatically use weekly. Current-only charts such as Trending music videos and Trending movie trailers ignore this setting. One of: daily, weekly.
date string No – Historical chart date in YYYY-MM-DD format. Leave empty for the latest chart. Supported by Top music videos, Top songs, Top artists and Shorts songs; current-only charts ignore it.
maxItems integer No 100 Total data rows to return across all charts, categories and countries.
maxItemsPerChart integer No 100 Rows to take from each chart/country or category/country combination. Source ceilings still apply.
includeVideoDetails boolean No true Fetch exact lifetime views, likes, upload dates and descriptions for every video. YouTube category, tags, Shorts eligibility and family-safe flags are filled when YouTube's player…
maxConcurrency integer No 5 How many exact-detail requests may run in parallel.
onlyNew boolean No false Skip rows already emitted by a previous run with the same monitor name.
monitorName string No default Separate only-new histories by monitor name.

What each row holds

Every field the Actor returns stays in the row (70 in its dataset schema). Normalize + dedupe trims text, drops empty fields, removes repeats with the same url and adds _source and _scrapedAt. The main fields:

Main output fields of YouTube Trending Feed Extractor by Category & Market
FieldWhat it is
sourceNameSource
titleTitle
channelNameChannel
chartViewCountChart Views
viewCountLifetime Views
countryCodeCountry
chartTypeChart
urlURL
statusStatus

What the first run costs

With the starter input (maxItems = 25) a first run costs about $0.42 on the Apify Free plan: $0.40 to start the run at 4 GB of memory and $0.02 for the results, plus platform usage.

The Actor lists $0.99 per 1,000 results; its catalogue page breaks the price down by Apify plan. The Apify Free plan includes $5 of usage a month.

The Actor behind it

YouTube Trending Feed Extractor by Category & Market: Get video lists for YouTube's Gaming, Music, News, Movies and Trending sections in any of 31 regional markets, with views, duration and channel details; rows from a fallback search are labeled.

The same job from an AI agent

The matching agent skill gives Claude Code, Codex, Cursor and other agents the same Actor, input and fields. Install it in one line:

npx skills add https://scraperfinder.com --skill youtube-trending-feed-extractor-by-category-and-market

The youTube trending feed scraper skill, with manual install and run steps

Questions people ask

How do I import this workflow into n8n?

Copy https://scraperfinder.com/n8n/youtube-trending-feed-extractor-by-category-and-market.json. In n8n, open a new workflow, click the three-dot menu, choose Import from URL and paste it. Or download the JSON file and use Import from File; both give the same 6 nodes.

Do I need an Apify account?

Yes. The workflow calls the YouTube Trending Feed Extractor by Category & Market Actor through the Apify API with your own token, and each run is billed to your Apify account. The Free plan includes $5 of usage a month.

What does a run cost?

With the starter input (maxItems = 25) a first run costs about $0.42 on the Apify Free plan: $0.40 to start the run at 4 GB of memory and $0.02 for the results, plus platform usage. The Actor's Store page shows the current price.

Can I change what it collects?

Yes: edit the input object in the Configure input node. The Actor takes 13 settings; the table on this page lists each one with its default. Raise maxItems once the first rows look right.

Does it work without Google Sheets?

Yes. The rows wait in the Rows ready node, so you can connect any other node there: a database, Airtable, a webhook or an email. The Google Sheets node is only one option.

Workflow updated 2026-11-14