Skip to main content
Ram.Franco LogoRam.Franco
YouTube Performance Analyzer: On Demand Channel Reports via Telegram

Case Study

YouTube Performance Analyzer: On Demand Channel Reports via Telegram

Send a YouTube channel link to a Telegram bot and get back a velocity ranked, benchmark aware performance report: computed from real upload data, not a generic template.

Automation Architect (n8n) · Independent Practice
Live

The Problem

Judging whether a YouTube channel's latest upload is actually performing well requires a baseline: views per hour means nothing without knowing what "normal" looks like for that specific channel's cadence and format mix. Pulling that comparison together by hand means cross referencing a dozen video stats manually every time someone asks.

Architecture

Telegram Message → Extract Channel ID/Handle → YouTube Data API (channel + latest 20 uploads + per video stats) → Compute Metrics (views/hour, age, engagement per 1K views) → Rank by Velocity → Compute Baseline & "Fingerprint" (cadence, format split, title patterns, trend) → [insufficient history: no baseline message] / [sufficient: log snapshot to Sheets] → Gemini 5 Section Report → Telegram Reply

What It Does

A real statistical baseline, not a single video snapshot: the workflow requires at least five videos older than 48 hours before it will generate a baseline at all; judging one video against nothing is explicitly refused rather than faked with insufficient data.

Channel "fingerprinting," not just raw numbers: beyond velocity, it derives upload cadence, format splits, and title patterns to characterize what's normal for this channel specifically, so the eventual report compares a video against its own channel's history rather than a generic industry number.

Snapshot logging turns one off queries into a time series: every analysis appends a row to Google Sheets, so repeated requests for the same channel build a real historical dataset over time instead of each query being a stateless, disconnected lookup.

Batched API usage for the expensive calls: per video statistics for the latest 20 uploads are fetched as a batched request rather than 20 sequential calls, which matters against the YouTube Data API's daily quota.

Engineering Focus

The insufficient history guard is the detail worth noting: it's a small piece of logic, but it's the difference between a tool that occasionally produces a misleadingly confident report off three data points and one that's honest about when it doesn't have enough signal yet.

What I'd Harden

Before opening this up beyond personal use I'd want: caching on repeated channel lookups within a short window (the YouTube Data API quota is finite and shared), input validation hardened against malformed or spoofed channel handles, and the batched per video stats call wrapped with explicit quota exceeded handling rather than letting it fail generically.

Gallery

YouTube Performance Analyzer: On Demand Channel Reports via Telegram

Stack

n8nYouTube Data APITelegramGeminiGoogle SheetsAnalytics

Project Links

Download Workflow (.json)

More case studies

Activate to toggle technology brand colors.

Limited Availability

Ready to Build Something Extraordinary?

Whether you have a fully defined project scope or just a high level vision, let's discuss how we can bring it to life with production grade engineering.

Available for new projects