youtube-data-api

Youtube live streaming API giving livePermissionBlocked error

╄→尐↘猪︶ㄣ 提交于 2021-02-11 12:20:24
问题 I am trying to setup youtube live streaming APIs using service account delegation. I have done all the necessary steps for service account delegation on my domain. I have a youtube channel owned by a user with email id of this domain name. Channel has more than 10k subscribers and has all the necessary permissions to live stream (I can live stream via youtube studio). While using youtube java APIs, i am getting this error : { "code" : 403, "errors" : [ { "domain" : "youtube.liveBroadcast",

Youtube V3 API - Fetch a random video based on keyword

末鹿安然 提交于 2021-02-11 05:09:06
问题 I am using the below code to navigate to different pages of Youtube data. I call the service again and again based on $randomNumber ( 1 to 20). But I don't think this is the better way. $youtube = new Google_Service_YouTube($client); $searchResponse = $youtube->search->listSearch('id,snippet', array( 'type' => 'video', 'q' => $searchTerm, 'maxResults' => $videoCount )); $nextPage = $searchResponse["nextPageToken"]; for($i=1;$i< $randomNumber ;$i++){ $newSearchResponse = $youtube->search-

Youtube V3 API - Fetch a random video based on keyword

梦想与她 提交于 2021-02-11 05:01:19
问题 I am using the below code to navigate to different pages of Youtube data. I call the service again and again based on $randomNumber ( 1 to 20). But I don't think this is the better way. $youtube = new Google_Service_YouTube($client); $searchResponse = $youtube->search->listSearch('id,snippet', array( 'type' => 'video', 'q' => $searchTerm, 'maxResults' => $videoCount )); $nextPage = $searchResponse["nextPageToken"]; for($i=1;$i< $randomNumber ;$i++){ $newSearchResponse = $youtube->search-

How to get the Channel Type or Category of each YouTube channel using YouTube API?

好久不见. 提交于 2021-02-10 19:47:59
问题 I am new to using the YouTube API. I am trying to get the Channel Category of each channel, but I don't know how to make a request to get the category. I will give an example: http://socialblade.com/youtube/user/pewdiepie As you can see on the Socialblade statistic of pewdiepie there is a "CHANNEL TYPE" above and the channel type or category of pewdiepie is "Games" but how did Socialblade request for that? I hope you can help me. Thank you. 回答1: Well the v3 API doesn't have a category for

Youtube API returning more views than is listed on native

最后都变了- 提交于 2021-02-10 15:49:38
问题 When using this API call: https://www.googleapis.com/youtube/analytics/v1/reports?ids=channel==UCaGKtfnhSkDsIbcyVVUOL6A&start-date=2017-06-27&end-date=2017-06-27&metrics=views,comments,likes,dislikes,shares,estimatedMinutesWatched,averageViewDuration,averageViewPercentage,annotationClickThroughRate,annotationCloseRate,subscribersGained,subscribersLost&dimensions=day&filters=video==qstWdXxFmcU We are getting an incorrect amount of views. For example we have 173 views for the video linked below

Does YouTube Data API v3 provide video stream URLs?

丶灬走出姿态 提交于 2021-02-10 14:17:31
问题 Using the YouTube Data API v3, is it actually able to return to me the URL for a video (by ID) of all the available video and audio streams? I have the YouTube video ID. I want to choose a video stream to play in a client app. I've read all the YouTube Data API documentation on this site: https://developers.google.com/youtube/v3 And this question is not answered; in fact it seems to intentionally avoid this whole topic. 回答1: Sorry for having to give you a negative response: As far as I know,

Youtube data API quota on using the same google client on different devices

北城余情 提交于 2021-02-10 14:16:32
问题 The current youtube API quota is 10,000 units/day. So what if I created an app and this app has 100 copies installed on different 100 devices and all of them use different IPs, would the quota be 10,000 units/day for every device (1M/day) or the 10,000 units would be distributed among the different copies? Note that the requests will be executed on different devices. this is an embedded app., not a cloud one. 回答1: 10,000 units/day is project based, not user based. IP address won't affect

Youtube Data API V3: Insert a reply to a comment

ε祈祈猫儿з 提交于 2021-02-10 12:57:44
问题 I couldn't find out whether it's possible to respond to replies of a Comment Thread or not... I get an Error: { "error": { "errors": [ { "domain": "youtube.comment", "reason": "operationNotSupported", "message": "Not all comments can be replied to. Check the comment threads canReply field.", "locationType": "other", "location": "body.snippet" } ], "code": 400, "message": "Not all comments can be replied to. Check the comment threads canReply field." } } My request was like this: POST https:/

Properly way for obtaining the N latest videos of channel : search vs playlistItem vs activities endpoints

让人想犯罪 __ 提交于 2021-02-08 10:21:09
问题 I'm developing for a web app that needs to retrieve the last 10 videos of a user(channel). First approach Was to use the search endpoint with param 'forMine' ordering by date, but then I figured that maybe that param could retrieve videos uploaded by the user in a diferent channel or whatever... First result with channel ID and date - 1st Aproach Second approach Was to use the search endpoint with param 'channelId' ordering by date, but then I realized that descriptions were incomplete and

I get a 500 error when I add 'madeForKids' parameter to 'youtube.liveBroadcasts.insert' API

妖精的绣舞 提交于 2021-02-08 05:18:38
问题 I have one question about how to use 'madeForKids' in 'youtube.liveBroadcasts.insert' API. When I don't use this parameter, the user interface of youtube will pop up a window to let me choose wether it is made for kids. I don't want it to show this window. I want to set this value with API. But when I added this parameter, it will always response a 500 error. My codes is based on JS as follows: this.youtube.liveBroadcasts.insert( { auth: this.oauth2Client, part: "snippet,contentDetails,status