Use this powerful n8n workflow to automate YouTube competitor analysis. Input a channel name, extract trending video metrics, calculate engagement, and seamlessly log all critical performance data into Google Sheets.
Download this n8n workflow template and start using it instantly.
Marketing Analysts and Content Strategists seeking data-driven competitor intelligence.
SEO and Growth Hackers who need to track trending content patterns.
Users looking for ready-to-use n8n templates to automate data extraction tasks.
Anyone who wants to analyze video performance using a custom engagement score calculated within an n8n node.
Manually tracking viral videos and calculating engagement rates for competitors is inefficient and prone to error. This specific n8n automation template solves this challenge by providing a structured mechanism for competitor video analysis. By leveraging the YouTube Data API within the n8n workflow, you input a channel name and the system automatically retrieves key information about their top videos (ordered by view count), including titles, URLs, view counts, and interaction metrics. Crucially, the n8n workflow calculates a custom performance metric (based on likes and comments relative to views). All extracted and calculated data is then efficiently organized and appended to a designated Google Sheet, ensuring your competitive intelligence is timely and actionable. This powerful n8n solution showcases the capability of combining API calls and custom logic.
The entire process begins with the On form submission n8n trigger. The user inputs the target Channel Name, the desired number of videos, and video duration format (short, medium, long).
Set Parameters n8n node.HTTP Request n8n node queries the YouTube API (using the provided API key) to convert the channel name into the required Channel ID.Code n8n node processes the JSON response, isolating the Channel ID necessary for subsequent API calls.HTTP Request n8n node searches for videos using the Channel ID, ordering the results by viewCount to find trending or viral videos, and adhering to the specified limit and format. This is a crucial data-gathering n8n node.HTTP Request n8n node to fetch detailed statistics and snippets (views, likes, comments, description, title) for each video.Code n8n nodes refine the data. The first generates a short marketing 'hook' from the description. The second, named Video Performance, calculates the custom engagement score: ((likeCount + commentCount) / viewCount) * 100.Append row in sheet n8n node (Google Sheets) takes the complete, enriched dataset and logs it into your specified Google Sheet, completing the execution of this comprehensive n8n workflow.To utilize this n8n templates JSON, follow these steps:
Set Parameters n8n node, or set up a dedicated credential for the HTTP Request nodes.Append row in sheet1 n8n node, selecting the correct spreadsheet and sheet name where the analytics data will be stored.On form submission1 n8n trigger node to initiate the analysis. On form submission1 (Form Trigger): This acts as the initial n8n trigger, capturing user input for the Channel Name, Number of Videos, and Video Format (duration).
HTTP Request (Get Channel ID1 & Get Video IDs1 & Get Video Data1): These n8n nodes are essential for interacting with the YouTube Data API. They handle the sequential steps of finding the Channel ID, listing the top Video IDs ordered by view count, and fetching detailed statistics for each video.
Code (Extract Channel ID1, Extract IDs1, Extract Video Data1): These utility n8n node steps are used for parsing complex API responses, flattening the JSON structure, and extracting specific fields (like IDs, titles, and counts) needed for the next step in the n8n workflow.
Code (Video Performance1): A critical custom n8n node that calculates the engagement ratio, providing a data point useful for competitive analysis.
Analyze YouTube comments automatically using Google Gemini AI. This specialized n8n workflow extracts comments, determines sentiment (positive/negative), and stores all results directly in Google Sheets. Install this n8n template today!

Use this robust n8n workflow to automatically monitor a Google Sheet for new video IDs, scrape YouTube comments, perform advanced sentiment analysis using GPT-4o, and deliver a detailed report via Gmail.

Automate YouTube comment analysis using GPT-4o via this powerful n8n workflow. Get instant, summarized reports sent directly to your inbox using the Gmail n8n node.

Automate sophisticated lead generation with this powerful n8n workflow. Scrape YouTube comments using Apify, and deploy an n8n AI Agent (Gemini) to autonomously enrich prospect data, finding social profiles and emails before storing everything neatly in Google Sheets.








































