YouTube Channel Benchmark Notebook with AI Transcript Audit
Step one of a YouTube SEO audit is a benchmark: how your channel compares with competitors on posting frequency, views, engagement and the basics of video optimisation. This free Google Colab notebook builds that table from the official YouTube Data API v3, replacing the copy-paste from third-party tools in my original audit guide. A companion script uses Claude to audit your video transcripts for hooks, title promises and retention cues.
Who it’s for
YouTube and video SEOs, content marketers and agencies auditing a channel against its competitors. You need a YouTube Data API v3 key from Google Cloud. The transcript audit needs an Anthropic API key.
How to use it
- In Google Cloud, enable YouTube Data API v3, create an API key and restrict it to that API.
- Add the key as a Colab secret named
YOUTUBE_API_KEYand open the notebook. - List your channel and your competitors, then run the benchmark. It reads the last 50 uploads per channel.
- Optionally check which channels rank in YouTube search for your keywords.
- Export the channel and video CSVs.
- For the transcript audit, put one .txt, .srt or .vtt file per video in a folder and run
ai_transcript_audit.pywith--dry-runfirst.
What you get
- Per channel: subscribers, videos, total views, playlists, posting frequency, average and median views, likes, comments, engagement rate and the three best videos
- Audit checks: the share of recent uploads with chapters, uploaded captions and tags, the Shorts-length share, title length, description length and channel keywords
- A video-level CSV for your own analysis
- From the transcript audit: main topic, entities, whether the title’s promise is delivered, the hook, retention cues and suggested chapters, each backed by a quote from the transcript
Limits
The API doesn’t flag Shorts, so the notebook counts uploads of three minutes or less as a proxy. Automatic captions aren’t reported, only uploaded ones; hidden like counts come back as zero, and YouTube rounds subscriber counts. A channel benchmark uses only a few units of the daily API quota. The transcript audit was tested with a mocked client, so check its quotes before you act on them, and strip personal data from anything that isn’t your own content.
Use it with How to do a YouTube SEO Audit and the free YouTube SEO Checklist for the optimisation side. The benchmark is a snapshot, so rerun it every quarter to see whether changes to your titles, chapters or posting rhythm move the numbers.
What’s included
- Benchmark table for your channel and competitors from the official YouTube Data API v3
- Posting frequency, average and median views, engagement rate and best videos per channel
- Audit checks: chapters, uploaded captions, tags, Shorts-length share, title and description length
- Video-level CSV for your own analysis
- Companion script audits transcripts with Claude, every finding backed by a quote
Where this resource is used on MLforSEO
Walkthroughs on the blog
Concepts behind it
More video and visual resources
- Coding Script or NotebookWhisper API Transcription Notebook: Bulk Audio, Long Files and SRT Captions
- Coding Script or NotebookYouTube Keyword and Tag Research Notebook (Autocomplete + Competitor Tags)
- Coding Script or NotebookImage SEO Audit and Bulk AI Alt Text Generator (Colab Notebook)
- ChecklistYouTube SEO Checklist: Improve Video Visibility and Channel Health (Checklist)
- Coding Script or NotebookImage Clustering by Color with Three Machine Learning Approaches for Visual Content Organization
- Reporting · Coding Script or NotebookPyTrends Google Trends API Notebook (2026 Refresh)
See all 6 video and visual resources →See all 15 reporting resources →See all 73 coding script or notebook resources →
