← API Store
Social
YouTube
YouTube
YouTube video subtitles
GET /youtube/v1/video/subtitlesEvery subtitle track of a video: language, name, whether it is auto-generated, and links to the track as json3, srv3, vtt and ttml (the links work for a few hours). With lang, also that track's text as timed segments (start, duration, end, text) and as one string. Manual tracks are preferred over auto-generated ones unless kind=asr. A video without subtitles answers an empty tracks. Every response includes credits_used: the credits this call cost.
Each call costs 1 credits; failed calls are free. Run it in the console playground to see a live result.
Parameters
| Name | Type | Description |
|---|---|---|
video_idrequired | string | Video id or any YouTube video URL (also accepted as `id` or `url`). Example: aircAruvnKk |
lang | string | Language code of the track to return as text (en, es, pt-BR...). Without it only the track list is returned. Example: en |
kind | asr | manual | asr (auto-generated) or manual: which track to return when the language has both. |
Every endpoint also takes: raw、fields、fresh、output、records
No sample yet
This endpoint has no published sample. Use “Test this endpoint” to run it in the console playground.