🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

YouTube to Google Sheets, channel stats filled in

Lisa Granqvist Partner Workflow Automation Expert

Channel research sounds simple until you’re staring at 40 tabs, copying subscriber counts by hand, and realizing half the numbers changed since you opened the pages.

This YouTube Sheets automation hits marketing managers hardest, but agency strategists and creator-economy analysts feel it too. You get a ready-to-use Google Sheet that fills itself with channel titles, IDs, views, subscribers, and more, without the copy-paste mistakes.

Below is the workflow, what it replaces, and how to make it fit your research process so your sheet stays current instead of slowly rotting.

How This Automation Works

See how this solves the problem:

n8n Workflow Template: YouTube to Google Sheets, channel stats filled in

The Challenge: Keeping YouTube Channel Research Accurate

YouTube channel stats are moving targets. You grab subscriber counts for a pitch deck on Monday, and by Thursday the client asks why your numbers don’t match what they see on the channel page. Then there’s the messy part: channels can be shared as full URLs, handles, or custom URLs, so one “quick lookup” turns into a mini detective job. And when you’re benchmarking 30 to 200 channels, the mental load is real. You start second-guessing your sheet, you miss a row, and suddenly your “source of truth” becomes the thing nobody trusts.

It adds up fast. Here’s where it usually breaks down.

  • You end up re-checking the same channels every week because yesterday’s numbers are already stale.
  • Copying subscriber and view counts by hand invites tiny mistakes that ruin comparisons later.
  • Different URL formats slow everything down, especially when you’re working from client-provided lists.
  • When a lookup fails, teams often don’t notice until the final sheet is full of blanks.

The Fix: Auto-Fill Channel Stats in Google Sheets

This workflow turns a plain Google Sheet into a YouTube channel research machine. You paste a list of channel URLs (full links or custom/handle-style links) into the “Channel URLs” tab, mark the rows as Ready, and run the workflow in n8n. From there, it loops through each ready row, figures out what kind of URL it’s looking at, and calls the right YouTube API endpoint to fetch the details you care about. If the API responds correctly, the workflow writes everything back into the same row and flips the status to Finished. If something fails, it marks that row as Error so you can fix the bad input instead of quietly shipping a broken dataset.

The flow starts with a manual run in n8n, then pulls your “Ready” rows from Google Sheets. Next, it routes each URL to the correct YouTube lookup and validates the response. Finally, it updates the sheet with fresh channel data and a clear success or error status.

What Changes: Before vs. After

Real-World Impact

Say you’re auditing 60 channels for a brand partnership shortlist. Manually, you’ll usually spend about 3 minutes per channel to open the page, find subscribers and views, copy the ID or URL, and paste it cleanly, which is roughly 3 hours of focused work. With this workflow, you paste the 60 URLs once, set them to Ready, and run it; the hands-on time is closer to 10 minutes. The rest is just processing time while the sheet fills itself.

Requirements

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Google Sheets to store inputs and write results.
  • YouTube Data API (Google Cloud) to fetch channel stats.
  • Google Cloud API key or OAuth (get it from Google Cloud Console).

Skill level: Intermediate. You’ll connect Google credentials and paste API settings, but you won’t be writing code.

Need help implementing this? Talk to an automation expert (free 15-minute consultation).

The Workflow Flow

Manual run from n8n. You click Execute (or Test Workflow) when you want a refresh, which is perfect for weekly research sweeps or pre-pitch updates.

Sheet rows are pulled in batches. The workflow reads the “Channel URLs” tab in Google Sheets and only processes rows marked Ready, so you can queue work without touching the automation.

URL type is detected and routed. A Switch step separates full channel URLs from custom/handle-style URLs, then an HTTP request hits the right YouTube API endpoint for that format.

Results are validated and written back. If the API response looks good, the channel title, ID, and stats are saved into the same row and the status becomes Finished. If it fails, the row is marked Error so it’s obvious what needs attention.

You can easily modify the “Ready/Finished/Error” logic to match your internal workflow (for example, “Queued/In Review/Done”) based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Manual Trigger

This workflow starts manually so you can test and run the YouTube channel enrichment on demand.

  1. Add and open Manual Launch Trigger.
  2. Leave all fields at their defaults since this node does not require parameters.
  3. Confirm the connection flow: Manual Launch TriggerRetrieve Channel Links.

Step 2: Connect Google Sheets

Set up the spreadsheet input and ensure each row has a status of ready to be picked up.

  1. Open Retrieve Channel Links and select the spreadsheet Document with YouTube - Get Channel Information.
  2. Set the Sheet Name to Channel Urls.
  3. In Filters, ensure status equals ready.
  4. Credential Required: Connect your googleSheetsOAuth2Api credentials in Retrieve Channel Links.

⚠️ Common Pitfall: If the row_number column is missing in your sheet, updates in Update Sheet Records and Mark Sheet Error will fail because matching uses row_number.

Step 3: Set Up URL Routing and API Retrieval

This step routes each channel URL to the correct API request and validates the response.

  1. Open Iterate Channel Rows to confirm it batches rows; connect it between Retrieve Channel Links and Route URL Pattern.
  2. In Route URL Pattern, verify the two regex rules use {{ $json.channel_url }} to match channel ID (/UC[A-Za-z0-9_-]{22}/) and handle (/@([^/]+)/).
  3. Configure Fetch Channel by ID with URL https://www.googleapis.com/youtube/v3/channels and query parameter id set to {{ $json.channel_url.match(/channel\/([A-Za-z0-9_-]+)/)[1] || ''}}.
  4. Configure Fetch Channel by Handle with URL https://www.googleapis.com/youtube/v3/channels and query parameter forHandle set to {{ $json.channel_url.split('@')[1] || ''}}.
  5. Credential Required: Connect your youTubeOAuth2Api credentials in both Fetch Channel by ID and Fetch Channel by Handle.
  6. In Validate API Result, confirm the condition {{ $json.body.pageInfo.totalResults }} is greater than 0.

Step 4: Configure Output Updates

Successful API calls update the sheet; failures are marked with an error status and timestamp.

  1. Open Update Sheet Records and confirm Operation is update with Matching Columns set to row_number.
  2. Map the key fields using these expressions: title {{ $json.body.items[0].snippet.title }}, channel_id {{ $json.body.items[0].id }}, custom_url {{ $json.body.items[0].snippet.customUrl }}, and last_fetched_time {{ $now.toISO().toString().slice(0, 19).replace('T', ' ') }}.
  3. Credential Required: Connect your googleSheetsOAuth2Api credentials in Update Sheet Records.
  4. Open Mark Sheet Error and confirm it sets status to error with row_number {{ $('Retrieve Channel Links').item.json.row_number }} and last_fetched_time {{ $now.toISO().toString().slice(0, 19).replace('T', ' ') }}.
  5. Credential Required: Connect your googleSheetsOAuth2Api credentials in Mark Sheet Error.
  6. Confirm the loopback: Update Sheet RecordsIterate Channel Rows and Mark Sheet ErrorIterate Channel Rows.

Step 5: Test and Activate Your Workflow

Run a manual test to verify successful sheet updates and error handling before activating the workflow.

  1. Click Execute Workflow on Manual Launch Trigger to run a test.
  2. Check that rows with valid URLs are updated by Update Sheet Records with status set to finish.
  3. Verify invalid URLs route through Validate API Result to Mark Sheet Error with status set to error.
  4. Once successful, toggle the workflow to Active to use it in production.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Watch Out For

  • Google Sheets credentials can expire or need specific permissions. If things break, check the Credentials section in n8n and the sharing access on the target spreadsheet first.
  • If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
  • YouTube Data API quotas are real. If you suddenly see more Error rows, check Google Cloud Console for quota limits or a disabled API.

Common Questions

How quickly can I implement this YouTube Sheets automation automation?

About 30 minutes if your Google Cloud credentials are ready.

Can non-technical teams implement this YouTube Sheets automation?

Yes, but someone needs to handle the Google Cloud Console setup once. After that, running it is basically updating rows to Ready and clicking Execute.

Is n8n free to use for this YouTube Sheets automation workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in YouTube Data API usage, which is usually low-cost but limited by quota.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

How do I adapt this YouTube Sheets automation solution to my specific challenges?

You can swap the manual trigger for a Google Sheets trigger so the workflow runs when new rows are added or when Status changes to Ready. Many teams also add extra columns (for example, “Segment” or “Client”) and pass them through untouched so the enriched data stays grouped. If you need different outputs, adjust the “Update Sheet Records” mapping so it writes only the fields you care about, like subscribers and channel ID.

Why is my Google Sheets connection failing in this workflow?

Usually it’s expired OAuth credentials or the sheet wasn’t shared with the right Google account. Reconnect the Google Sheets credential in n8n, then confirm the spreadsheet and the “Channel URLs” tab are selected in the Get and Update nodes. If it still fails, check Google Cloud Console to ensure the Sheets API is enabled.

What’s the capacity of this YouTube Sheets automation solution?

On n8n Cloud Starter you can run thousands of executions per month, which is plenty for most research teams refreshing lists weekly. If you self-host, there’s no platform execution limit, but your server and the YouTube API quota become the bottlenecks. In practice, this workflow comfortably handles hundreds of channels in a run as long as your quota is set appropriately.

Is this YouTube Sheets automation automation better than using Zapier or Make?

Often, yes. This workflow relies on conditional routing (different URL types) plus API validation and looping through rows, and n8n handles that without turning it into a pile of separate zaps or scenarios. You also get the option to self-host, which matters when you’re doing large research refreshes and don’t want execution costs to creep up. Zapier or Make can still work if you’re enriching a tiny list and you want the simplest UI. If you’re unsure, Talk to an automation expert and we’ll sanity-check your use case.

Once this is in place, your channel research sheet stays trustworthy without someone babysitting it. Set it up, run it when you need a refresh, and move on.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal