youtube-data-api

Embedding Multiple YouTube Playlist Feeds on a Single Page? JQuery/YouTube API v3

南笙酒味 提交于 2019-12-11 07:36:25
问题 How can multiple YouTube video playlist feeds be implemented on a single page? So far I have developed a function to deliver recent uploads from a single playlist, but I am not sure how to apply this to multiple playlists. In the snippet provided, I only have a single playlist returning video list data. The HTML string for embedding the playlist is #youtube-playlist-feed_1 , but ideally I would like the capability to implement more than one feed, for example: #youtube-playlist-feed_2 ,

Invalid combination of search filters and/or restrictions for Youtube data api v3 search

旧时模样 提交于 2019-12-11 07:27:35
问题 Getting 400 error while exploring YoutubeData API V3 for search. It accepts parameters like: part = snippet location = 12.9667,77.5667 locationRadius = 50km But it gives me the response below : 400 Bad Request { "error": { "errors": [ { "domain": "youtube.search", "reason": "invalidSearchFilter", "message": "Invalid combination of search filters and/or restrictions.", "locationType": "parameter", "location": "" } ], "code": 400, "message": "Invalid combination of search filters and/or

Youtube API v3 Get Video using PlaylistItems.list

时光毁灭记忆、已成空白 提交于 2019-12-11 06:37:11
问题 I developed an integration with Youtube two years ago to retrieve video url's. But last month it started to fail. My process is: Using Channels.list and passing UserId we obtain a list of Uploads from: channel.ContentDetails.RelatedPlaylists.Uploads With this id we use the method: PlayListItems.List passing uploads id in playlistRequest.PlaylistId. We receive a list of playlistItems. This two calls are working fine. We are obtaining a list of videos. But when we try to retrieve a video to get

YouTube.search (API) returns empty array

非 Y 不嫁゛ 提交于 2019-12-11 06:35:35
问题 In my code I use promises to control the asynchrony, in the next request I send the nextPageToken, but then send the request with empty videos --- CODE - search_this_q="cats"; function load(){ search(search_this_q) .then(function(data){ console.log(data) return next_Page_Search(data.nextPageToken,search_this_q); }) .then(function(data){ console.log(data) return next_Page_Search(data.nextPageToken,search_this_q); }) .then(function(data){ console.log(data) return next_Page_Search(data

Using Youtube Data API to Edit with Brand Account Playlist

ⅰ亾dé卋堺 提交于 2019-12-11 06:31:26
问题 I have a gmail account ( sans google plus ) that has a number of brand accounts. Each brand account has it's own youtube channel that gets different video content published. I've written a simple Google Apps Script to insert a video into one of the brand accounts playlists but this does not work. The script itself should work fine but the issue is with permissions. When running the script, your prompted to give it permission. I've tried running it as the account owner that owns the brand

Missing “statistics” from video list response

我的未来我决定 提交于 2019-12-11 05:46:51
问题 I am calling youtube api for videos.list(https://developers.google.com/youtube/v3/docs/videos/list) with part="snippet,contentDetails,status,statistics,topicDetails". On Apr 6 or 7 2017 something changed and for many videos I don't get field "statistics". I'm wondering, why this happens and how I can get publicly available counts, like viewCount, for them? Here are a couple of example videos: PiZEMoZ535I,vHw_drm5cRk 回答1: This is likely a bug, it was working fine until April 7th. There's an

How to relate a Youtube Channel and its Google account after deprecation of “googlePlusUserId”?

醉酒当歌 提交于 2019-12-11 04:44:51
问题 The "googlePlusUserId" of the YouTube channel object has been deprecated in the last review of the Youtube Data API (June 13, 2016). From the YouTube Data API revision history: The channel resource's contentDetails.googlePlusUserId property has been deprecated. Previously, the property was only present if the channel was associated with a Google+ profile. Following the deprecation, the property will no longer be included in any channel resources. I was using this property to relate a YouTube

Access Youtube Channel ID once signed in though Firebase GoogleAuthProvider

浪子不回头ぞ 提交于 2019-12-11 04:24:56
问题 I've setup a basic Firebase authentication app which uses Google. I've passed the following scopes: https://www.googleapis.com/auth/youtube.force-ssl When logging in, it states that it is gaining permission to manage my Youtube Account, but the response I get back has nothing relevant to Youtube in it, such as a channelId. Even when doing a simple $http.get request against the logged in accounts Youtube subscriptions I get the following response: The request uses the <code>mine</code>

How can I get a Youtube video ID from the Youtube API given the video url?

一个人想着一个人 提交于 2019-12-11 04:23:08
问题 I have a page where users can paste a Youtube video url and then I need to extract the video's ID in order to get the video's thumbnail image. The hard part is to get a reliable way of extracting the video ID from the video url. There are a number of regex solutions here but for me none of these are 100% reliable. Here's a few: JavaScript REGEX: How do I get the YouTube video id from a URL? Youtube API - Extract video ID It's like a contest of who has a longer regex. I feel like the right way

Is there a way to get historical youtube subscriber information?

耗尽温柔 提交于 2019-12-11 03:45:24
问题 Currently I am retrieving daily subscriber information with the following request: var videoOptions = { 'part': 'snippet,contentDetails,statistics', 'id': videoIds }; // Send request youtube.videos.list(videoOptions, (err, videoDetails) => {}); My question is there a way to get historical subscriber information either through the Data API or Analytics API? I see there is a way to see subs gained or lost over a period of time but I don't know what the base is to compare against: https://www