Hacker News new | ask | show | jobs
by Sommer 2028 days ago
You can also get a YouTube video transcript directly from the API with one call, just register for a free developer key and use:

https://youtube.googleapis.com/youtube/v3/captions?part=snip...

official docs: https://developers.google.com/youtube/v3/docs/captions

2 comments

youtube-dl --write-sub --skip-download
Doesn't work unless there are subtitles (WARNING: video doesn't have subtitles), which seems to be different from captions.
I think subtitles and captions are the same foe YouTube-DL. However, some videos only have auto-generated captions, and YouTube-DL doesn't download these... by default. There is an option to force the download of both generated and even translated captions.
--write-auto-sub (thanks)
“ Quota impact: A call to this method has a quota cost of 50 units.”?
Which is out of a default quota of 10,000 units per day, and one can request an increase if your actually need more, (which presumably gets granted if YouTube agrees your use case is not an abuse of their API).