Loading...
Loading...
Research high-performing YouTube videos in a niche using TubeLab's outlier detection API. Identifies outlier videos, analyzes top 3 relevant videos with AI, and generates reports with actionable hook formulas. Use when asked to: - Find trending videos in a YouTube niche - Research competitor content - Discover viral video patterns - Generate content ideas based on what's working - Run YouTube research - Find outlier videos - Analyze hooks and content structure Triggers: "youtube research", "find outlier videos", "research YouTube trends", "what videos are performing well", "find content ideas for my channel", "youtube trends"
npx skill4agent add bradautomates/head-of-content youtube-researchTUBELAB_API_KEYGEMINI_API_KEYgoogle-genairequestsmkdir -p youtube-research/$(date +%Y-%m-%d_%H%M%S).claude/context/youtube-channel.mdpython scripts/get_channel_videos.py CHANNEL_ID --format summaryreferences/channel-analysis-schema.mdpython .claude/skills/youtube-research/scripts/find_outliers.py \
--keywords "keyword1" "keyword2" "keyword3" "keyword4" \
--adjacent-keywords "adjacent1" "adjacent2" "adjacent3" "adjacent4" \
--output-dir youtube-research/{run-folder} \
--top 5outliers.jsonreport.mdthumbnails/*.jpgtranscripts/*.txtoutliers.json.claude/context/youtube-channel.md{RUN_FOLDER}/filtered-outliers.json{
"outliers": [/* max 3 relevant videos */],
"filter_reason": "Selected based on relevance to [user's niche]"
}python3 .claude/skills/video-content-analyzer/scripts/analyze_videos.py \
--input {RUN_FOLDER}/filtered-outliers.json \
--output {RUN_FOLDER}/video-analysis.json \
--platform youtube \
--max-videos 3video-content-analyzer{RUN_FOLDER}/outliers.json{RUN_FOLDER}/video-analysis.json{RUN_FOLDER}/report.md# YouTube Research Report
Generated: {date}
## Top Performing Hooks
Ranked by engagement. Use these formulas for your content.
### Hook 1: {technique} - {channelTitle}
- **Video**: "{title}"
- **Opening**: "{opening_line}"
- **Why it works**: {attention_grab}
- **Replicable Formula**: {replicable_formula}
- **Views**: {viewCount} | **zScore**: {zScore}
- [Watch Video]({url})
[Repeat for each analyzed video]
## Content Structure Patterns
| Video | Format | Pacing | Key Retention Techniques |
|-------|--------|--------|--------------------------|
| {title} | {format} | {pacing} | {techniques} |
## CTA Strategies
| Video | CTA Type | CTA Text | Placement |
|-------|----------|----------|-----------|
| {title} | {type} | "{cta_text}" | {placement} |
## All Outliers
### Direct Niche
| Rank | Channel | Title | Views | zScore |
|------|---------|-------|-------|--------|
[List direct niche outliers]
### Adjacent Audience
| Rank | Channel | Title | Views | zScore |
|------|---------|-------|-------|--------|
[List adjacent outliers]
## Actionable Takeaways
[Synthesize patterns into 4-6 specific recommendations based on video analysis]RUN_FOLDER="youtube-research/$(date +%Y-%m-%d_%H%M%S)" && mkdir -p "$RUN_FOLDER" && \
python .claude/skills/youtube-research/scripts/find_outliers.py \
--keywords "k1" "k2" "k3" "k4" \
--adjacent-keywords "a1" "a2" "a3" "a4" \
--output-dir "$RUN_FOLDER" --top 5python .claude/skills/youtube-research/scripts/get_channel_videos.py CHANNEL_ID [--format json|summary]| Arg | Description |
|---|---|
| YouTube channel ID (24 chars) |
| |
python .claude/skills/youtube-research/scripts/find_outliers.py --keywords K1 K2 K3 K4 --adjacent-keywords A1 A2 A3 A4 --output-dir DIR [options]| Arg | Description |
|---|---|
| Direct niche keywords (4 recommended) |
| Adjacent topic keywords (4 recommended) |
| Output directory (required) |
| Videos per category (default: 5) |
| Days back to search (default: 30) |
| Also save raw JSON data |
outliers.jsonreport.mdthumbnails/transcripts/zScore × recency_boost