youtube-data-api

Youtube Data API v3 pageToken for arbitrary page

时间秒杀一切 提交于 2019-11-28 02:04:46
问题 Another question on SO revealed that pageTokens are identical for different searches, provided that the page number and maxResults settings are the same. Version 2 of the API let you go to any arbitrary page by setting a start position, but v3 only provides next and previous tokens. There's no jumping from page 1 to page 5, even if you know there are 5 pages of results. So how do we work around this? 回答1: A YouTube pageToken is six characters long. Here's what I've been able to determine

Youtube video upload limit exceeded

﹥>﹥吖頭↗ 提交于 2019-11-28 01:56:30
I use this cmd application https://github.com/tokland/youtube-upload After uploading 50 videos i am getting this error: [RequestError] Server response: { "error": { "errors": [ { "domain": "youtube.video", "reason": "uploadLimitExceeded", "message": "The user has exceeded the number of videos they may upload." } ], "code": 400, "message": "The user has exceeded the number of videos they may upload." } } And after this error i can upload 1 video per 15 minutes. But after waiting for aproximatley 2 hours i can upload 50 more videos but it does not work everytime. Sometimes even after waiting for

publishedAfter parameter appears to be broken now

﹥>﹥吖頭↗ 提交于 2019-11-28 01:44:41
问题 I used daily this request to googleapi in my application: GET https://www.googleapis.com/youtube/v3/search?part=snippet&channelId={CHANNEL_ID}&maxResults=25&order=date&publishedAfter=2019-03-15T18%3A01%3A02.000Z&publishedBefore=2019-03-17T09%3A58%3A15.000Z&type=video&key={API_KEY} Timestamps were of course changed each time. This worked fine till yesterday. Today this command did not work properly and returns results from different (much larger) time period. Their timestamps are 25 and appear

YouTube API v3 get all channels associated with a logged in user

我的未来我决定 提交于 2019-11-28 00:02:45
Is it possible to get all the channels associated with a logged in user account, using youtube's version 3 API ( https://developers.google.com/apis-explorer/#p/youtube/v3/ ). The nearest call that I can see for YouTube.channels.list https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.channels.list I attempt to use this by 'Authorizing the requests using OAuth 2.0' I select part=snippet and mine=true https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.channels.list?part=snippet&mine=true&_h=1& but this only brings back the single channel not any of the other channels

Upload video to youtube with mvc application (all code behind)

瘦欲@ 提交于 2019-11-28 00:00:42
This is just crazy, i've spent a week now trying to figure this out. Everything i find is either deprecated or will just not work. So this is what i'm trying to do. We have users upload a video, we store the video until it has been approved. once it is approved, we need to upload it to our youtube channel. The sample from google: https://developers.google.com/youtube/v3/code_samples/dotnet#retrieve_my_uploads will not get past the GoogleWebAuthorizationBroker.AuthorizeAsync because it just hangs forever. Another problem with this approach is that we need the id after the video is uploaded, and

gapi.client.youtube is undefined?

怎甘沉沦 提交于 2019-11-27 23:21:03
I am trying to use youtube api for javascript and am getting 'gapi.client.youtube is undefined'. I have gone through the link: Why is 'gapi.client.youtube' from Youtube Data Api V3 undefined? , but couldn't get much help. My code is placed below: <script> function load(){ gapi.client.setApiKey('AIzaSyARvwirFktEIi_BTaKcCi9Ja-m3IEJYIRk'); gapi.client.load('youtube', 'v3'); searchA(); //alert(gapi.client.youtube.channels); } function searchA() { var q = 'pink floyd'; var request = gapi.client.youtube.channels.list({ part: 'statistics', forUsername : 'GameSprout' }); request.execute(function

Like video with access token on YouTube using YouTube Data API v3?

Deadly 提交于 2019-11-27 23:07:15
问题 I want to like video of YouTube. I have acquired AUTH_TOKEN using AccountManager using the following am.getAuthToken(mAccount, AUTH_TOKEN_TYPE, null, this, new AccountManagerCallback<Bundle>() { public void run(AccountManagerFuture<Bundle> future) { try { if(future != null && future.getResult() != null) { if(future.getResult().containsKey(AccountManager.KEY_AUTHTOKEN)) { AUTH_TOKEN = future.getResult().getString(AccountManager.KEY_AUTHTOKEN); } } } catch(OperationCanceledException e) { }

How to retrieve YouTube video information (title, author, etc) by its id using YouTube API

落爺英雄遲暮 提交于 2019-11-27 22:32:18
问题 Can anybody suggest how to do it or where to learn about how to do it. 回答1: See if this helps: <script type="text/javascript"> function youtubeFeedCallback( data ) { document.writeln( '<img src="' + data.entry[ "media$group" ][ "media$thumbnail" ][ 0 ].url + '" width="' + data.entry[ "media$group" ][ "media$thumbnail" ][ 0 ].width + '" height="' + data.entry[ "media$group" ][ "media$thumbnail" ][ 0 ].height + '" alt="Default Thumbnail" align="right"/>' ); document.writeln( '<b>Title:</b> ' +

Downloading captions always returns a 403

旧街凉风 提交于 2019-11-27 22:25:25
问题 When I call the captions.download endpoint with an ID that we retrieve from the captions.list endpoint, it always returns a 403. For example: https://www.youtube.com/watch?v=1HRwpwOj4aA I call captions.list with: GET https://www.googleapis.com/youtube/v3/captions?part=id&videoId=1HRwpwOj4aA&key={YOUR_API_KEY} This is response: cache-control: private, max-age=0, must-revalidate, no-transform content-encoding: gzip content-length: 236 content-type: application/json; charset=UTF-8 date: Sat, 23

Youtube API 3 get latest videos

心不动则不痛 提交于 2019-11-27 21:18:55
问题 So I am trying to grab 10 latest videos from user uploads. Now the only problem is that the only date visible in the playlistitems request is publishedAt which is the date when the video was uploaded - not the date of when it was made public, which makes a huge difference. I noticed that I can grab the correct date via the video request, but it just does not seem to be the best place to do it. Let me show you an example of what I am dealing with. Let's take Maroon5 channel. forUserName: