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
44 stars 7 forks source link

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

Open someguy9 opened 6 months ago

someguy9 commented 6 months ago

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

aehlke commented 5 months ago

find a solution?

m0o0scar commented 1 month 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.