YouTube Video transcript API
Caption transcript for a video or Short by URL or id, with start/end timestamps per segment.
Provider network
Providers ranked by traffic
Try it
Make your first request
{
"found": true,
"data": {
"id": "dQw4w9WgXcQ",
"language": "en",
"segments": [
{
"start": 18.2,
"end": 21,
"text": "Never gonna give you up"
},
{
"start": 21,
"end": 24.4,
"text": "Never gonna let you down"
}
]
}
}interface YoutubeVideoTranscriptResponse {
data: {
language: string;
segments?: {
durationSeconds: number;
startSeconds: number;
text: string;
}[];
transcript: string;
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-14 · uptime and latency measured over 30dcurl -X POST https://api.getanyapi.com/v1/run/youtube.video_transcript \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| id | string | YouTube video ID. A Short uses the same ID as any other video. |
| url | string | "https://www.youtube.com/watch?v=dQw4w9WgXcQ"Full YouTube video URL. Shorts (youtube.com/shorts/...), youtu.be, live, and embed URLs all work. |
| Response | ||
| found | boolean | true |
| data | object | |
| data.id | string | "dQw4w9WgXcQ" |
| data.language | string | "en" |
| data.segments | array | |
| data.segments[].start | number | 18.2 |
| data.segments[].end | number | 21 |
| data.segments[].text | string | "Never gonna give you up" |
| Price | ||
| Price per request | USD | $0.00125 |
| Price /1k req | USD | $1.25 |
FAQ
About the YouTube Video transcript API
The AnyAPI YouTube Video transcript API returns YouTube video transcript data as normalized JSON from one POST call to /v1/run/youtube.video_transcript. Caption transcript for a video or Short by URL or id, with start/end timestamps per segment. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $1.25 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of YouTube video transcript calls through AnyAPI succeeded, with a median response time of 8.5 seconds across 327 measured calls.