Templates / Youtube outlier detector (find trending content based on your competitors)

Youtube outlier detector (find trending content based on your competitors)

Ready for 3.0

by Leonardo Grigorio ✓ · 8,840 views · created 2025-02-14 · Market Research

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 19 nodes and runs when another workflow calls it (plus 1 other trigger). Along the way it connects Postgres and YouTube. It also calls googleapis.com over HTTP.

How it runs

Trigger: When another workflow calls it (plus 1 other trigger).

  1. Postgres: run a query
  2. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  3. sanitize_data (Code): runs custom JavaScript code
  4. fetch_last_registered (Postgres): run a query
  5. get_videos (YouTube): work with video
  6. If: checks a condition and branches into true / false
  7. find_video_data (HTTP Request): calls googleapis.com
  8. already_populated (Edit Fields (Set)): sets 1 field: report
  9. remove_shorts (Code): runs custom JavaScript code
  10. If: checks a condition and branches into true / false

…plus 7 more steps. See the full node list below.

Services it uses

PostgresYouTube

HTTP calls to: googleapis.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (9)

From the author

Video explanation This n8n workflow helps you identify trending videos within your niche by detecting outlier videos that significantly outperform a channel's average views. It automates the process of monitoring competitor channels, saving time and…

Excerpt from Leonardo Grigorio's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.