I am trying to use the YouTube API to retrieve videos, but the example is incomplete: https://developers.google.com/youtube/v3/code_samples/python#create_and_manage_youtube_video_caption_tracks
In particular, it has this comment + code:
# Trusted testers can download this discovery document from the developers page # and it should be in the same directory with the code. with open("youtube-v3-api-captions.json", "r") as f: doc = f.read() return build_from_document(doc, http=credentials.authorize(httplib2.Http()))
But it is not at all clear where the file can be found youtube-v3-api-captions.json.
youtube-v3-api-captions.json
Where can I find him?
Seems like here: https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest
, "youtube" "v3" "" https://developers.google.com/discovery/v1/reference/apis/getRest
API- -, API- : https://developers.google.com/apis-explorer/#search/discovery/discovery/v1/discovery.apis.list