Skip to content

On a schedule

Log daily YouTube channel stats to Google Sheets

One row per channel per day records subscribers, total views and video count, with the change since the day before.

Runs
On a schedule
Apps
Google Sheets, YouTube
AI
Not needed
Access
youtube.readonly; Google Sheets read+write

Send this to your assistant

Create a ClickRuntime automation: every day at 9am, log subscribers, total views and video count for my channel and two competitor channels to the Channel stats tab of my sheet, with the change since yesterday.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

YouTube Studio shows your own channel's growth, but not in a form you can chart against competitors or combine with other data. Many creators keep a sheet of subscriber counts by hand and forget to update it.

This automation records each listed channel's subscribers, total views and video count every day, with the change since the day before, in one tab.

Creators, brand marketers and agencies managing several channels use it to follow growth and compare with peers.

What you get out of it

  • Daily growth in one table

    Changes since yesterday make good and bad days obvious.

  • Compare with competitors

    Public stats for other channels sit next to yours.

  • Upload impact visible

    A rise in video count next to a jump in views shows which uploads moved the channel.

  • History you keep

    Months of daily rows can be charted any way you like.

  • Light on quota

    One API call covers up to 50 channels.

How it works

What happens, step by step

  1. Every day at 9am ClickRuntime looks up public statistics for the YouTube channels you list.

  2. It reads subscribers, total views and number of videos for each.

  3. Each channel gets a row with today's numbers and the change since yesterday's run.

Before it runs live

  • Connect your Google Sheets account and pick the spreadsheets it may use
  • Connect YouTube

What you get

RunsOn a schedule
Log daily YouTube channel stats to Google Sheetstoday, 9:00Succeeded
Google Sheets · YouTube › Channel stats2026-11-10 | Northwind Kitchen | 48,210 subs (+86) | 6,912,400 views (+21,380) | 212 videos (+1)

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Run it at a different time, more or less often, or only on weekdays
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other Google Sheets and YouTube steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
log_daily_youtube_channel_stats_to_google_sheets.pyexample
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from datetime import date
from clickruntime import on_trigger, credentials, state

CHANNEL_IDS = ["UCxxxxxxxxxxxxxxxxxxxxxx", "UCyyyyyyyyyyyyyyyyyyyyyy", "UCzzzzzzzzzzzzzzzzzzzzzz"]
SHEET_ID = "your-spreadsheet-id"

@on_trigger
def run(event):
    creds = Credentials(credentials.connection("google", "work"))
    yt = build("youtube", "v3", credentials=creds, cache_discovery=False)
    items = yt.channels().list(part="snippet,statistics", id=",".join(CHANNEL_IDS)).execute().get("items", [])
    prev, rows, today = state.get("prev") or {}, [], date.today().isoformat()
    for c in items:
        s = c["statistics"]
        now = [int(s.get("subscriberCount", 0)), int(s.get("viewCount", 0)), int(s.get("videoCount", 0))]
        before = prev.get(c["id"], now)
        rows.append([today, c["snippet"]["title"], now[0], now[0] - before[0], now[1], now[1] - before[1], now[2], now[2] - before[2]])
        prev[c["id"]] = now
    build("sheets", "v4", credentials=creds, cache_discovery=False).spreadsheets().values().append(
        spreadsheetId=SHEET_ID, range="Channel stats!A:H", valueInputOption="RAW", body={"values": rows}).execute()
    state.set("prev", prev)
    return {"channels": len(rows)}

FAQ

Common questions

Can I track channels I do not own?
Yes. Subscriber counts, total views and video counts are public for any channel, so competitors work the same as your own.
Why do subscriber numbers move in steps?
YouTube rounds public subscriber counts for larger channels, for example to three significant figures. Daily changes for big channels may show zero, then a jump.
Can it log watch time or revenue?
Those come from the YouTube Analytics API and only for channels you own. Ask your assistant to add an Analytics call for your channel if you want them.
What permissions does it need?
youtube.readonly; Google Sheets read+write. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it runs (on a schedule). Checks that find nothing to do and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Log daily YouTube channel stats to Google Sheets” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.