youtube-data-api

How can I set videos to “private yet shared” using the v3 YouTube API?

走远了吗. 提交于 2019-12-03 12:49:48
I work for a school that has an institutional YouTube account (Google Apps for Education). The video privacy options are Public , Unlisted , and Private . The important bit: Private videos can be shared with either: - the institution (i.e., all students with a school account), or - a list of specific email addresses. We have a tool that uses the v3 YouTube API (Java) to automatically upload videos to YouTube. I can use the API to set privacy: VideoStatus videoStatus = new VideoStatus(); videoStatus.setPrivacyStatus("private"); But how do I set sharing (e.g., "Shared with school.edu") using the

YouTubeAndroidPlayerAPI can't play some videos

淺唱寂寞╮ 提交于 2019-12-03 12:40:09
-- Update 09/05/2016 17:10 -- The problem seems related to the date of publication of the video... In the last week of April I posted many videos on YouTube, those published up to 19:00 of April 27 work properly, while those charged by 21:15 on the same day have the issue discussed, as if between 19 and 21 of April 27 had been introduced a few updates or changes to the videos by YouTube. I tried to load a new video now and this also has the same problem. I have a strange problem with YouTubeAndroidPlayerAPI.. I use YouTubePlayerSupportFragment (but I have the same problem with

YouTube Cards API

这一生的挚爱 提交于 2019-12-03 10:47:33
I am wondering if anybody has any information or news regarding the API (if it exists yet?) of the new YouTube Cards (replacing the old annotations). Is there any beta api information out yet? I'm referring to this: Thank you for your help Plamen Petrov You can track the YouTube Developer Blog and also subscribe to the revision history of YouTube Data API v3 , in order to get the latest info on the API, as soon as it is available. Currently (as of the last version of the API - April 27, 2015) there is no way to manage Cards, and I suspect that there would not be, at least not anytime soon. I

DELETEing a YouTube watchLater playlist item failing - returning 404

社会主义新天地 提交于 2019-12-03 10:03:37
问题 i have code that deletes an item from my youtube watchLater playlist. this was working ok up to about two weeks ago - now i'm getting a 404 error from youtube. here's the sequence of requests and responses (with authentication details stripped, of course): get playlist items request: GET https://www.googleapis.com/youtube/v3/playlistItems?fields=items/id&part=snippet&playlistId=WLlue5EIJLscoxMgEkEZfq_A get playlist items response: { "items": [ { "id":

Upload videos to Youtube from my web server in Java

这一生的挚爱 提交于 2019-12-03 09:16:30
My goal is to upload videos that are uploaded to my web server to Youtube on my own channel , not the users' Youtube account (my web server is acting as a proxy). I found the sample code for uploading video to Youtube here with the credential acquired this way . The problem that I have with this sample is that it writes to disk the credential, and it opens an http server. Since my web server can potentially have a lot of users uploading their videos concurrently, the credential file location has to be dynamic, and multiple binding to the same http port is not possible. Further more, after

How to get watch later playlist details after September 12th?

喜夏-厌秋 提交于 2019-12-03 08:56:17
问题 Today, on YouTube's revision history page it is stated that The channel resource's contentDetails.relatedPlaylists.watchHistory and contentDetails.relatedPlaylists.watchLater properties are only visible to an authorized user retrieving data about the user's own channel. After September 12, 2016, the contentDetails.relatedPlaylists.watchHistory will return a value of HL and the contentDetails.relatedPlaylists.watchLater property will return a value of WL for all channels. Requests to retrieve

How to get comments from videos using YouTube API v3 and Python?

。_饼干妹妹 提交于 2019-12-03 08:51:30
问题 I've been trying to get comments (both threads and replies) from a given video on YouTube using Python (as an exercise to learn the language). Based on the examples given at the official website (https://developers.google.com/youtube/v3/docs/commentThreads/list), I was able to get some of the comments, but not all of them. I tried to add some code to deal with multiple pages, but I am having troubles to get the comments for videos with only a single page. For example, https://www.youtube.com

How to get watched history of youtube user using Youtube Javascript API?

筅森魡賤 提交于 2019-12-03 04:35:17
问题 I am able to get search results, playlists of an user using Youtube Javascript API. How can i get the watched history of an user using Youtube Javascript API??? Is there any Javascript API to get the Youtube watched history of an user?? 回答1: Here's the general procedure: 1) Get the "watch History" playlist of a given user's channel (as a channel ID is the key to getting user info). Note that this will ONLY work when a user is authenticated via oAuth2. https://www.googleapis.com/youtube/v3

DELETEing a YouTube watchLater playlist item failing - returning 404

萝らか妹 提交于 2019-12-03 00:33:56
i have code that deletes an item from my youtube watchLater playlist. this was working ok up to about two weeks ago - now i'm getting a 404 error from youtube. here's the sequence of requests and responses (with authentication details stripped, of course): get playlist items request: GET https://www.googleapis.com/youtube/v3/playlistItems?fields=items/id&part=snippet&playlistId=WLlue5EIJLscoxMgEkEZfq_A get playlist items response: { "items": [ { "id": "V0xsdWU1RUlKTHNjb3hNZ0VrRVpmcV9BLjU2QjQ0RjZEMTA1NTdDQzY=" } ] } delete request: DELETE https://www.googleapis.com/youtube/v3/playlistItems?id

YouTube API quota been reduced

人走茶凉 提交于 2019-12-02 23:19:04
问题 I have encounter some problems when using YouTube API recently, and I would like to ask if you have the same problem like I do and if anyone have any solution. Before, I had 100 millions and 50 millions quotas per day, but I just found out that the quota of some keys with less usage has decreased a lot (500 millions has decreased to 300K and the one with 1 million has decreased to 600K and 10K ) The info that I found are all from the project of 2016, and the quotas are all 10K or other case