據 AlphaMoat 統計,截至 2026-09,YouTube API CLI 累計下載 4,002 次、獲 3 個星標,在全部 5,078 個 AI 技能中排名第 2,557 位,在「開發程式設計」分類(577 個)中排名第 336 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 119 | 3538 | 3 | - |
| SkillHub ↗ | 422 | 4002 | 3 | — |
各平台的計數口徑不同,統計時間不一致。
文件涵蓋影片搜尋、帳戶列表、上傳、播放列表和頻道更新,提供結構化輸出。需有效 Google Cloud 憑據及已啟用的 YouTube API;變更前檢查許可權並使用預檢,認證示例不保證所有帳戶相容。
資料釋出於 2026-10-27
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 4002 | — | 3 |
| 2026-08 | 3481 | +2.4% | 3 |
| 2026-07 | 3399 | +7.4% | 3 |
| 2026-06 | 3166 | +1.8% | 3 |
| 2026-05 | 3111 | — | 3 |
| 2026-03 | 2910 | — | 3 |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
---
name: yt-api-cli
description: Manage your YouTube account from the command line. Complete CLI for YouTube Data API v3 - list/search videos, upload, manage playlists, and more.
metadata: {"clawdbot":{"emoji":"▶️","os":["darwin","linux"],"requires":{"env":["YT_API_AUTH_TYPE", "YT_API_CLIENT_ID", "YT_API_CLIENT_SECRET"]}}}
---
# yt-api-cli
Manage your YouTube account from the terminal. A complete CLI for the YouTube Data API v3.
## Installation ```bash # Using go install go install github.com/nerveband/youtube-api-cli/cmd/yt-api@latest # Or download from releases curl -L -o yt-api https://github.com/nerveband/youtube-api-cli/releases/latest/download/yt-api-darwin-arm64 chmod +x yt-api sudo mv yt-api /usr/local/bin/ ``` ## Setup ### 1. Google Cloud Console Setup 1. Go to [Google Cloud Console](https://console.cloud.google.com) 2. Create/enable YouTube Data API v3 3. Create OAuth 2.0 credentials (Desktop app) 4. Download client configuration ### 2. Configure yt-api ```bash mkdir -p ~/.yt-api cat > ~/.yt-api/config.yaml << EOF default_auth: oauth default_output: json oauth: client_id: "YOUR_CLIENT_ID" client_secret: "YOUR_CLIENT_SECRET" EOF ``` ### 3. Authenticate ```bash yt-api auth login # Opens browser for Google login yt-api auth status # Check auth state ``` ## Commands ### List Operations ```bash # List your videos yt-api list videos --mine # List channel videos yt-api list videos --channel-id UC_x5XG1OV2P6uZZ5FSM9Ttw # List playlists yt-api list playlists --mine # List subscriptions yt-api list subscriptions --mine ``` ### Search ```bash # Basic search yt-api search --query "golang tutorial" # With filters yt-api search --query "music" --type video --duration medium --order viewCount ``` ### Upload Operations ```bash # Upload video yt-api upload video ./video.mp4 \ --title "My Video" \ --description "Description here" \ --tags "tag1,tag2" \ --privacy public # Upload thumbnail yt-api upload thumbnail ./thumb.jpg --video-id VIDEO_ID ``` ### Playlist Management ```bash # Create playlist yt-api insert playlist --title "My Playlist" --privacy private # Add video to playlist yt-api insert playlist-item --playlist-id PLxxx --video-id VIDxxx ``` ### Channel Operations ```bash # Get channel info yt-api list channels --id UCxxx --part snippet,statistics # Update channel description yt-api update channel --id UCxxx --description "New description" ``` ## Output Formats ```bash # JSON (default - LLM-friendly) yt-api list videos --mine # Table (human-readable) yt-api list videos --mine -o table # YAML yt-api list videos --mine -o yaml # CSV yt-api list videos --mine -o csv > videos.csv ``` ## Global Flags | Flag | Short | Description | |------|-------|-------------| | `--output` | `-o` | Output format: json (default), yaml, csv, table | | `--quiet` | `-q` | Suppress stderr messages | | `--config` | | Path to config file | | `--auth-type` | | Auth method: oauth (default), service-account | ## Environment Variables | Variable | Description | |----------|-------------| | `YT_API_AUTH_TYPE` | Auth method: oauth or service-account | | `YT_API_OUTPUT` | Default output format | | `YT_API_CLIENT_ID` | OAuth client ID | | `YT_API_CLIENT_SECRET` | OAuth client secret | | `YT_API_CREDENTIALS` | Path to service account JSON | ## Authentication Methods ### OAuth 2.0 (Default) Best for interactive use and accessing your own YouTube account. ```bash yt-api auth login # Opens browser ``` ### Service Account Best for server-side automation. ```bash yt-api --auth-type service-account --credentials ./key.json list videos ``` ## Quick Diagnostic Commands ```bash yt-api info # Full system state yt-api info --test-connectivity # Verify API access yt-api info --test-permissions # Check credential capabilities yt-api auth status # Authentication details yt-api version # Version info ``` ## Error Handling Exit codes: - `0` - Success - `1` - General error - `2` - Authentication error - `3` - API error (quota, permissions) - `4` - Input error ## For LLMs and Automation - JSON output by default - Structured errors as JSON objects - `--quiet` mode for parsing - `--dry-run` validates without executing - Stdin support for piping data ## Notes - Requires valid Google Cloud credentials with YouTube Data API v3 enabled - OAuth tokens stored in `~/.yt-api/tokens.json` (0600 permissions) - Default output is JSON (LLM-optimized) - Supports all YouTube Data API v3 resources ## Source GitHub: https://github.com/nerveband/youtube-api-cli
用 gh 命令列工具檢視 GitHub 上的 PR 檢查、工作流執行與 API 查詢的技能。
聚合 16 個搜尋引擎、無需 API Key 的檢索技能。
用命令列直接列出、配置、授權並呼叫 MCP 服務與工具。
生成有效的 Mermaid 圖表,如流程圖、時序圖、思維導圖、ER 圖、使用者旅程等。
用受管 OAuth 訪問 YouTube Data API,檢索影片並管理頻道內容。
透過受管的 OAuth 連線訪問 GitHub REST API。
覆蓋規劃、實現、驗證與測試的編碼工作流技能。
整理 Docker 常用命令與容器工作流的技能。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。