youtube-competitor-analyzer
Skill3 starsChanged 10 months agoMITView on GitHub
Find and analyze YouTube competitor channels using YouTube Data API v3. Discover competitors through keyword search, category matching, content similarity, and related channel discovery. Compare metrics, content strategies, and market positioning. Use when users want to (1) Find competitors for their YouTube channel, (2) Analyze competitor performance metrics, (3) Compare their channel against competitors, (4) Identify content gaps and opportunities, (5) Benchmark against similar creators, (6) Generate competitive analysis reports. Requires user's YouTube Data API v3 key.
- Reads credentials
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- nikhilbhansali/youtube-data-skillsedited, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- nikhilbhansali/youtube-data-skills★ 419% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
Search within same YouTube category as user's channel.
- Distinctive: line 48
Search using user's video titles/descriptions to find channels creating similar content.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
YouTube Competitor Analyzer
Find and analyze competitor channels using YouTube Data API v3.
Setup
- API Key: Get from Google Cloud Console - enable YouTube Data API v3
- Input: User's channel (for context) OR list of competitor channels to analyze directly
API Endpoints
BASE_URL = https://www.googleapis.com/youtube/v3
# Search channels
GET /search?part=snippet&q={query}&type=channel&maxResults={n}&key={API_KEY}
# Channel details
GET /channels?part=snippet,statistics,contentDetails,brandingSettings&id={ids}&key={API_KEY}
# Channel videos
GET /search?part=snippet&channelId={id}&order=date&type=video&maxResults=50&key={API_KEY}
# Video details
GET /videos?part=snippet,statistics,contentDetails&id={ids}&key={API_KEY}Competitor Discovery Methods
1. Keyword Search
Extract keywords from user's channel (description, title, brandingSettings.keywords), search for channels:
GET /search?q={keyword}&type=channel&maxResults=102. Content Similarity
Get user's recent video titles, extract frequent words (>4 chars), search channels with those terms.
3. Category Search
Search within same YouTube category as user's channel.
4. Related Discovery
Search using user's video titles/descriptions to find channels creating similar content.
5. Direct Input
User provides specific channels to analyze: @handles, channel IDs, or URLs.
Competitor Ranking
// Size similarity (log scale)
sizeSimilarity = 1 - Math.abs(Math.log10(compSubs+1) - Math.log10(targetSubs+1)) / 10;
// Engagement per video
engagementRate = viewCount / (videoCount || 1);
// Overall score
overallScore = sizeSimilarity * 0.3 + relevanceScore * 0.7;Sort by overallScore, return top 10-15.
Comparative Analysis
For each competitor, extract:
| Metric | Description |
| Subscribers | Direct count |
| Total Views | Channel lifetime views |
| Video Count | Total videos published |
| Views/Video | Average performance |
| Upload Frequency | Videos per month |
| Channel Age | Days since creation |
Compare user channel vs competitor averages:
- Above/below average positioning
- Growth rate comparison
- Content volume gaps
Content Gap Analysis
Compare across competitors:
- Content types they cover vs user doesn't
- Duration preferences
- Upload schedules
- Title/thumbnail patterns
- High-performing topics
Output Report Structure
# Competitive Analysis Report
## Executive Summary
- Competitors found, key positioning insights
## Competitor Table
| Channel | Subs | Videos | Views | Views/Video | Score |
## Competitive Positioning
- User vs competitor averages
- Market position assessment
## Content Strategy Comparison
- What competitors do differently
- Common patterns among top performers
## Opportunities
- Content gaps to fill
- Underserved niches
- Schedule optimization
## Recommendations
- Strategic actions based on analysisNiche-Specific Search Terms
For spiritual/wellness channels:
meditation, mindfulness, yoga, spiritual, consciousness, wellness, self-help, awakeningFor tech channels:
tech review, unboxing, tutorial, how to, comparison, tips, gadgetFor gaming:
gameplay, let's play, walkthrough, gaming, stream, esportsQuota Optimization
- Limit discovery to 20-30 initial channels
- Detailed analysis for top 10-15 only
- Batch video IDs (max 50 per call)
- Cache results when comparing multiple times
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

