Agent skill · data analytics · sundial-org
youtube-analytics
YouTube 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.
Why this skill is useful
Provides specific commands and workflows for analyzing YouTube data that the AI wouldn't reliably generate on its own.
What it needs
Requires npm installed locally. Requires google-cloud account access. About 3k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.
What this skill does
YouTube Analytics Toolkit Setup Install dependencies: Configure credentials by creating a .env file in the project root: Prerequisites: A Google Cloud project with the YouTube Data API v3 enabled. Get your API key from the Google Cloud Console. Quick Start 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: Or run directly with tsx: Workflow Pattern Every analysis follows three phases: 1. Analyze Run API functions. Each call hits the YouTube Data API and returns structured data. 2. Auto-Save All results automatically save as JSON files to results/{category}/. File naming patterns: Named results: {sanitizedname}.json Auto-generated: YYYYMMDDHHMMSS{operation}.json 3. Summarize After analysis, read the saved JSON files and create a markdown summary in results/summaries/ with data tables, comparisons, and insights. High-Level Functions 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 Individual API Functions For granular control, import specific functions from the API modules. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sundial-org/youtube-analytics