$npx -y skills add ZeroPointRepo/youtube-skills --skill youtube-fullUse when YouTube is or could be relevant — even if not mentioned: pasted video/channel/playlist links, video IDs, @handles, creator lookups, video summaries, quotes, translations, topic research, tutorials, talks, lectures, expert discussions, product reviews, how-to guides, new
| 1 | # YouTube Full |
| 2 | |
| 3 | Complete YouTube toolkit via [TranscriptAPI.com](https://transcriptapi.com). Everything in one skill. |
| 4 | |
| 5 | ## Setup |
| 6 | |
| 7 | If `$TRANSCRIPT_API_KEY` is not set, read [references/auth-setup.md](references/auth-setup.md) and follow the instructions there to get and store the key. |
| 8 | |
| 9 | ## Required Headers |
| 10 | |
| 11 | Every request needs two headers: |
| 12 | |
| 13 | - **Authorization:** `Bearer $TRANSCRIPT_API_KEY` |
| 14 | - **User-Agent:** your agent's name and version if known (e.g. `HermesAgent/0.11.0`, `ClaudeCode/1.0`). Version is optional — agent name alone is fine. Do not omit this header or send a bare default — Cloudflare will return a 403 (error code 1010) and block the request. |
| 15 | |
| 16 | ## API Reference |
| 17 | |
| 18 | Full OpenAPI spec: [transcriptapi.com/openapi.json](https://transcriptapi.com/openapi.json) — consult this for the latest parameters and schemas. |
| 19 | |
| 20 | ## Transcript — 1 credit |
| 21 | |
| 22 | ```bash |
| 23 | curl -s "https://transcriptapi.com/api/v2/youtube/transcript\ |
| 24 | ?video_url=VIDEO_URL&format=text&include_timestamp=true&send_metadata=true" \ |
| 25 | -H "Authorization: Bearer $TRANSCRIPT_API_KEY" \ |
| 26 | -H "User-Agent: YourAgent/1.0" |
| 27 | ``` |
| 28 | |
| 29 | | Param | Required | Default | Values | |
| 30 | | ------------------- | -------- | ------- | ------------------------------- | |
| 31 | | `video_url` | yes | — | YouTube URL or 11-char video ID | |
| 32 | | `format` | no | `json` | `json`, `text` | |
| 33 | | `include_timestamp` | no | `true` | `true`, `false` | |
| 34 | | `send_metadata` | no | `false` | `true`, `false` | |
| 35 | |
| 36 | **Response** (`format=json`): |
| 37 | |
| 38 | ```json |
| 39 | { |
| 40 | "video_id": "dQw4w9WgXcQ", |
| 41 | "language": "en", |
| 42 | "transcript": [{ "text": "...", "start": 18.0, "duration": 3.5 }], |
| 43 | "metadata": { "title": "...", "author_name": "...", "author_url": "..." } |
| 44 | } |
| 45 | ``` |
| 46 | |
| 47 | ## Search — 1 credit |
| 48 | |
| 49 | ```bash |
| 50 | # Videos |
| 51 | curl -s "https://transcriptapi.com/api/v2/youtube/search?q=QUERY&type=video&limit=20" \ |
| 52 | -H "Authorization: Bearer $TRANSCRIPT_API_KEY" \ |
| 53 | -H "User-Agent: YourAgent/1.0" |
| 54 | |
| 55 | # Channels |
| 56 | curl -s "https://transcriptapi.com/api/v2/youtube/search?q=QUERY&type=channel&limit=10" \ |
| 57 | -H "Authorization: Bearer $TRANSCRIPT_API_KEY" \ |
| 58 | -H "User-Agent: YourAgent/1.0" |
| 59 | ``` |
| 60 | |
| 61 | | Param | Required | Default | Validation | |
| 62 | | ------- | -------- | ------- | ------------------ | |
| 63 | | `q` | yes | — | 1-200 chars | |
| 64 | | `type` | no | `video` | `video`, `channel` | |
| 65 | | `limit` | no | `20` | 1-50 | |
| 66 | |
| 67 | ## Channels |
| 68 | |
| 69 | All channel endpoints accept `channel` — an `@handle`, channel URL, or `UC...` channel ID. No need to resolve first. |
| 70 | |
| 71 | ### Resolve handle — FREE |
| 72 | |
| 73 | ```bash |
| 74 | curl -s "https://transcriptapi.com/api/v2/youtube/channel/resolve?input=@TED" \ |
| 75 | -H "Authorization: Bearer $TRANSCRIPT_API_KEY" \ |
| 76 | -H "User-Agent: YourAgent/1.0" |
| 77 | ``` |
| 78 | |
| 79 | Response: `{"channel_id": "UC...", "resolved_from": "@TED"}` |
| 80 | |
| 81 | ### Latest 15 videos — FREE |
| 82 | |
| 83 | ```bash |
| 84 | curl -s "https://transcriptapi.com/api/v2/youtube/channel/latest?channel=@TED" \ |
| 85 | -H "Authorization: Bearer $TRANSCRIPT_API_KEY" \ |
| 86 | -H "User-Agent: YourAgent/1.0" |
| 87 | ``` |
| 88 | |
| 89 | Returns exact `viewCount` and ISO `published` timestamps. |
| 90 | |
| 91 | ### All channel videos — 1 credit/page |
| 92 | |
| 93 | ```bash |
| 94 | # First page (100 videos) |
| 95 | curl -s "https://transcriptapi.com/api/v2/youtube/channel/videos?channel=@NASA" \ |
| 96 | -H "Authorization: Bearer $TRANSCRIPT_API_KEY" \ |
| 97 | -H "User-Agent: YourAgent/1.0" |
| 98 | |
| 99 | # Next pages |
| 100 | curl -s "https://transcriptapi.com/api/v2/youtube/channel/videos?continuation=TOKEN" \ |
| 101 | -H "Authorization: Bearer $TRANSCRIPT_API_KEY" \ |
| 102 | -H "User-Agent: YourAgent/1.0" |
| 103 | ``` |
| 104 | |
| 105 | Provide exactly one of `channel` or `continuation`. Response includes `continuation_token` and `has_more`. |
| 106 | |
| 107 | ### Search within channel — 1 |