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, follow foreign-language content, or extract what was said.

How to use it

Claude Code
  1. Run the line below. It pulls the whole folder into ~/.claude/skills/subtitles.
  2. Describe your job in plain words. Claude Code follows the skill from there.
Claude Code — installs the whole folder, not just SKILL.md
npx degit ZeroPointRepo/youtube-skills/skills/subtitles#main ~/.claude/skills/subtitles

For one project only, change the path to .claude/skills/subtitles.

Claude (web or desktop app)
  1. On this page open ⋯ → Download .md.
  2. Save it as SKILL.md in a folder, zip the folder, then Customize → Skills → + → Create skill → Upload a skill.
  3. Pick the file and Save. Claude shows the name and description and runs a security scan.
  4. Check the skill is switched on.
  5. Start a new chat and describe your job in plain words. The AI follows the skill from there.
ChatGPT or another app
  1. ChatGPT: make a Project and paste it into Instructions.
  2. Neither? Paste it at the top of a new chat — it works for that chat.
Not working?
  • Check which app you pasted it into — the steps above name the right one.
  • Some skills need the paid tier of Claude or ChatGPT.
Step-by-step guide with screenshots · Ask in the forum

Paste into Claude, ChatGPT or Cursor.

Source of Subtitles

Show the full text104 lines
namedescriptionversionuser-invocablecompatibilityrequired_environment_variablesmetadata
subtitlesUse 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.1.5.1trueRequires internet access to reach transcriptapi.com. No additional runtimes or dependencies needed. - 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{"openclaw":{"emoji":"▶️","requires":{"env":["TRANSCRIPT_API_KEY"]},"primaryEnv":"TRANSCRIPT_API_KEY","homepage":"https://transcriptapi.com"},"hermes":{"tags":["youtube","subtitles","captions","transcripts","video","translation","language-learning"],"category":"media"}}

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
Param Values Use case
video_url YouTube URL or video ID Required
format json, text json for sync'd subs with timing
include_timestamp true, false false for clean text for reading/translation
send_metadata true, false Include 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

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 subtitles No subtitles available
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---
2name: subtitles
3description: "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."
4version: "1.5.1"
5user-invocable: true
6compatibility: Requires internet access to reach transcriptapi.com. No additional runtimes or dependencies needed.
7required_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
12metadata: {"openclaw":{"emoji":"▶️","requires":{"env":["TRANSCRIPT_API_KEY"]},"primaryEnv":"TRANSCRIPT_API_KEY","homepage":"https://transcriptapi.com"},"hermes":{"tags":["youtube","subtitles","captions","transcripts","video","translation","language-learning"],"category":"media"}}
13---
14 
15# Subtitles
16 
17Fetch YouTube video subtitles via [TranscriptAPI.com](https://transcriptapi.com).
18 
19## Setup
20 
21If `$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.
22 
23## Required Headers
24 
25Every 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```http
33GET https://transcriptapi.com/api/v2/youtube/transcript?video_url=VIDEO_URL&format=text&include_timestamp=false&send_metadata=true
34Authorization: Bearer $TRANSCRIPT_API_KEY
35User-Agent: YourAgent/1.0
36```
37 
38| Param | Values | Use case |
39| ------------------- | ----------------------- | ---------------------------------------------- |
40| `video_url` | YouTube URL or video ID | Required |
41| `format` | `json`, `text` | `json` for sync'd subs with timing |
42| `include_timestamp` | `true`, `false` | `false` for clean text for reading/translation |
43| `send_metadata` | `true`, `false` | Include title, channel, description |
44 
45**For language learning** — clean text without timestamps:
46 
47```http
48GET https://transcriptapi.com/api/v2/youtube/transcript?video_url=VIDEO_ID&format=text&include_timestamp=false
49Authorization: Bearer $TRANSCRIPT_API_KEY
50User-Agent: YourAgent/1.0
51```
52 
53**For translation** — structured segments:
54 
55```http
56GET https://transcriptapi.com/api/v2/youtube/transcript?video_url=VIDEO_ID&format=json&include_timestamp=true
57Authorization: Bearer $TRANSCRIPT_API_KEY
58User-Agent: YourAgent/1.0
59```
60 
61**Response** (`format=json`):
62 
63```json
64{
65 "video_id": "dQw4w9WgXcQ",
66 "language": "en",
67 "transcript": [
68 { "text": "We're no strangers to love", "start": 18.0, "duration": 3.5 }
69 ]
70}
71```
72 
73**Response** (`format=text`, `include_timestamp=false`):
74 
75```json
76{
77 "video_id": "dQw4w9WgXcQ",
78 "language": "en",
79 "transcript": "We're no strangers to love\nYou know the rules and so do I..."
80}
81```
82 
83## Tips
84 
85- Many videos have auto-generated subtitles in multiple languages.
86- Use `format=json` to get timing for each line (great for sync'd reading).
87- Use `include_timestamp=false` for clean text suitable for translation apps.
88 
89## Errors
90 
91| Code | Meaning | Action |
92| -------- | ---------------- | ---------------------------------------------- |
93| 401 | Bad API key | Check key |
94| 402 | No credits | transcriptapi.com/billing |
95| 403/1010 | Cloudflare block | Add or fix User-Agent header |
96| 404 | No subtitles | No subtitles available |
97| 408 | Timeout | Retry once after 2s |
98 
991 credit per request. Free tier: 100 credits, 300 req/min.
100 
101## Copy-paste examples
102 
103Every request in this file as a ready-to-run one-liner: [references/curl-examples.md](references/curl-examples.md)
104 

Discussion

Alternatives

Also in Captions & subsSee all 320 in Content creator →