I'm making an Android app that would fetch the transcripts of a video. The user can specified which language to fetch. Here I assume the videoID is given.
Is there any way to achieve this by using YouTube's internal API youtubei? I could not find anywhere a documentation of this API, eventhough there seems to be alot of usage of this API out there. So I'd really appreciate if someone can share any source of information of how to use this API.
Here, Benjamin has given a good solution to get the transcript of a video for a given language, but then you need to know if there even exists a transcript for that language. So I would like to know if somehow I can get a list of available languages of the video. Then I can implement like this.
- Get available languages of the video.
- Check that they have the user's requested language
- Get the transcript