YouTube Video transcript API
Caption transcript for a video or Short by URL or id, with start/end timestamps per segment.
Pricing
One price, in dollars
A provider marked Not serving stopped answering reliably and was taken out of the rotation, so your calls go to the others. It is put back on its own once it answers reliably again.
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;
reason?: "not_found";
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-20 · 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.011 |
| Price /1k req | USD | $11.00 |
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 returns one normalized schema whichever source serves it. It costs from $11 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 98.8% of YouTube video transcript calls through AnyAPI succeeded, with a median response time of 8.4 seconds across 432 measured calls.