Skip to content
WhitecrestLet’s talk

Marketing & content

YouTube Performance Analyzer.

A Telegram bot that takes a YouTube channel link and returns a performance report ranked by view velocity. The report compares videos against the channel's own history.

YouTube Performance Analyzer workflow

01 / The challenge

Video performance means little without a channel baseline.

Views per hour only make sense against what is normal for that channel's posting rhythm and formats. Building that comparison by hand means cross-checking many video stats every time someone asks.

02 / The approach

Compute a channel baseline, then write the report.

The bot pulls the channel and its latest 20 uploads from the YouTube Data API, computes views per hour, age and engagement, and ranks videos by velocity. It builds a baseline and channel profile, logs a snapshot to Sheets and returns a five-section Gemini report in Telegram.

  • History guard: a baseline is produced only when at least five videos are older than 48 hours.
  • Channel profile: upload cadence, format split and title patterns describe what is normal for the channel.
  • Snapshot logging: each analysis is appended to Google Sheets, building a time series across requests.
  • Batched API calls: stats for the latest 20 uploads are fetched in one batched request to save quota.

Stack

  • n8n
  • YouTube Data API
  • Telegram
  • Gemini
  • Google Sheets

More automations

Marketing & content

Your next project

Something in mind?
Let’s find your starting point.

Discuss your project