Skip to main content

Analyze YouTube videos for viral content with engagement scoring and Google Sheets

Workflow preview

Workflow preview
100%
Analyze YouTube videos for viral content with engagement scoring and Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Discover trending and viral YouTube videos easily with this powerful n8n automation! This workflow helps you perform bulk research on YouTube videos related to any search term, analyzing engagem...

Best for

  • Market Research automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets, n8n-nodes-base.formtrigger, n8n-nodes-base.merge, n8n-nodes-base.splitinbatches, n8n-nodes-base.wait

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Akash Kankariya.

Original n8n.io source

1.1 Workflow description

Title
Analyze YouTube videos for viral content with engagement scoring and Google Sheets
Workflow name
Analyze YouTube videos for viral content with engagement scoring and Google Sheets

šŸš€ Discover trending and viral YouTube videos easily with this powerful n8n automation! This workflow helps you perform bulk research on YouTube videos related to any search term, analyzing engagement data like views, likes, comments, and channel statistics — all in one streamlined process.

✨ Perfect for:

  • Content creators wanting to find viral video ideas
  • Marketers analyzing competitor content
  • YouTubers optimizing their content strategy

How It Works šŸŽÆ

1ļøāƒ£ Input Your Search Term — Simply enter any keyword or topic you want to research.
2ļøāƒ£ Select Video Format — Choose between short, medium, or long videos.
3ļøāƒ£ Choose Number of Videos — Define how many videos to analyze in bulk.
4ļøāƒ£ Automatic Data Fetch — The workflow grabs video IDs, then fetches detailed video data and channel statistics from the YouTube API.
5ļøāƒ£ Performance Scoring — Videos are scored based on engagement rates with easy-to-understand labels like šŸš€ HOLY HELL (viral) or šŸ’€ Dead.
6ļøāƒ£ Export to Google Sheets — All data, including thumbnails and video URLs, is appended to your Google Sheet for comprehensive review and easy sharing.

Setup Instructions šŸ› ļø

  1. Google API Key

    • Get your YouTube Data API key from Google Developers Console.
    • Add it securely in the n8n credentials manager (do not hardcode).
  2. Google Sheets Setup

    • Create a Google Sheet to store your results (template link is provided).
    • Share the sheet with your Google account used in n8n.
    • Update the workflow with your sheet's Document ID and Sheet Name if needed.
  3. Run the Workflow

    • Trigger the form webhook via browser or POST call.
    • Enter search term, format, and number of videos.
    • Let it process and check your Google Sheet for insights!

Features ✨

  • Bulk fetches the latest and top-viewed YouTube videos.
  • Intelligent video performance scoring with emojis for quick insights šŸ”„šŸŽ¬.
  • Organizes data into Google Sheets with thumbnail previews šŸ–¼ļø.
  • Easy to customize search parameters via an intuitive form.
  • Fully automated, no manual API calls needed.

Get Started Today! 🌟

Boost your YouTube content strategy and stay ahead with this powerful viral video research automation! Try it now on your n8n instance and tap into the world of viral content like a pro šŸŽ„šŸ’”

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Get Video Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 2 - Get Video IDs

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - Extract IDs

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Extract Video Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Video Performance

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Append row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 14 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 15 - Get Channel Statistics

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 16 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 17 - Channel Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 20 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 21 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Set you keys

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

3. Summary Table

Workflow Analyze YouTube videos for viral content with engagement scoring and Google Sheets
Complexity advanced
Nodes 22
Categories Market Research
Author Akash Kankariya
Published 25 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6427/6427.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Analyze YouTube videos for viral content with engagement scoring and Google Sheets do?

Discover trending and viral YouTube videos easily with this powerful n8n automation! This workflow helps you perform bulk research on YouTube videos related to any search term, analyzing engagem...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research use case.