youtube-analyticsYouTube Data API v3 analytics toolkit. Analyze YouTube channels, videos, and search results. Use when the user asks to: check YouTube channel stats, analyze video performance, compare channels, search for videos, get subscriber counts, view engagement metrics, find trending videos, get channel uploads, or analyze YouTube competition. Requires a YouTube Data API v3 key from Google Cloud Console.
Install via ClawdBot CLI:
clawdbot install adamkristopher/youtube-analyticsInstall dependencies:
cd scripts && npm install
Configure credentials by creating a .env file in the project root:
YOUTUBE_API_KEY=AIzaSy...your-api-key
YOUTUBE_DEFAULT_MAX_RESULTS=50
Prerequisites: A Google Cloud project with the YouTube Data API v3 enabled. Get your API key from the Google Cloud Console.
| User says | Function to call |
|-----------|-----------------|
| "Analyze this YouTube channel" | analyzeChannel(channelId) |
| "Compare these two channels" | compareChannels([id1, id2]) |
| "How is this video performing?" | analyzeVideo(videoId) |
| "Search YouTube for [topic]" | searchAndAnalyze(query) |
| "Get stats for this channel" | getChannelStats(channelId) |
| "Get this video's view count" | getVideoStats(videoId) |
| "Find channels about [topic]" | searchChannels(query) |
| "Show recent uploads from this channel" | getChannelVideos(channelId) |
Execute functions by importing from scripts/src/index.ts:
import { analyzeChannel, searchAndAnalyze } from './scripts/src/index.js';
const analysis = await analyzeChannel('UCxxxxxxxx');
Or run directly with tsx:
npx tsx scripts/src/index.ts
Every analysis follows three phases:
Run API functions. Each call hits the YouTube Data API and returns structured data.
All results automatically save as JSON files to results/{category}/. File naming patterns:
{sanitized_name}.jsonYYYYMMDD_HHMMSS__{operation}.jsonAfter analysis, read the saved JSON files and create a markdown summary in results/summaries/ with data tables, comparisons, and insights.
| Function | Purpose | What it gathers |
|----------|---------|----------------|
| analyzeChannel(channelId) | Full channel analysis | Channel info, recent videos, avg views per video |
| compareChannels(channelIds) | Compare multiple channels | Side-by-side subscribers, views, video counts |
| analyzeVideo(videoId) | Video performance analysis | Views, likes, comments, like rate, comment rate |
| searchAndAnalyze(query, maxResults?) | Search + stats | Search results with full video statistics |
For granular control, import specific functions from the API modules. See references/api-reference.md for the complete list of 13 API functions with parameters, types, and examples.
| Function | Purpose |
|----------|---------|
| getChannel(channelId) | Get full channel details |
| getChannelStats(channelId) | Get simplified stats (subscribers, views, videoCount) |
| getMultipleChannels(channelIds) | Batch fetch multiple channels |
| Function | Purpose |
|----------|---------|
| getVideo(videoId) | Get full video details |
| getVideoStats(videoId) | Get simplified stats (views, likes, comments) |
| getMultipleVideos(videoIds) | Batch fetch multiple videos |
| getChannelVideos(channelId) | Get recent uploads from a channel |
| Function | Purpose |
|----------|---------|
| searchVideos(query, options?) | Search for videos |
| searchChannels(query, options?) | Search for channels |
Results auto-save to results/ with this structure:
results/
āāā channels/ # Channel data and comparisons
āāā videos/ # Video data and analyses
āāā search/ # Search results
āāā summaries/ # Human-readable markdown summaries
import { listResults, loadResult, getLatestResult } from './scripts/src/index.js';
// List recent results
const files = listResults('channels', 10);
// Load a specific result
const data = loadResult(files[0]);
// Get most recent result for an operation
const latest = getLatestResult('channels', 'channel_analysis');
UC (e.g., UCxxxxxxxx). You can find them in the channel URL or page source.compareChannels() to benchmark competitors side by side.getMultipleChannels() or getMultipleVideos() for efficient batch lookups.searchAndAnalyze() combines search with full video stats in one call.Generated Mar 1, 2026
A YouTube creator uses the skill to monitor their channel's subscriber growth, video engagement rates, and average views per upload. They analyze competitors' channels to benchmark performance and identify content gaps, enabling data-driven decisions to optimize upload schedules and video topics.
A marketing agency employs the skill to evaluate the effectiveness of YouTube ad campaigns for clients by analyzing video performance metrics like views, likes, and comment rates. They compare client channels against industry competitors to assess market positioning and generate reports for stakeholders.
A product development team uses the skill to search for trending videos and analyze channels related to their target market, gathering insights on audience interests and engagement patterns. This helps inform product features and marketing strategies based on real-time YouTube data.
A university leverages the skill to track the performance of its YouTube channel, analyzing video stats to improve educational content delivery. They compare with other educational channels to enhance student engagement and optimize video production for online courses.
A talent agency utilizes the skill to search for emerging YouTube channels and analyze video performance to identify potential influencers or creators. They assess subscriber growth and engagement metrics to scout talent for brand partnerships or media opportunities.
A company integrates this skill into a subscription-based software service that provides automated YouTube analytics reports for creators and brands. Users pay a monthly fee for access to detailed insights, competitor comparisons, and trend analysis, generating revenue through tiered pricing plans.
A consulting firm offers specialized YouTube analytics services using this skill to help clients optimize their channel strategies. They charge project-based or retainer fees for in-depth analysis, performance audits, and actionable recommendations, leveraging the skill's data-gathering capabilities.
A freelancer uses this skill to provide one-off YouTube analytics reports for individual creators or small businesses. They offer packages for channel audits, video performance reviews, and competitor analysis, earning income through direct client payments per report or analysis session.
š¬ Integration Tip
Ensure the YouTube Data API key is securely stored in environment variables and set appropriate rate limits to avoid hitting API quotas during batch requests.
Quick system diagnostics: CPU, memory, disk, uptime
Query Google Analytics 4 (GA4) data via the Analytics Data API. Use when you need to pull website analytics like top pages, traffic sources, user counts, ses...
Google Analytics 4, Search Console, and Indexing API toolkit. Analyze website traffic, page performance, user demographics, real-time visitors, search queries, and SEO metrics. Use when the user asks to: check site traffic, analyze page views, see traffic sources, view user demographics, get real-time visitor data, check search console queries, analyze SEO performance, request URL re-indexing, inspect index status, compare date ranges, check bounce rates, view conversion data, or get e-commerce revenue. Requires a Google Cloud service account with GA4 and Search Console access.
Google Analytics API integration with managed OAuth. Manage accounts, properties, and data streams (Admin API). Run reports on sessions, users, page views, and conversions (Data API). Use this skill when users want to configure or query Google Analytics. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
Deploy privacy-first analytics with correct API patterns, rate limits, and GDPR compliance.
World-class data science skill for statistical modeling, experimentation, causal inference, and advanced analytics. Expertise in Python (NumPy, Pandas, Scikit-learn), R, SQL, statistical methods, A/B testing, time series, and business intelligence. Includes experiment design, feature engineering, model evaluation, and stakeholder communication. Use when designing experiments, building predictive models, performing causal analysis, or driving data-driven decisions.