Get the FREE Ultimate OpenClaw Setup Guide →

youtube-competitor-analyzer

npx machina-cli add skill nikhilbhansali/claude-youtube-skills/youtube-competitor-analyzer --openclaw
Files (1)
SKILL.md
4.1 KB

YouTube Competitor Analyzer

Find and analyze competitor channels using YouTube Data API v3.

Setup

  1. API Key: Get from Google Cloud Console - enable YouTube Data API v3
  2. 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=10

2. 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:

MetricDescription
SubscribersDirect count
Total ViewsChannel lifetime views
Video CountTotal videos published
Views/VideoAverage performance
Upload FrequencyVideos per month
Channel AgeDays 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 analysis

Niche-Specific Search Terms

For spiritual/wellness channels:

meditation, mindfulness, yoga, spiritual, consciousness, wellness, self-help, awakening

For tech channels:

tech review, unboxing, tutorial, how to, comparison, tips, gadget

For gaming:

gameplay, let's play, walkthrough, gaming, stream, esports

Quota 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

Source

git clone https://github.com/nikhilbhansali/claude-youtube-skills/blob/master/youtube-competitor-analyzer/SKILL.mdView on GitHub

Overview

Find and analyze competitor channels using YouTube Data API v3. Discover competitors through keyword search, category matching, content similarity, and related discovery. Compare metrics, content strategies, and market positioning.

How This Skill Works

The tool uses YouTube Data API v3 endpoints (search, channels, videos) to identify rival channels via keyword, content similarity, category, and related discovery. It pulls channel metrics, video data, and engagement to compute a competitiveness score using a size similarity formula, engagement rate, and an overall score, then ranks and surfaces the top performers for review.

When to Use It

  • Find competitors for their YouTube channel
  • Analyze competitor performance metrics
  • Compare their channel against competitors
  • Identify content gaps and opportunities
  • Benchmark against similar creators and generate reports

Quick Start

  1. Step 1: Get a YouTube Data API v3 key and prepare your channel or competitor list
  2. Step 2: Run discovery using keywords, category, and content similarity to collect rivals
  3. Step 3: Open the Competitive Analysis Report and apply findings to your content plan

Best Practices

  • Use multiple discovery methods: keyword search, content similarity, category, and related discovery
  • Normalize metrics across channels (subscribers, total views, video count) before scoring
  • Apply the sizeSimilarity and engagementRate calculations to derive an overall score
  • Generate and review the structured Competitive Analysis Report to guide decisions
  • Test with time-bounded windows and validate findings with qualitative checks

Example Use Cases

  • A fitness channel benchmarks against top fitness rivals to spot content gaps and optimize their posting schedule
  • A tech channel analyzes gadget reviewers to surface missing tutorial topics and improve how-tos
  • A gaming creator maps to similar channels via related discovery and adjusts upload cadence
  • A wellness channel uses the Competitive Analysis Report to inform a fresh content calendar and positioning
  • A small creator compares against mid-tier rivals to set realistic growth targets and topics

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers