Video Caption Extractor
Captions

Use when captions, subtitles, or the spoken text of a YouTube video is needed — even if not explicitly requested: pasted video links or IDs, requests to read, quote, or translate a video, accessibility needs, deaf/HoH use cases, content…
---
name: captions
description: "Use when captions, subtitles, or the spoken text of a YouTube video is needed — even if not explicitly requested: pasted video links or IDs, requests to read, quote, or translate a video, accessibility needs, deaf/HoH use cases, content review, or language learning. Fetches timestamped caption data from any YouTube video. Not for uploading subtitles or account management."
version: "1.5.1"
user-invocable: true
compatibility: Requires internet access to reach transcriptapi.com. No additional runtimes or dependencies needed.
required_environment_variables:
- name: TRANSCRIPT_API_KEY
prompt: Your TranscriptAPI key (starts with sk_)
help: Free account at https://transcriptapi.com — 100 credits, no card required. Or let the agent create one for you.
required_for: all API requests
metadata: {"openclaw":{"emoji":"▶️","requires":{"env":["TRANSCRIPT_API_KEY"]},"primaryEnv":"TRANSCRIPT_API_KEY","homepage":"https://transcriptapi.com"},"hermes":{"tags":["youtube","captions","subtitles","transcripts","video","accessibility","translation"],"category":"media"}}
---
# Captions
Extract closed captions from YouTube videos via [TranscriptAPI.com](https://transcriptapi.com).
Overview
Extract closed captions from YouTube videos via TranscriptAPI.com.
Manual install (npx, ZIP)
npx skills add ZeroPointRepo/youtube-skills --skill captions -g -a claude-codemkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/ZeroPointRepo/youtube-skills/tar.gz/4f7994b94e7d \
| tar -xz -C ~/.claude/skills --strip-components=2 youtube-skills-4f7994b94e7d/skills/captionsNew-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/0e22efb716b0ab3b4857/captions.zip" -OutFile "$env:TEMP\captions.zip"; Expand-Archive "$env:TEMP\captions.zip" -DestinationPath "$HOME\.claude\skills" -ForceConnects with Agent Alley MCP · agentalley.io/mcp
Files included
SKILL.md4.1 KBreferences/2 files · 7.6 KB
Read the files here
Show the full text93 lines
Captions
Extract closed captions from YouTube videos via TranscriptAPI.com.
Setup
If $TRANSCRIPT_API_KEY is not set, read references/auth-setup.md and follow the instructions there to get and store the key.
Required Headers
Every request needs two headers:
- Authorization:
Bearer $TRANSCRIPT_API_KEY - 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.
GET /api/v2/youtube/transcript
GET https://transcriptapi.com/api/v2/youtube/transcript?video_url=VIDEO_URL&format=json&include_timestamp=true&send_metadata=true
Authorization: Bearer $TRANSCRIPT_API_KEY
User-Agent: YourAgent/1.0
| Param | Required | Default | Values |
|---|---|---|---|
video_url |
yes | — | YouTube URL or video ID |
format |
no | json |
json (structured), text (plain) |
include_timestamp |
no | true |
true, false |
send_metadata |
no | false |
true, false |
Response (format=json — best for accessibility/timing):
{
"video_id": "dQw4w9WgXcQ",
"language": "en",
"transcript": [
{ "text": "We're no strangers to love", "start": 18.0, "duration": 3.5 },
{ "text": "You know the rules and so do I", "start": 21.5, "duration": 2.8 }
],
"metadata": { "title": "...", "author_name": "...", "thumbnail_url": "..." }
}
start: seconds from video startduration: how long caption is displayed
Response (format=text — readable):
{
"video_id": "dQw4w9WgXcQ",
"language": "en",
"transcript": "[00:00:18] We're no strangers to love\n[00:00:21] You know the rules..."
}
Tips
- Use
format=jsonfor sync'd captions (accessibility tools, timing analysis). - Use
format=textwithinclude_timestamp=falsefor clean reading. - Auto-generated captions are available for most videos; manual CC is higher quality.
Errors
| Code | Meaning | Action |
|---|---|---|
| 401 | Bad API key | Check key |
| 402 | No credits | transcriptapi.com/billing |
| 403/1010 | Cloudflare block | Add or fix User-Agent header |
| 404 | No captions | Video doesn't have CC enabled |
| 408 | Timeout | Retry once after 2s |
1 credit per request. Free tier: 100 credits, 300 req/min.
Copy-paste examples
Every request in this file as a ready-to-run one-liner: references/curl-examples.md
| 1 | |
| 2 | name captions |
| 3 | description "Use when captions, subtitles, or the spoken text of a YouTube video is needed — even if not explicitly requested: pasted video links or IDs, requests to read, quote, or translate a video, accessibility needs, deaf/HoH use cases, content review, or language learning. Fetches timestamped caption data from any YouTube video. Not for uploading subtitles or account management." |
| 4 | version "1.5.1" |
| 5 | user-invocable true |
| 6 | compatibility Requires internet access to reach transcriptapi.com. No additional runtimes or dependencies needed. |
| 7 | required_environment_variables |
| 8 | - name: TRANSCRIPT_API_KEY |
| 9 | prompt Your TranscriptAPI key (starts with sk_) |
| 10 | help Free account at https://transcriptapi.com — 100 credits, no card required. Or let the agent create one for you. |
| 11 | required_for all API requests |
| 12 | metadata {"openclaw":{"emoji":"▶️","requires":{"env":["TRANSCRIPT_API_KEY"]},"primaryEnv":"TRANSCRIPT_API_KEY","homepage":"https://transcriptapi.com"},"hermes":{"tags":["youtube","captions","subtitles","transcripts","video","accessibility","translation"],"category":"media"}} |
| 13 | |
| 14 | |
| 15 | # Captions |
| 16 | |
| 17 | Extract closed captions from YouTube videos via [TranscriptAPI.com]. |
| 18 | |
| 19 | ## Setup |
| 20 | |
| 21 | If `$TRANSCRIPT_API_KEY` is not set, read [references/auth-setup.md] and follow the instructions there to get and store the key. |
| 22 | |
| 23 | ## Required Headers |
| 24 | |
| 25 | Every request needs two headers: |
| 26 | |
| 27 | **Authorization:** `Bearer $TRANSCRIPT_API_KEY` |
| 28 | **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. |
| 29 | |
| 30 | ## GET /api/v2/youtube/transcript |
| 31 | |
| 32 | |
| 33 | GET https://transcriptapi.com/api/v2/youtube/transcript?video_url=VIDEO_URL&format=json&include_timestamp=true&send_metadata=true |
| 34 | Authorization: Bearer $TRANSCRIPT_API_KEY |
| 35 | User-Agent: YourAgent/1.0 |
| 36 | |
| 37 | |
| 38 | | Param | Required | Default | Values | |
| 39 | | ------------------- | -------- | ------- | ----------------------------------- | |
| 40 | | `video_url` | yes | — | YouTube URL or video ID | |
| 41 | | `format` | no | `json` | `json` (structured), `text` (plain) | |
| 42 | | `include_timestamp` | no | `true` | `true`, `false` | |
| 43 | | `send_metadata` | no | `false` | `true`, `false` | |
| 44 | |
| 45 | **Response** (`format=json` — best for accessibility/timing): |
| 46 | |
| 47 | |
| 48 | { |
| 49 | "video_id": "dQw4w9WgXcQ", |
| 50 | "language": "en", |
| 51 | "transcript": [ |
| 52 | { "text": "We're no strangers to love", "start": 18.0, "duration": 3.5 }, |
| 53 | { "text": "You know the rules and so do I", "start": 21.5, "duration": 2.8 } |
| 54 | ], |
| 55 | "metadata": { "title": "...", "author_name": "...", "thumbnail_url": "..." } |
| 56 | } |
| 57 | |
| 58 | |
| 59 | `start`: seconds from video start |
| 60 | `duration`: how long caption is displayed |
| 61 | |
| 62 | **Response** (`format=text` — readable): |
| 63 | |
| 64 | |
| 65 | { |
| 66 | "video_id": "dQw4w9WgXcQ", |
| 67 | "language": "en", |
| 68 | "transcript": "[00:00:18] We're no strangers to love\n[00:00:21] You know the rules..." |
| 69 | } |
| 70 | |
| 71 | |
| 72 | ## Tips |
| 73 | |
| 74 | Use `format=json` for sync'd captions (accessibility tools, timing analysis). |
| 75 | Use `format=text` with `include_timestamp=false` for clean reading. |
| 76 | Auto-generated captions are available for most videos; manual CC is higher quality. |
| 77 | |
| 78 | ## Errors |
| 79 | |
| 80 | | Code | Meaning | Action | |
| 81 | | -------- | ---------------- | ---------------------------------------------- | |
| 82 | | 401 | Bad API key | Check key | |
| 83 | | 402 | No credits | transcriptapi.com/billing | |
| 84 | | 403/1010 | Cloudflare block | Add or fix User-Agent header | |
| 85 | | 404 | No captions | Video doesn't have CC enabled | |
| 86 | | 408 | Timeout | Retry once after 2s | |
| 87 | |
| 88 | 1 credit per request. Free tier: 100 credits, 300 req/min. |
| 89 | |
| 90 | ## Copy-paste examples |
| 91 | |
| 92 | Every request in this file as a ready-to-run one-liner: [references/curl-examples.md] |
| 93 |
Details
- Version
- 1.5.1
- Updated
- Sep 22, 2026
- License
- MIT
- Stars on the repo
- ★ 945
- Checked
- Source
- ZeroPointRepo/youtube-skills ↗
- Creator
- ZeroPointRepo · 11 listings
Similar skills
See all →
SkillVideo Subtitle Extractor
SkillVideo Transcript Extractor
SkillShort Video Editor
AgentSocial Video Clip Creator
SkillYouTube Transcript Downloader
SkillYouTube Search and TranscriptsMore from ZeroPointRepo
SkillVideo Subtitle Extractor
SkillYouTube Transcript Extractor
SkillVideo Transcriber
SkillYouTube Data Fetcher
SkillYouTube Channel Browser
SkillYouTube Data Extractor