Youtube outlier detector (find trending content based on your competitors)
Ready for 3.0What 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).
- Postgres: run a query
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- sanitize_data (Code): runs custom JavaScript code
- fetch_last_registered (Postgres): run a query
- get_videos (YouTube): work with video
- If: checks a condition and branches into true / false
- find_video_data (HTTP Request): calls googleapis.com
- already_populated (Edit Fields (Set)): sets 1 field: report
- remove_shorts (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
…plus 7 more steps. See the full node list below.
Services it uses
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Manual Trigger
n8n-nodes-base.manualTrigger - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Postgres
n8n-nodes-base.postgres - YouTube
n8n-nodes-base.youTube - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set
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…