Skip to main content

Path Parameters

string
required
The YouTube video id (e.g. dQw4w9WgXcQ).

Query Parameters

string
Preferred transcript language code (e.g. en, de). Falls back to the default available track.
string
Track type preference: manual (human-authored) or asr (auto-generated).

Response

string
The video the transcript belongs to.
string
Language code of the returned transcript (nullable).
string
Human-readable language name (nullable).
string
Track type: manual or asr (auto-generated) (nullable).
boolean
Whether the track can be machine-translated (nullable).
array
Other available transcript tracks (with language metadata).
array
Languages the transcript can be translated into.
array
Timed transcript lines.
string
The entire transcript as a single plain-text string (nullable).
string
The transcript formatted as a ready-to-use SubRip (.srt) file (nullable).
string
The transcript formatted as a ready-to-use WebVTT (.vtt) file (nullable).

Example Response

Available Caption Tracks

To list the caption tracks for a video without downloading the full transcript, call:
This returns a CaptionsResponse with video_id, a tracks array (each with language, language_name, type, is_translatable, base_url), and translation_languages. The captions endpoint costs 2 credits.
A transcript request costs 5 credits; the /captions listing costs 2 credits. Failed requests are not charged.