YouTube Data Skill
Read public YouTube data through UnifAPI MCP: the youtube/... operations, response shapes and coverage limits for channel research. Never uploads.
Agent-native
Run it in Claude, ChatGPT custom MCP apps, OpenClaw, Hermes, Codex, Claude Code, Cursor, VS Code, or another MCP-capable client. No dedicated GUI flow and no separate LLM API key.
Backed by live public data
Every step is grounded in live public-data records UnifAPI returns, so the output cites what is actually ranking, posting, or being said — not a generic best-practice list.
Composable & open source
Skills cross-reference each other and live in a public, MIT-style repo. Read the full SKILL.md on GitHub, fork it, or run it as-is inside your agent.
Paste this into Codex or Claude Code
The prompt is intentionally editable. Replace the handles, market, budget, and campaign goal, then let the agent call UnifAPI MCP when it needs live public data.
Using the YouTube Data Skill, research who owns the topic "AI coding tools": search videos and channels, read their subscriber and view counts, and pull related videos for demand. Return a cited brief on the strongest channels. Read-only.
The full skill, rendered from its SKILL.md
The deterministic read path for public YouTube data through UnifAPI. This is a
Data Skill: it does not run a marketing job on its own — it names the
concrete youtube/... operations, response shapes, and the real coverage limits
so any channel- or content-first workflow (creator vetting, competitor
reception, content demand) reads from one known recipe instead of rediscovering
the surface each time.
Read-only — eyes, not hands. It researches public YouTube data and returns cited records; it never uploads, comments, or subscribes, and UnifAPI never holds YouTube credentials.
Use the unifapi skill for live evidence
Connect once through the shared unifapi skill (OAuth MCP), then call the
operations below. Channels are keyed by {channel_id} and videos by
{video_id} — resolve a handle or URL to a channel id first (see Gotchas).
Keep any billing metadata so the output can state record cost.
Response contract
Single-entity endpoints return the object in data:
{
"request_id": "unif_...",
"data": {},
"billing": { "records_charged": 1, "balance_remaining": 99 }
}
List endpoints return an array in data plus pagination:
{
"request_id": "unif_...",
"data": [],
"pagination": { "has_more": false, "next_cursor": null },
"billing": { "records_charged": 1 }
}
When pagination.has_more is true, pass pagination.next_cursor as the next
request's cursor. Always preserve billing when reporting cost.
Core operations
| Need | Operation |
|---|---|
| Search videos | youtube/search (?q=..., optional sort_by/upload_date/duration/region/language) |
| Search channels / playlists | youtube/search/channels · youtube/search/playlists (?q=...) |
| Trending | youtube/trending (optional type = now/music/gaming/movies) |
| Hashtag videos | youtube/hashtags/{tag}/videos |
| Resolve handle/URL → id | youtube/resolve/channel-id (?url=...) |
| Channel page | youtube/channels/{channel_id} |
| Channel videos / shorts | youtube/channels/{channel_id}/videos · .../shorts |
| Channel playlists | youtube/channels/{channel_id}/playlists |
| Channel community posts | youtube/channels/{channel_id}/community |
| Search within a channel | youtube/channels/{channel_id}/search (?q=...) |
| Video metadata | youtube/videos/{video_id} |
| Related videos | youtube/videos/{video_id}/related |
| Video comments | youtube/videos/{video_id}/comments (optional sort_by = top/newest) |
| Video captions / transcript | youtube/videos/{video_id}/captions |
| Playlist page / videos | youtube/playlists/{playlist_id} · .../videos |
Need a field not listed here? Use the unifapi skill's get_operation to read
the exact schema before calling — but pick the operation from this table, don't
discover blind.
Workflow
The deterministic recipes. Pick the one that matches the job; each names exactly what to call.
- Frame the query. Call
youtube/search?q=...for who owns a topic, oryoutube/trendingfor what's surging now. - Resolve a channel. Call
youtube/resolve/channel-id?url=...to get thechannel_id, thenyoutube/channels/{channel_id}forsubscriber_count,video_count, andview_count. - Read a channel's output. Call
youtube/channels/{channel_id}/videos(and.../shorts); each video'sview_countis the demand signal. Page vianext_cursor.youtube/channels/{channel_id}/playlistsmaps how the catalog is organized;youtube/channels/{channel_id}/communityreads announcements and engagement outside videos;youtube/channels/{channel_id}/search?q=...finds a creator's coverage of one topic without scanning the whole catalog. - Read a video and its neighborhood. Call
youtube/videos/{video_id}for metadata (now includinglike_count,category,published_at,has_captions), thenyoutube/videos/{video_id}/relatedto map adjacent demand and competing content. - Read audience and transcript. Call
youtube/videos/{video_id}/comments(sort_bytop/newest) for what the audience says — raw comment text, like and reply counts; any sentiment or FAQ grouping is yours to compute, the API returns text only. Callyoutube/videos/{video_id}/captionsfor caption tracks (timed-text url per language) to read or analyze the transcript. - Walk a playlist or hashtag. Call
youtube/playlists/{playlist_id}then.../videosto ingest a curated series in order;youtube/hashtags/{tag}/videostracks a campaign or trend across creators. - Size topic demand. Aggregate
view_countacross the search and related results for a topic;title,description, andkeywordsshow how the topic is framed. - Cite everything. Every figure ties back to the video or channel it came
from; report
billing.records_charged(or estimate when billing metadata is absent).
Shape notes
YouTubeChannel— keyed by{channel_id}.subscriber_count,video_count,view_count,handle,keywords,links,country,created_at.is_verifiedis not populated by the upstream and is alwaysfalse— don't report verification you can't read.YouTubeVideo— keyed by{video_id}.view_count,like_count(best-effort;0when the creator hides it),category,channel_id,author,duration_seconds,keywords,published_at,has_captions,is_live,is_private.YouTubeVideoPreview— search/related/list rows: addspublished_time.categoryis part of the shape but empty on list rows (onlyYouTubeVideodetail carries it).YouTubeComment—text,author,author_channel_id,like_count,reply_count,published_time,is_verified,is_creator. Text only — no sentiment field.YouTubeCaptions—video_id,tracks[](language_code, timed-texturl,is_translatable),translation_languages[]. Single object, billed as one record. Track urls are time-limited.YouTubePlaylist/YouTubePlaylistPreview— playlisttitle,channel_id,author,video_count(detail addsview_count,last_updated; preview addsfirst_video_id).YouTubeChannelPreview— search-channels rows:title,handle,description,subscriber_count,video_count.YouTubeCommunityPost—text,author,vote_count,reply_count,attachment_type,image_url.
Gotchas
- Resolve only goes to channel ids.
youtube/resolve/channel-id?url=...resolves a handle or URL to a{channel_id}— call it before anyyoutube/channels/{channel_id}/...call. There is no video- or playlist-id resolver; pass a known{video_id}/{playlist_id}(parse it from the URL yourself). - Comments are raw text.
youtube/videos/{video_id}/commentsreturns comment text plus like/reply counts — no sentiment, no FAQ grouping. Compute those yourself from the text; don't claim a sentiment field the API doesn't return. like_countis best-effort.YouTubeVideo.like_countis0when the creator hides likes — treat0as "hidden or none," not authoritative.is_verifiedis alwaysfalsefor channels (upstream doesn't expose it) — don't report channel verification.- Captions can be empty. A video with captions disabled returns
tracks: []; check before promising a transcript. Track urls are time-limited. - Hashtags take the tag with or without a leading
#(youtube/hashtags/lofi/videos). - A low balance can silently truncate list pages: check
billing.truncated_due_to_balance— when true the page is partial.
Output
Return the records the calling workflow needs, each cited to its video or
channel, plus a one-line cost note (records_charged). When this skill is used
directly, a compact demand brief is the default:
**{Channel}** — {subscribers} subscribers, {videos} videos, {totalViews} views. Top videos for {topic}: {title} ({views} views). Related/competitors: {channels}. Evidence: {URLs}. Records: ~{N}.
Related skills
- kol-pricing, creator-shortlist, audience-fit-check (Influencer Marketing) — price and vet YouTube channels on top of this read path.
- competitor-profiling (Competitive Intelligence), content-opportunity-brief (Content Strategy) — reception and content-demand work that reads YouTube first.
- unifapi — the shared data skill: connect MCP and look up exact schemas with
get_operation.
Source: youtube/SKILL.md on GitHub — open a PR there to improve it.
The live APIs this skill calls
Every operation the skill names is one of these UnifAPI platforms — still visible and callable for product code, debugging, and custom agent flows.
- The concrete `youtube/...` operations for each common channel/video read job
- Response-contract and shape notes for channels and videos (view counts)
- Deterministic recipes: resolve channels, read demand, find related content
- Platform gotchas (no comment listing, view_count signal, cursor pagination)