yrzhe/claude-skills/youtube-data-api
Claude Code and agent skill by yrzhe/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
YouTube Data API v3 complete wrapper - search videos, get video/channel/playlist details, get comments, download subtitles, etc. Supports filtering and sorting by time/views/rating and more.
Install
npx vskill@latest install yrzhe/claude-skills/youtube-data-apiSKILL.md
YouTube Data API v3 Skill
Complete wrapper based on official YouTube Data API v3 documentation.
Configuration
API Key Setup
Getting an API Key
- Go to Google Cloud Console
- Create a new project or select existing
- Enable YouTube Data API v3
- Create credentials → API Key
- (Optional) Restrict API Key to YouTube Data API only
Quota Limits
| Operation Type | Quota Cost (units) | |
|---|---|---|
| Read operations (list) | 1 | |
| Search requests | 100 | |
| Write operations (insert/update/delete) | 50 | |
| Video upload | 1600 |
Default daily quota: 10,000 units
Core Features
1. Search Videos (Search)
Quota cost: 100 units/request
Search Parameters Reference
| Parameter | Description | Values | |
|---|---|---|---|
--query, -q | Search keywords | Supports boolean operators (python AND tutorial) | |
--type | Resource type | video, channel, playlist | |
--max-results | Results count | 1-50, default 25 | |
--order | Sort order | relevance(default), date, rating, viewCount, title | |
--published-after | Published after | 1d, 7d, 30d, 1y or ISO 8601 format | |
--published-before | Published before | Same as above | |
--region-code | Region code | ISO 3166-1 (e.g., US, CN, JP) | |
--relevance-language | Language | ISO 639-1 (e.g., en, zh, ja) | |
--video-duration | Video length | short(<4min), medium(4-20min), long(>20min) | |
--video-definition | Definition | high(HD), standard(SD) | |
--video-caption | Captions | closedCaption(has captions), none(no captions) | |
--video-dimension | Dimension | 2d, 3d | |
--event-type | Live status | live(streaming), completed(ended), upcoming(scheduled) | |
--channel-id | Limit to channel | Channel ID | |
--safe-search | Safe search | none, moderate, strict |
2. Get Video Details (Videos)
Quota cost: 1 unit/request
Video Parts Reference
| Part | Contains | |
|---|---|---|
snippet | Title, description, thumbnails, channel info, publish time, tags | |
statistics | View count, like count, comment count | |
contentDetails | Duration, definition, caption info, region restrictions | |
status | Upload status, privacy, license | |
player | Embedded player HTML | |
topicDetails | Related topic IDs | |
recordingDetails | Recording location, date | |
liveStreamingDetails | Live info (start/end time, viewer count) |
Video Category IDs Reference
| ID | Category | ID | Category | |
|---|---|---|---|---|
| 1 | Film & Animation | 20 | Gaming | |
| 2 | Autos & Vehicles | 22 | People & Blogs | |
| 10 | Music | 23 | Comedy | |
| 15 | Pets & Animals | 24 | Entertainment | |
| 17 | Sports | 25 | News & Politics | |
| 19 | Travel & Events | 26 | Howto & Style | |
| 27 | Education | 28 | Science & Technology |
3. Get Channel Info (Channels)
Quota cost: 1 unit/request
Channel Parts Reference
| Part | Contains | |
|---|---|---|
snippet | Channel name, description, thumbnails, country | |
statistics | Subscriber count, video count, total views | |
contentDetails | Related playlists (uploads, likes, etc.) | |
brandingSettings | Channel banner, keywords, default language | |
topicDetails | Channel topics | |
status | Channel status (long video upload permission, etc.) |
4. Get Playlists (Playlists)
Quota cost: 1 unit/request
5. Get Playlist Videos (PlaylistItems)
Quota cost: 1 unit/request
6. Get Comments (Comments & CommentThreads)
Quota cost: 1 unit/request
Comment Sort Options
| Sort | Description | |
|---|---|---|
relevance | By relevance (default) | |
time | By time (newest first) |
7. Get Captions (Captions)
Quota cost: 1 unit/request (list), 50 units (download)
Note: Downloading captions requires video owner authorization (OAuth). For public videos, use yt-dlp to get auto-generated captions.
Using yt-dlp for Subtitles (Alternative)
8. Get Video Categories (VideoCategories)
Quota cost: 1 unit/request
9. Get Supported Regions and Languages
Quota cost: 1 unit/request
Common Use Case Examples
Scenario 1: Get Trending Videos on a Topic from Last Week
Scenario 2: Analyze All Videos from a Channel
Scenario 3: Get Videos with Subtitles
Scenario 4: Analyze Video Comments
Output Formats
All commands default to JSON output, save to file with --output parameter.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/youtube-data-api/skills/youtube-data-api/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yrzhe/claude-skills/youtube-data-api)