Subtitles skill for Claude

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, follow foreign-language content, or extract what was said. Also use for language learning or accessibility. Fetches timestamped subtitles from any YouTube video. Not for uploading subtitles or account management.

Subtitles SKILL.md

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

Subtitles

Fetch YouTube video subtitles 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=text&include_timestamp=false&send_metadata=true
Authorization: Bearer $TRANSCRIPT_API_KEY
User-Agent: YourAgent/1.0
ParamValuesUse case
video_urlYouTube URL or video IDRequired
formatjson, textjson for sync'd subs with timing
include_timestamptrue, falsefalse for clean text for reading/translation
send_metadatatrue, falseInclude title, channel, description

For language learning — clean text without timestamps:

GET https://transcriptapi.com/api/v2/youtube/transcript?video_url=VIDEO_ID&format=text&include_timestamp=false
Authorization: Bearer $TRANSCRIPT_API_KEY
User-Agent: YourAgent/1.0

For translation — structured segments:

GET https://transcriptapi.com/api/v2/youtube/transcript?video_url=VIDEO_ID&format=json&include_timestamp=true
Authorization: Bearer $TRANSCRIPT_API_KEY
User-Agent: YourAgent/1.0

Response (format=json):

{
  "video_id": "dQw4w9WgXcQ",
  "language": "en",
  "transcript": [
    { "text": "We're no strangers to love", "start": 18.0, "duration": 3.5 }
  ]
}

Response (format=text, include_timestamp=false):

{
  "video_id": "dQw4w9WgXcQ",
  "language": "en",
  "transcript": "We're no strangers to love\nYou know the rules and so do I..."
}

Tips

  • Many videos have auto-generated subtitles in multiple languages.
  • Use format=json to get timing for each line (great for sync'd reading).
  • Use include_timestamp=false for clean text suitable for translation apps.

Errors

CodeMeaningAction
401Bad API keyCheck key
402No creditstranscriptapi.com/billing
403/1010Cloudflare blockAdd or fix User-Agent header
404No subtitlesNo subtitles available
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 Subtitles

Claude Code

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

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

Codex

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

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 Subtitles skill do?

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, follow foreign-language content, or extract what was said. Also use for language learning or accessibility. Fetches timestamped subtitles from any YouTube video. Not for uploading subtitles or account management.

+How do I install Subtitles in Claude Code?

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

+Does Subtitles work with ChatGPT or Codex?

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

+Is Subtitles free?

Subtitles 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. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. Youtube Full

    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

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.