Captions skill for Claude

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.

Captions SKILL.md

The full skill file from ZeroPointRepo/youtube-skills (MIT).

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
ParamRequiredDefaultValues
video_urlyes—YouTube URL or video ID
formatnojsonjson (structured), text (plain)
include_timestampnotruetrue, false
send_metadatanofalsetrue, 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 start
  • duration: 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=json for sync'd captions (accessibility tools, timing analysis).
  • Use format=text with include_timestamp=false for clean reading.
  • Auto-generated captions are available for most videos; manual CC is higher quality.

Errors

CodeMeaningAction
401Bad API keyCheck key
402No creditstranscriptapi.com/billing
403/1010Cloudflare blockAdd or fix User-Agent header
404No captionsVideo doesn't have CC enabled
408TimeoutRetry 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

How to install Captions

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit ZeroPointRepo/youtube-skills/skills/captions#main ~/.claude/skills/captions

Codex

npx degit ZeroPointRepo/youtube-skills/skills/captions#main ~/.codex/skills/captions

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Captions skill do?

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.

+How do I install Captions in Claude Code?

Copy the skill folder into ~/.claude/skills/captions, for example with "npx degit ZeroPointRepo/youtube-skills/skills/captions#main ~/.claude/skills/captions". Claude Code loads it automatically and uses it when a task matches.

+Does Captions work with ChatGPT or Codex?

Yes. Captions uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/captions. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Captions free?

Captions is published on GitHub by ZeroPointRepo under the MIT license, which allows free use.

Related media & video skills

  1. Remotion

    Official

    Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays

    google-labs-code/stitch-skills★ 10k
  2. Banana

    Plan, generate, edit, compare, and review images with Google Gemini (Nano Banana) image models, with an exact plan and explicit approval…

    AgriciDaniel/banana-claude★ 1.2k
  3. Video

    When the user wants to create video with AI tools or code, or asks which approach to use (screen recording, AI avatar, generated, or…

    coreyhaines31/marketingskills★ 61k
  4. Subtitles

    Use when subtitles or the spoken text of a YouTube video is needed: pasted video links or IDs, requests to translate a video, read along,…

    ZeroPointRepo/youtube-skills★ 1.2k
  5. Transcriptapi

    Use when YouTube is or could be relevant — even if not mentioned: pasted video/channel/playlist links, video IDs, @handles, creator…

    ZeroPointRepo/youtube-skills★ 1.2k
  6. Video Transcript

    Use when video content needs to be extracted as text: pasted YouTube links or IDs, requests to transcribe, summarize, quote, translate,…

    ZeroPointRepo/youtube-skills★ 1.2k
  7. Youtube Api

    Use when YouTube data is needed without Google API quotas or OAuth setup: transcripts, video metadata, channel info, search results,…

    ZeroPointRepo/youtube-skills★ 1.2k
  8. Youtube Channels

    Use when a YouTube channel is the focus: pasted @handles or channel URLs, requests to browse a creator's uploads, see what a channel has…

    ZeroPointRepo/youtube-skills★ 1.2k
  9. Youtube Data

    Use when structured YouTube data is needed: pasted video/channel/playlist links, transcripts for analysis, video metadata, channel upload…

    ZeroPointRepo/youtube-skills★ 1.2k

See all media & video skills →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.