Search APIs
Loading…
← API Store
Social

YouTube

YouTube

YouTube video subtitles

GET /youtube/v1/video/subtitles
Test this endpoint

Every 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

NameTypeDescription
video_idrequiredstringVideo id or any YouTube video URL (also accepted as `id` or `url`). Example: aircAruvnKk
langstringLanguage code of the track to return as text (en, es, pt-BR...). Without it only the track list is returned. Example: en
kindasr | manualasr (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.