youtube-data-api

“This video is unavailable” when putting music videos in iFrame

こ雲淡風輕ζ 提交于 2019-12-08 12:52:23
问题 So I developed an app that fetches the youtube video for songs. 2 months ago this worked without fail. Came back to my app and suddenly getting the static-y error "This video is unavailable". Double checked that the video on Youtube is actually there and plays, and I also checked to see if the uploader allows embedding by using https://www.googleapis.com/youtube/v3/videos?id=l-EdCNjumvI&key=[MYKEY]&part=snippet,contentDetails,status I got the status response as follows: "status" : {

How do I supply Header info such as Package Name and SHA1 in Google API request?

被刻印的时光 ゝ 提交于 2019-12-08 11:23:08
问题 I am trying to access Google API using dotNet SDK. When I don't have API restriction, I can just access and get JSON using the following code. I can still access with IP address restriction. But when I want to use with application restriction, I have to provide Package Name and SHA-1, which I already generated. I just don't know how to provide this header info when requesting API get. There are several ways to implement the credentials. By using the service account, I only need to provide

Is there an alternative to youtube.search.list for querying of active Livestreams of another channel?

江枫思渺然 提交于 2019-12-08 10:46:47
问题 Since the YouTube Data v3 API has a quota limit and youtube.search.* has a minimum impact of 100 quota (which is a lot considering you only get 10000/day to start with) is there an alternative to the youtube.search.list function to query active LiveStreams for another (non authorised) channel by ID? https://www.googleapis.com/youtube/v3/search?part=snippet&channelId={CHANNEL-ID}&eventType=live&type=video&maxResults=1&order=date&key={API-KEY} This consumes the said minimum of 100 quota per

Youtube playlistItems list API sometimes works, sometimes throws 404

不打扰是莪最后的温柔 提交于 2019-12-08 08:43:35
问题 I have retrieved upload Id from a channel as shown here(https://www.youtube.com/watch?v=RjUlmco7v2M&t=2s), and using it as playlitstId here https://developers.google.com/youtube/v3/docs/playlistItems/list#try-it Sometimes it gives 200, sometimes 404, Response {_body: "{↵ "error": {↵ "errors": [↵ {↵ "domain": "yo…003c/code\u003e parameter cannot be found."↵ }↵}↵", status: 404, ok: false, statusText: "OK", headers: Headers…} Additional info: I have selected part as contentDetails,id,snippet

Checking if video is age restricted with v3 of YouTube API

百般思念 提交于 2019-12-08 08:26:43
问题 Is there a way with v3 of the YouTube API to check if a video has an age restriction on it? Looking at the documentation I've been unable to confirm this. 回答1: I found something related to this,check https://www.googleapis.com/youtube/v3/videos?part=contentDetails&id={VIDEO_ID}&key={YOUR_API_KEY} replace VIDEO_ID with the id of video you want to check. API Response : { "kind": "youtube#videoListResponse", "etag": "\"mPrpS7Nrk6Ggi_P7VJ8-KsEOiIw/el3Y0P65UwM366CJD3POX-W4y0c\"", "pageInfo": {

List all videos of a Youtube channel in Google Apps Script

£可爱£侵袭症+ 提交于 2019-12-08 07:06:42
问题 I'm using Youtube Data API to list first 25 video titles and ids of a channel in google spreadsheet, but for some reason I'm only getting the Title of the channel. Here are my codes, function searchByChannel() { var results = YouTube.Channels.list('id,snippet', { id: 'UC-9-kyTW8ZkZNDHQJ6FgpwQ', maxResults: 25 }); var title = ""; var id = ""; var lr = 0; var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet1 = ss.getSheetByName("Sheet1"); for (var i = 0; i < results.items.length; i++) {

How to find 360° videos using Youtube Data API

孤街浪徒 提交于 2019-12-08 06:30:20
问题 I am looking for a way to find all of the 360° videos from Youtube using Youtube APIs for my research. Currently I haven't been able to find this feature from the Youtube APIs, or hack a work-around using available API functions. Search results on Yuotube webpage can be filtered by featureto just show the 360° videos among the search results. Even replicating this functionality using available API methods would be a good starting point to my needs. Maybe this could be accomplished by using

youtube.search.list does not return any items after 9 pages

▼魔方 西西 提交于 2019-12-08 04:46:30
问题 I want to get a list of many youtube Channels. After i got around 400 results (8 pages x 50 results/page), i call the 8th oder 9th page via: GET https://www.googleapis.com/youtube/v3/search?part=id&maxResults=50&pageToken=CJADEAE&type=channel&key={YOUR_API_KEY} i get only 16 results and from this point on the next 10 (or something) nextPageTokens return no items at all and after the 19th nextPageToken there is not even a nextPageToken in the response. Nevertheless the query says "totalResults

CMS channel list using Youtube API with onBehalfOfContentOwner

穿精又带淫゛_ 提交于 2019-12-07 22:16:18
问题 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

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

一个人想着一个人 提交于 2019-12-07 19:13:51
问题 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? 回答1: googlePlusUserId is now deprecated from https://developers.google.com/youtube/v3/docs/channels#properties contentDetails.googlePlusUserId no longer exists as part of the