Does the YouTube API prohibit uploading videos if you are not the owner?

It seems to me that the YouTube API prohibits downloading video streams if you do not own it:

Captions for videos can only be created, extracted , modified and deleted by the owner of this video .

The link above leads to the YouTube API documentation version 2.0, which is deprecated, but it seems that in version 3.0 this policy remains the same. If you try to download video captions, you will get the following 403 errors :

The permissions associated with the request are not enough to download the track. The request may not be properly resolved, or the video application may not include third-party fees for this header.


At the same time, you only need API_KEY for the list of signatures of any YouTube video without any permission (creating an instance of the YouTube object, as in this official example ):

youtube = new YouTube.Builder(HTTP_TRANSPORT, JSON_FACTORY, new HttpRequestInitializer() { public void initialize(HttpRequest request) throws IOException { } }).setApplicationName("youtube-cmdline-search-sample").build(); CaptionListResponse captionListResponse = youtube .captions() .list("snippet", "jNhtbmXzIaM") .setKey(API_KEY) .execute(); List<Caption> captions = captionListResponse.getItems(); CaptionSnippet snippet; for (Caption caption : captions) { snippet = caption.getSnippet(); System.out.println("ID: " + caption.getId()); System.out.println("Name: " + snippet.getName()); System.out.println("Language: " + snippet.getLanguage()); System.out.println(); } 

Thus, does the YouTube API v3.0 really restrict reading access under headings while it is publicly available, and even services and scripts that allow you to upload captions of any video to YouTube? How can I choose the captions of any video from YouTube (solutions using the preferred API)?

+6
source share

All Articles