youtube / api-samples

Code samples for YouTube APIs, including the YouTube Data API, YouTube Analytics API, and YouTube Live Streaming API. The repo contains language-specific directories that contain the samples.
5.43k stars 2.97k forks source link

Download captions from any video #548

Open VirajVaitha123 opened 1 month ago

VirajVaitha123 commented 1 month ago

Hi,

Many third party libraries allow people to download captions using their service, however the YouTube Data API v3 doesn't. I can't find any video where i can download captions, apart from my own. This means, it would infact be illegal for me to use those services, and create a service that allows people interact with those transcripts.

Is there anyway around this or is it impossible to create any service based on public youtube videos and their transcripts?

Thanks,

Viraj

TarunVishwakarma1 commented 2 weeks ago

Hi,

There is an API for downloading captions if you want to do that.

java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/Captions.java

You can find it here.