devhims / youtube-caption-extractor

A lightweight package to scrape and parse captions (subtitles) from YouTube videos, supporting both user-submitted and auto-generated captions with language options.
https://youtube-caption-extractor.vercel.app
53 stars 8 forks source link

Anyway to list the video's existing languages? #3

Open someguy9 opened 9 months ago

someguy9 commented 9 months ago

So that you could check does 'en-us' exist? then use that, if not default to 'en' for example.

aehlke commented 8 months ago

find a solution?

m0o0scar commented 3 months ago

You may call GET https://www.googleapis.com/youtube/v3/captions to fetch all available captions of a youtube video. See YouTube Data API documentation.