youtube-data-api

How to get user links through YouTube API?

让人想犯罪 __ 提交于 2019-12-10 18:23:01
问题 There is a section of external links at the 'About' tab of YouTube user. How to get the links through YouTube API? For example, there are twitter, Facebook, Google+, etc. links at https://www.youtube.com/user/google/about I couldn't find anywhere in the documentation. Because the documentation and structure is kinda difficult to follow, I might miss the relevant parts of it. 回答1: Ferhad, I have spent some time researching this problem and as far as I can ascertain, the links are not available

Youtube API Dynamic iFrame

北城以北 提交于 2019-12-10 17:44:16
问题 I'm trying to load a youtube video dynamically (iframe is generated on click after the page has loaded) with the ability to control the playback using the Youtube API. What I have found is that if the iFrame is not present on the page when the API is loaded I can't seem to get the controls to work. What am I doing wrong? (I would like to avoid a solution that includes having the iframe present on the page when it is loaded) Here's some example code: https://jsfiddle.net/nu1y9oe8/5/ (Click on

YouTube Data API v3 - Comment threads request doesn't return count of total results

社会主义新天地 提交于 2019-12-10 17:43:54
问题 When I perform the following YouTube Data API request to list commentThreads, pageInfo/totalResults isn't returned in the response. I expect pageInfo/totalResults to be returned per the documentation. GET https://www.googleapis.com/youtube/v3/commentThreads?part=snippet%2Creplies&videoId=dGidYBqBHVw&key={YOUR_API_KEY} For example, if you use the API Explorer, and enter: part : snippet,replies videoId : dGidYBqBHVw The response returns 200 OK with the rest of the data, but omits the pageInfo

youtube v3 api error when searching with forMine set to false

≯℡__Kan透↙ 提交于 2019-12-10 17:15:08
问题 I am writing some functions with the Youtube API version 3 . I am using python but confirmed my error in the google provided test console. (I am making all authorized requests, just didn't paste my key below) The Python client library automatically adds the forMine parameter to my Search().list() request, though I can set it to false. I am unable to remove the parameter from my request, if I omit the argument, it defaults to true. If I set it to false, I get this error: googleapiclient.errors

Retrieve Video IDs contained in a Playlist - YouTube API v3

戏子无情 提交于 2019-12-10 15:59:56
问题 I've been using the following method to retrieve all video IDs, titles, and default thumbnail images contained within a specific YouTube playlist for use in a dynamic playlist carousel (The IDs are then passed to an array which is used to dynamically create a thumbnail carousel. Note the 'playlist' variable is defined via an externalized XML value): // Get YouTube Playlist values var playListURL = 'http://gdata.youtube.com/feeds/api/playlists/' + playlist + '?v=2&alt=json&callback=?'; var

YouTube Upload Error - Upload failed: Can't process file

梦想与她 提交于 2019-12-10 14:47:47
问题 I am using this sample application for uploading a video on to YouTube. Initially I can able to upload the videos successfully without any issue, but after few days suddenly I have been facing the below error. https://github.com/youtube/api-samples/tree/master/java After completing upload, when I check the video in the Videos list of my channel, there it is showing an error(Upload failed: Can't process file) like below The class I am using is https://github.com/youtube/api-samples/blob/master

Is possible to add annotations or a 'end screen' to a video when i'm uploading it using Java youtube api?

守給你的承諾、 提交于 2019-12-10 13:37:35
问题 For generate my code I modified the samples putted from google on gitHub. All Goes ok and the video upload has no problem but now I need to put some annotations or a 'end screen' to my videos because I need to redirect users to my site after they have seen my 'video preview'. So, the workflow is something like this: 1) The user inserts title and description from a jsp page. 2) When he clicks on the button the software take the credentials of the user stored in my db and then pass all the

YouTube API v3 and php returns “The request did not specify any referer”

谁说胖子不能爱 提交于 2019-12-10 13:33:17
问题 I have this PHP code. <?php require 'vendor/autoload.php'; $youtube_api_key = 'MY_KEY'; $playlist_id = 'PL3BE743993147F061'; $client = new \Google_Client(); $client->setDeveloperKey($youtube_api_key); $youtube = new \Google_Service_YouTube($client); try { $playlistResponse = $youtube->playlists->listPlaylists('snippet', array( 'id' => $playlist_id )); echo '<pre>'.print_r($playlistResponse, true).'</pre>'; } catch (\Google_Service_Exception $e) { $gse_errors = $e->getErrors(); echo '<h1>error

How can I get top artist youtube data API v3

孤者浪人 提交于 2019-12-10 12:23:25
问题 I am using Youtube API V3 to fetch top artist from youtube API for my Android app. I want to show Top Artists for each country. Any idea how can I retrieve the list of top Artists from Youtube API. located hear https://www.youtube.com/yt/artists/charts.html 回答1: No, it's not possible to get the artist list via youtube data api. Because the acceptable "type" values for search.list() does not have artist resource: Doc say: Acceptable values are: channel, playlist, video The only way I can think

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

天大地大妈咪最大 提交于 2019-12-10 11:12:36
问题 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)? 回答1: