Platforms · YouTube

YouTube Video Subtitles Scraper API

Returns the downloadable subtitle/caption track files for a YouTube video: each with a language code and name, format, and a direct download url. Includes both manual and auto-generated tracks across available subtitle formats (srt, vtt, ttml, …).

GET /api/v1/data/youtube/video-subtitles · 1 credit per call · Every call fetches the data afresh.

Inputs

  • url (required): Full URL of the YouTube video.
  • format: Subtitle file format filter (e.g. srt, vtt, ttml, json3, srv1).

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • items[].format (string): The subtitle file format, such as `srt`, `vtt` or `ttml`.
  • items[].languageCode (string): The language code, such as `en`.
  • items[].languageName (string): The language's name, such as `English`.
  • items[].url (string): A direct link to the subtitle file.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • Each call costs 1 credit. A call that finds nothing, or fails, is free.
  • Every call fetches the data afresh.

Example call

GET /api/v1/data/youtube/video-subtitles?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ

Questions

How much does the YouTube Video Subtitles API cost?

Each call costs 1 credit. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send url. 1 more input is optional: format. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How fresh is the data?

Every call fetches the data afresh.

Do I need a YouTube account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related YouTube endpoints

More YouTube scraper APIs