Skip to main content

Track top YouTube videos by view count with Google Sheets

Workflow preview

Workflow preview
100%
Track top YouTube videos by view count with 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

Workflow Setup Guide This workflow collects the most viewed videos from specified YouTube channels and saves the data to a Google Sheet. Follow these steps to set it up: 1. Credentials Setup Google...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.googlesheets, n8n-nodes-base.splitout, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Track top YouTube videos by view count with Google Sheets
Workflow name
Track top YouTube videos by view count with Google Sheets

Workflow Setup Guide

This workflow collects the most-viewed videos from specified YouTube channels and saves the data to a Google Sheet. Follow these steps to set it up:

1. Credentials Setup

  • Google Sheets: You need to have a Google Sheets credential configured in your n8n instance. If you don't have one, go to the 'Credentials' section in n8n and add a new credential for Google Sheets.
  • YouTube API Key: You need a YouTube Data API v3 key.
    1. Go to the Google Cloud Console.
    2. Create a new project or select an existing one.
    3. Go to 'APIs & Services' > 'Library' and enable the YouTube Data API v3.
    4. Go to 'APIs & Services' > 'Credentials', click 'Create Credentials', and choose 'API key'.
    5. Copy the generated API key.

2. Google Sheet Setup

You will need one Google Sheet with two separate sheets (tabs) inside it.

Input Sheet

Use Template This sheet provides the list of YouTube channels to process.

  • Required Columns: Create a sheet with the following two columns:
    • ChannelID: The ID of the YouTube channel (e.g., T7M3PpjBZzw).
    • video_num_to_get: The number of top videos to retrieve for that channel (e.g., 5).

Output Sheet

This sheet is where the results will be saved.

  • Required Columns: The workflow will automatically append data to the following columns. You can create them beforehand or let the workflow do it.
    • channelName
    • title
    • videoId
    • videoLink

3. Node Configuration

  • Read Channel Info from Sheet:
    • Select your Google Sheets credential.
    • Enter your Spreadsheet ID.
    • Enter the name of your Input Sheet.
  • Fetch Most-Viewed Videos via YouTube API:
    • Replace YOUR_YOUTUBE_API_KEY with the API key you generated in Step 1.
  • Append Video Details to Sheet:
    • Select your Google Sheets credential.
    • Enter your Spreadsheet ID (the same one as before).
    • Enter the name of your Output Sheet.

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 - When clicking ‘Execute workflow’

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

Block 2 - Fetch Most-Viewed Videos via YouTube API

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

Block 3 - Read Channel Info from Sheet

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

Block 4 - Split Into Individual Videos

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

Block 5 - Append Video Details to Sheet

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

Block 6 - Setup Instructions & Guide

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

Block 7 - Fetch Most-Viewed Videos via YouTube API1

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

Block 8 - Read Channel Info from Sheet1

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

Block 9 - Split Into Individual Videos1

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

Block 10 - Append Video Details to Sheet1

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

Block 11 - Setup Instructions & Guide1

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

3. Summary Table

Workflow Track top YouTube videos by view count with Google Sheets
Complexity intermediate
Nodes 11
Categories Market Research
Author Taiki
Published 04 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5668/5668.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 Track top YouTube videos by view count with Google Sheets do?

Workflow Setup Guide This workflow collects the most viewed videos from specified YouTube channels and saves the data to a Google Sheet. Follow these steps to set it up: 1. Credentials Setup Google...

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.