NGTRGIABAO - Extract Youtube Transcript icon

NGTRGIABAO - Extract Youtube Transcript

Extract dynamic / auto subtitles from a YouTube video

NGTRGIABAO - Extract Youtube Transcript

AI-generated

Summary

Extract dynamic / auto subtitles from a YouTube video

Inputs

  • url (required) — YouTube URL
  • lang — Subtitle language (en, vi, ja, ...)

Output shape

Array of objects with start (number), duration (number), and text (string) properties, representing subtitle segments.

Returns an error object {error: string} if the YouTube URL is invalid, no subtitles are found, or an unexpected error occurs during extraction.

Examples

Example 1: Valid URL with subtitles in English

url: https://www.youtube.com/watch?v=abc123, lang: en

Discussion