SUBTITLE EXPORTS

YouTube Transcript API SRT/VTT

Convert TubeScript JSON transcript segments into SRT or VTT subtitle files using timestamped API output.

QUICK ANSWERS

Direct answer

The real endpoint is https://tubescript.cc/v1/transcript. API access is included with the Team plan.

01

YouTube Transcript API SRT/VTT

TubeScript returns timestamped transcript segments. Developers can convert those segments to SRT or VTT in their own app; the web product also supports subtitle-style exports.

SRT formatter
function formatSrtTime(seconds) {
  const date = new Date(seconds * 1000).toISOString().slice(11, 23);
  return date.replace(".", ",");
}

function segmentsToSrt(segments) {
  return segments.map((segment, index) => {
    const start = formatSrtTime(segment.start);
    const end = formatSrtTime(segment.start + segment.duration);
    return `${index + 1}\n${start} --> ${end}\n${segment.text}`;
  }).join("\n\n");
}

Use the segment primitive

The API's start and duration values are enough to generate subtitle files without losing the transcript source.

Editors need timestamps

SRT/VTT conversion is especially useful for video editors, podcasters, and accessibility workflows.

Build on the transcript engine

Team includes API keys, JSON transcript access, cache-backed reads, and 100 API requests per day.

View Pricing