GET
/
files
/
captions
/
{videoId}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

videoId
string
required

The YouTube video ID

Required string length: 11

Query Parameters

lang
enum<string>

The language code of the caption

Available options:
en,
es,
de,
fr,
ja,
pt,
tr,
it,
fa,
nl,
af,
am,
ar,
as,
az,
be,
bg,
bn,
bs,
ca,
cs,
da,
el,
en-GB,
en-IN,
es-419,
es-US,
et,
eu,
fi,
fil,
fr-CA,
gl,
gu,
hi,
hr,
hu,
hy,
id,
is,
iw,
ka,
kk,
km,
kn,
ko,
ky,
lo,
lt,
lv,
mk,
ml,
mn,
mr,
ms,
my,
no,
ne,
or,
pa,
pl,
pt-PT,
ro,
ru,
si,
sk,
sl,
sq,
sr-Latn,
sr,
sv,
sw,
ta,
te,
th,
uk,
ur,
uz,
vi,
zh-CN,
zh-HK,
zh-TW,
zu,
en-US,
zh-Hant,
zh,
yue
format
enum<string>

Filters the response to a specific formats

Available options:
json,
text,
csv,
xml,
srt,
vtt,
ttml,
srv1,
srv2,
srv3,
json3

Response

200 - application/json
languageCode
string
required

The language code of the caption

languageName
string
required

The language name of the caption

format
string
required

The format of the caption file

url
string

The YouTube URL of the caption file

staticUrl
string

The static URL of the caption file