n8n Automation Template

Find Viral YouTube
Videos Before
Everyone Else

The n8n workflow template that automatically scans YouTube, calculates real engagement scores, and surfaces trending videos ranked by what's actually resonating — not just view counts.

Free — no purchase needed

Get weekly YouTube trend insights

Join creators and analysts who get our free trend reports every week.

No spam. Unsubscribe anytime.

✓ You're on the list! Check your inbox.
Ready to buy the full template?
YouTube Trending Video Analyzer dashboard
Top result today 2.4M views · 8.7% engagement
Time to run < 60 seconds

One-time purchase. Works with n8n Desktop & Cloud.


What's inside

Key Features

Everything you need to track what's trending

Stop manually searching YouTube. Let the workflow do the heavy lifting.

🔍

Automated Trend Discovery

Searches YouTube for any keyword — pets, tech, finance, gaming — and pulls the top 25 videos from the past 7 days automatically.

📊

Smart Engagement Scoring

Calculates a real Engagement Rate % for every video — so you find content that's actually connecting, not just gaming the algorithm.

Duration Filter Built In

Converts YouTube's cryptic ISO 8601 durations into readable times and pre-filters by length. Short-form, long-form — your call.

📈

Deep Performance Metrics

Pulls view counts, like counts, and comment counts for every video — far more signal than YouTube's own trending tab gives you.

🏆

Auto-Sorted Output

Results are automatically ranked from highest to lowest view count. The most viral content is always at the top of your list.

Plug & Play Setup

Set your YouTube API key and target keyword once. That's it. The entire pipeline runs in under 60 seconds.

How It Works

From keyword to ranked data in 5 steps

The entire workflow runs inside n8n. No code required beyond one pre-built JavaScript node.

1

Configure Once

Drop in your YouTube Data API v3 key and set your target keyword in the first node. Takes 90 seconds.

2

Search & Enrich

The workflow queries YouTube for the top 25 matching videos from the last 7 days, then pulls full stats for each one.

3

Score & Filter

A built-in JavaScript node calculates engagement rates and filters by video length — keeping only what's relevant.

4

Ranked Report

Results are sorted highest-to-lowest by views. Your viral content shortlist is ready — no spreadsheet work needed.

5

Run Anytime

Trigger manually or schedule it daily. Fresh trend data on demand, every time.

n8n workflow automation diagram

What You Get

Clean, actionable output — every run

No messy data. Just a ranked list you can act on immediately.

Ranked YouTube analytics output

Video title + direct URL

Every result links directly to the video. One click to watch, analyze, or take inspiration from the content.

View count, likes, and comments

Three data points that together tell a far more complete story than views alone.

Calculated engagement rate %

The metric that separates genuinely resonant content from click-bait that got lucky on thumbnails.

Human-readable video duration

No more decoding ISO 8601 strings. Durations come out as "4m 32s" — instantly usable for filtering.

Ready to stop guessing
what's trending?

Get the template, plug in your API key, and run your first trend report in under 5 minutes.

Requires n8n (Desktop or Cloud) · YouTube Data API v3 key (free from Google Cloud)