youtube-data-api

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

帅比萌擦擦* 提交于 2019-12-02 23:01:04
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 playlist details (playlists.list) for a channel's watch history or watch later playlist will return an

Youtube Data API v3 - Get video feeds of auto-generated channels

我的梦境 提交于 2019-12-02 22:01:27
问题 I want to use auto-generated channel Ids as example below... GET https://www.googleapis.com/youtube/v3/channels?part=snippet&id=UCrfjym-5AEUY2QzXsddRIQA&fields=items(id%2Csnippet)&key={YOUR_API_KEY} ...to access their video contents. But seems I cannot make use of the part: 'snippet,contentDetails' , or filter:'uploads' filtering method as I use for getting normal user channel Ids before grabbing their playlistItems. Is there a simple method to display video feed or playlist contents of an

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

此生再无相见时 提交于 2019-12-02 18:34:43
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?? 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/channels?part=contentDetails&mine=true&key={YOUR_API_KEY} With that response, there should be a "watchHistory"

Firebase cloud function [ Error: memory limit exceeded. Function invocation was interrupted.] on youtube video upload

我的未来我决定 提交于 2019-12-02 18:19:09
问题 I was trying to upload videos to youtube using the firebase cloud function. What I need is when a user uploads a video to firebase cloud storage, functions.storage.object().onFinalize event will get triggered and in that event, I store the file to a temporary location and upload the file to youtube from the temp location to youtube, after uploading I delete both files. It will work fine for small files. But if I upload a large file then the function is getting terminated by showing this error

Set proxy for Google.Apis.YouTube.v3

那年仲夏 提交于 2019-12-02 16:28:00
问题 I have the following bit of code to make a call to the YouTubeService service = new YouTubeService(new BaseClientService.Initializer() { ApiKey = AppSettings.Variables.YouTube_APIKey, ApplicationName = AppSettings.Variables.YouTube_AppName }); Google.Apis.YouTube.v3.VideosResource.ListRequest request = service.Videos.List("snippet,statistics"); request.Id = string.Join(",", videoIDs); VideoListResponse response = request.Execute(); This all works but when we deploy it to our live server, it

Get view count using Google Youtube API

隐身守侯 提交于 2019-12-02 16:06:08
问题 I want to get the view count of set of videos. Following is the relevant part of my code. SearchResult singleVideo = iteratorSearchResults.next(); ResourceId rId = singleVideo.getId(); // Double checks the kind is video. if (rId.getKind().equals("youtube#video")) { Thumbnail thumbnail = singleVideo.getSnippet().getThumbnails().get("default"); System.out.println(" Video Id" + rId.getVideoId()); System.out.println(" Title: " + singleVideo.getSnippet().getTitle()); System.out.println(" Thumbnail

YouTube API key gives 500 error when restricted to Android

主宰稳场 提交于 2019-12-02 13:48:28
问题 I am having a very difficult time querying the YouTube search API using a key that is secured for use on Android exclusively. It seems when I remove restrictions from this key, the request works fine. When I attempt to lock it down and send the cert and package headers as described in this solution, I receive a very unhelpful 500 error: { "error": { "errors": [ { "domain": "global", "reason": "internalError", "message": "Internal Error" } ], "code": 500, "message": "Internal Error" } } Here

Using the YouTube v3 Data API for .NET, how is it possible to get a refresh token?

我的梦境 提交于 2019-12-02 13:44:33
I need to be able to use a refresh token to be able to re-authenticate a token after the access token has expired. How can I do this using the C# v3 API? I've looked at the UserCredential class and AuthorizationCodeFlow class and nothing is jumping out at me. I'm using the following code to authenticate it originally. var result = await new AuthorizationCodeMvcApp(this, new AppFlowMetadata()). AuthorizeAsync(CancellationToken.None); if (result.Credential != null) { var service = new YouTubeService(new BaseClientService.Initializer { HttpClientInitializer = result.Credential, ApplicationName =

YouTube API quota been reduced

若如初见. 提交于 2019-12-02 13:28:20
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 like the whole project had been shut down, so the quota is 0. And none of them is the same as the

Strange behaviour Youtube v3 api

梦想与她 提交于 2019-12-02 11:39:18
问题 I am trying to page through all content of a Youtube channel by using the api: https://www.googleapis.com/youtube/v3/search?channelId=UC5nc_ZtjKW1htCVZVRxlQAQ&part=snippet,id&order=date&maxResults=50&key=<myKey> as I result I get: { "kind": "youtube#searchListResponse", "etag": "\"CuSCwMPVmgi8taDtE2LV6HdgkN0/N3YNEZY0rLQ94onYIYp3nPLN57E\"", "nextPageToken": "CDIQAA", "regionCode": "CZ", "pageInfo": { "totalResults": 1381, "resultsPerPage": 50 }, "items": [ ... all fine until here; items are