youtube-data-api

How to get a user's Google+ ID from a YouTube channel ID

試著忘記壹切 提交于 2019-12-06 06:02:36
I'm running a service where people can connect their Google account using oauth 2.0, and with YouTube permissions I can manage their channels/access their YouTube Channel ID. However, my question is whether or not you can go backwards. i.e. How can you determine the Google Account Owner from a given YouTube channel ID? Michael Waltman googlePlusUserId is now deprecated from https://developers.google.com/youtube/v3/docs/channels#properties contentDetails.googlePlusUserId no longer exists as part of the contentDetails part. Based on this excerpt from their change-log June 13, 2016 This update

Create YouTube Playlist using NodeJS

怎甘沉沦 提交于 2019-12-06 05:54:04
问题 I am trying to create a youtube playlist by using a NodeJS server. I have followed the NodeJS quickstart instructions for Oauth as seen at this link: https://github.com/youtube/api-samples/blob/master/javascript/nodejs-quickstart.js From this link, I have also been able to access channel information by using the method below: function getChannel(auth) { var service = google.youtube('v3'); service.channels.list({ auth: auth, part: 'snippet,contentDetails,statistics', forUsername:

YouTube liveStreaming API method LiveStream.list doesn't return stream proposed by YouTube

心已入冬 提交于 2019-12-06 05:48:31
I have stumbled upon an unexpected behavior of YouTube liveStream API . Whenever I request liveStream.list method, the only streams I get back are the ones initiated by my encoding software or liveStream.insert calls. What I am trying to retrieve instead is the stream that is proposed by YouTube in the default encoder setup: Am I doing something wrong? You can retrieve information about the default, or "Stream Now" broadcast by passing persistent for the broadcastType parameter in liveBroadcast.list . Here's my final complete code for this , $api_stream_url contains ServerURL/StreamKey

How to get comments through Youtube Data API v3 / JSOUP parsing? [duplicate]

天大地大妈咪最大 提交于 2019-12-06 05:40:22
This question already has answers here : How do I fetch comments in version 3 of the YouTube API? (2 answers) Closed 4 years ago . "Getting comments with Youtube Data API V3 is on Trusted Tester stage". Can anyone give me some update info for this? I don't want to use API V2 for getting comments, maybe there is a better way? Can anyone give me an advice how to use jsoup html parser in Android for retrieving comments if there is no way to use Youtube Data API V3 (With example, please)? The YouTube Team added support for comments in v3 recently. Have a look here: http://youtube-eng.blogspot.co

Video meta data using YouTube Data API v3

做~自己de王妃 提交于 2019-12-06 04:34:26
问题 By using search example, i am able to get video details like name, id, thumb nail URL. But how can i get video total duration using YouTube Data API. Thanks in advance. 回答1: You will have to make a call to the Youtube Data API's Video resource after you make the search call. You can put up to 50 video id's in search, so you wont have to call it for each element. https://developers.google.com/youtube/v3/docs/videos/list You'll want to set part=contentDetails, because duration is there. For

CMS channel list using Youtube API with onBehalfOfContentOwner

故事扮演 提交于 2019-12-06 04:28:17
I am using the Youtube Data API to do targeted queries ( like this example ) for a few CMS accounts in an MCN. I enabled the proper APIs and set up an oAuth for an installed app on Google's developer console. I made sure to call the right scopes: YOUTUBE_SCOPES = ["https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/yt-analytics-monetary.readonly", "https://www.googleapis.com/auth/youtubepartner"] Authentication has no qualms... (youtube, youtube_analytics) = get_authenticated_services(args) Until a sanity check to list the channels associated with the CMS:

Youtube API get unlisted videos

不问归期 提交于 2019-12-06 03:31:22
问题 for a project i have to list all videos from a youtube user account. I'm getting all public videos, but when i make an api call after oauth i still get only public videos. Unlisted videos are videos that are hidden from search engine and user public page. I'm sure there is a way to retrieve that. Here is my code var request = gapi.client.youtube.playlistItems.list({ playlistId: listId, part: 'snippet,status', maxResults: 25, pageToken: nextPageToken }); request.execute(function(response) {

How can I search the channel in a specific country using the YouTube API 3.0?

懵懂的女人 提交于 2019-12-06 03:11:16
I use the url to search channels in a specific country like this https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=8&order=viewCount&q=news&type=channel&regionCode=US&key=API-Key . But when i changed the regionCode parameter to IT(italy) or any other one,the search result is always identical.So the search result is not changed with the regionCode. How can I search the channel by country using the YouTube API 3.0,thanks. KENdi I also try to search channel with the optional parameter regionCode , and it seems that this parameter is not to filter the results base on the country

Youtube Data API - How to avoid Google OAuth redirect URL authorization

丶灬走出姿态 提交于 2019-12-06 02:42:14
问题 Requirement : I am trying to upload videos to my Youtube channel through Youtube Data API for Java. The request is sent from a war file hosted on tomcat container.My application is not for external users and I only use it to upload my own generated videos. With the help of the api documentation and sample youtube code snippets, I have successfully managed to post video on youtube. Problem: The issue is that whenever I try to run the code, I get prompted for Please open the following address

How to obtain Client Secret in Youtube API for iOS client?

◇◆丶佛笑我妖孽 提交于 2019-12-06 02:30:37
问题 I'm working on iOS app that contains feature uploading video on Youtube. I followed an example project from yt-direct-lite-ios. The project requires client id and client secret I went to console.developers.google.com to create client id (with iOS client). However I can ONLY find the client id . So where can I obtain client secret from here? I have also checked this post and still not work for me. Thanks in advance. 回答1: You don't need a secret with the iOS client. (there used to be and that