FAQ Database Discussion Community


Getting all videos of a channel using youtube API

youtube-api
I want to get all videos of a single channel that i have its Id. The problem that I am getting only the channel informations. this is the link that I am using: https://gdata.youtube.com/feeds/api/users/UCdCiB_pNQpR0M_KkDG4Dz5A?v=2&alt=json&q=goal&orderby=published&max-results=10 ...

Migrate from Youtube API v.2 to v.3 - very simple app

php,youtube-api
I used Youtube API v.2 for retrieving the list of my uploads. The list was situated here: https://gdata.youtube.com/feeds/api/users/blablabla/uploads?v=2&max-results=10&alt=json. I checked it every day and automatically posted new videos to my blog. It was so brilliant and so simple that I was going to use it the next hundred years. But...

How to get youtube API 3 response as XML instead of JSON?

youtube,youtube-api
Currently I'm using youtube api v3 to retrive single video information as: https://www.googleapis.com/youtube/v3/videos?id=rQbOoUmhSPo&part=snippet&key=[mykey] Result is JSON. How can I get the result in XML?...

YouTube API v3 not retrieving videos for a channel

php,json,youtube-api,youtube-data-api,youtube-api-v3
Ok, so I've used the following php code to try to get youtube to return a users list of videos, however, their "items" is coming up as empty. $apiKey = "MY-API-KEY"; $channel_name = "UCSzDPMGFGxDgM4YtNM4arTA"; $count = 1; $apiv3 = json_decode(file_get_contents("https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername=".$channel_name."&key=".$apiKey)); foreach($apiv3->items as $item): $uploads = $item->contentDetails->relatedPlaylists->uploads; endforeach; $youtube =...

I want to upload video on youtube using client side login. without open web page permission

c#,.net,google-api,youtube-api,google-api-dotnet-client
When I upload video to YouTube using client side login. The first time redirect to UI for permissions. I want upload without redirect to web page. I need to execute this code on server. Here is my code. private async Task<string> Run(string title, string description, string filepath) { var videoID...

Check users subscriptions?

youtube,youtube-api
Is it possible to check how many subscriptions a channel has made? I have been looking around in Youtubes API without any success. Note: I am not looking for the amount of subscribers but the amount of subscriptions. https://www.googleapis.com/youtube/v3/channels?part=statistics&id=ID&key=KEY The above call returns for example the amount of subscribers which...

Youtube API v3 - get list of all restricted countries

youtube-api,youtube-api-v3
In Youtube API v2 there was the section to describe in which countries video will be blocked: <media:restriction type='country' relationship='deny'> BD BE BF... </media:restriction> How can I get the same information using new Youtube API v3?...

How do I get a list of uploaded videos for a certain channel?

youtube-api,channel,youtube-channels
I am trying to get a list of video ids for all uploaded videos to a channel. my api call is something like https://www.googleapis.com/youtube/v3/search?order=relevance&part=guidespark&q=engage&channelId=UCU_EHiwIzRLm6RbNNzeZijQ&maxResults=25&key={API_KEY} It is showing the error like { "error": { "errors": [ { "domain": "youtube.part", "reason": "unknownPart", "message": "guidespark", "locationType": "parameter", "location": "part" } ], "code": 400,...

Errors in the Youtube API v3 python examples

python,youtube-api,youtube-data-api,youtube-v3-api
Because Youtube Engineers monitor stack overflow with tags related to Youtube API v3 When executing: #!/usr/bin/python from apiclient.discovery import build from apiclient.errors import HttpError from oauth2client.tools import argparser I am receiving the following error: from apiclient.discovery import build ImportError: No module named apiclient.discovery Please Google Engineers correct the samples so...

Youtube API returning Insufficient Permission when requesting comments

php,api,youtube-api,authorization
I'm trying to retrieve comment threads for a users video but I'm getting a 403 Insufficient Permission error. My oAuth client in the developers console has the Youtube Data v3 API enabled and I set the youtube scope when the token is generated. Here is the client I use to...

Given the video ID, how to get it's title using YouTube Data API v.3

javascript,youtube,youtube-api
In my project I generate custom wrappers for youtube video embeds on the client side. I used to get video titles by parsing xml responses from http://gdata.youtube.com/feeds/api/videos/VIDEO_ID. Recently Youtube changed the title field for every video with "https://youtube.com/devicesupport" indicating deprecation of Data API v.2. I went to v.3 documentation and...

Youtube API v3 - How to get the list of videos on iterative manner

youtube-api,youtube-data-api,youtube-api-v3
We are planning to show a list of videos from our youtube channel on the website. I have checked the V3 API and it works fine. I followed the solution specified on this question. The problem is how to browse through the list of videos uploaded over the years. The...

Google Developer API V3 for video upload in YouTube C#.net

c#,youtube,google-api,youtube-api,google-api-dotnet-client
I have been using google's reputed API V2 for uploading the videos on YouTube from my web application as there has been up gradation in API to V3 , I am unable to upload the same through the same code. I have tried with the new application for uploading the...

Pull Youtube account info via access token?

php,oauth-2.0,youtube-api
I am working with OAuth for the first time and playing around with the Youtube one. I got the following code: if(isset($_GET['code'])) { $code = $_GET['code']; $url = 'https://accounts.google.com/o/oauth2/token'; $params = array( "code" => $code, "client_id" => "XXX", "client_secret" => "YYY", "redirect_uri" => "URL", "grant_type" => "authorization_code" ); $curl =...

youtube api v3 authenticate user then get his videos

javascript,php,api,youtube,youtube-api
iam a new in using youtube api , in my website i allow users to upload their videos , i want to add a new feature using youtube api that allow users to upload their videos from their youtube channel . The scenario: 1- the user will login with his...

I am trying to use GoogleAPI YouTube to get details about YouTube Videos

youtube-api,youtube-data-api,google-api-dotnet-client
Using GoogleAPI v3 url using this url: https://www.googleapis.com/youtube/v3/videos?part=snippet&id=D-wxnID2q4A&key={MyKey} I get this json: { "kind": "youtube#videoListResponse", "etag": "\"dhbhlDw5j8dK10GxeV_UG6RSReM/uzqDS1yLcX0DglL60bHeS56kZ7c\"", "pageInfo": { "totalResults": 1, "resultsPerPage": 1 }, "items": [ { "kind": "youtube#video", "etag": "\"dhbhlDw5j8dK10GxeV_UG6RSReM/l7OMkGqgmC10NvbO5PzI_nonZzA\"", "id": "D-wxnID2q4A", "snippet": { "publishedAt": "2014-01-08T05:34:04.000Z", "channelId":...

Youtube subscriber count with Youtube Data Api V3

youtube-api,youtube-data-api-v3
So previously i was getting a youtube channel subcriber count with youtube data api v2. I used the following ( i am using TED channel for demo purposes ) http://gdata.youtube.com/feeds/api/users/TEDtalksDirector?alt=json&callback=jQuery111202977260369807482_1433828589506&jsonp&_=1433828589507 However with the new v3 api, there is not subscriber count in the result....

how to get first video after ending last video youtube api

javascript,jquery,youtube,youtube-api
I am trying to get first video after completing last video i am using youtube i will play video continues but after last video its ending its not getting first video here the code i am working on <div id="player"></div> <script src="http://www.youtube.com/iframe_api"></script> <script> /** * Put your video IDs in...

How can I make an RSS feed from Youtube search using Google App Script?

google-apps-script,rss,youtube-api,youtube-data-api,youtube-v3-api
Since Youtube shut down its RSS feeds for searches with it's newest version of the API, I've been trying to recreate them using Google App Script. Here's what I have so far (based off of this tutorial for converting a twitter widget to RSS): function getSearches(a){ try{ var rss,title,link; title="Youtube...

YouTube API UnicodeEncodeError in Python 3.4

python,youtube-api,youtube-data-api
I was exploring the YouTube Data API and finding that improperly encoded results were holding me back. I got good results until I retrieve a set that includes unmapped characters in the titles. My code is NOW (cleaned up a little for you fine folks): import urllib.request import urllib.parse import...

Zend And YouTube Not Deleting Videos

zend-framework,youtube-api,google-client-login
Until yesterday I could delete YouTube videos using Zend framework. I was using this code: $httpClient = Zend_Gdata_ClientLogin::getHttpClient( $username, $password, 'youtube', null, 'MySite', null, null, 'https://www.google.com/accounts/ClientLogin'); $yt = new Zend_Gdata_YouTube($httpClient, '', '', $myDevKey); $vid = $yt->getVideoEntry($myVidID, null, true); $yt->delete($vid); Now I am getting this error: Expected response code 200, got...

how to get youtuber video information in youtube api v3..?

youtube,youtube-api,youtube-data-api,youtube-api-v3
i am working on a youtube based api website and want to get the complete information of a video. i am doing this as <?php $JSON_Data = json_decode(file_get_contents("https://gdata.youtube.com/feeds/api/videos/9Xhat18gkLw?v=2&alt=json")); ?> and getting data using this method channel is:<?php echo $JSON_Data->entry->author[0]->name->{'$t'}."<br>"; ?>description is:<?php echo $JSON_Data->entry->{'media$description'}->$t."<br>"; ?>published time:<?php echo...

Reload youtubeplayer in activity? [closed]

android,android-listview,youtube-api,player
Please help me, I want when user click item in listview -> Reload activity with video clicked (Like youtube app android) Pleale help me the idea. Thanks You can view here Update my source code: public class YoutubePlayerActivity extends AppCompatActivity implements YouTubePlayer.OnInitializedListener { private static final int RECOVERY_DIALOG_REQUEST = 1;...

Is it possible to allow many users to make live broadcasts using youtube API and a single account?

youtube-api,live-streaming,youtube-livestreaming-api
I want to make a web application and I want to use youtube API to allow my users make live broadcasts. Is it necessary that my users log with their google/youtube accounts to use the live stream or is it possible to make them use this function without bothering them...

YouTube Data API only displaying 5 results at a time?

jquery,html,css,youtube,youtube-api
I'm having this problem with the YouTube Data API where I want the page to return about 35-40+ results on the page. But instead it's only displaying 5 results per search, any help? CodePen: codepen jQuery: var apikey = 'AIzaSyCKMpw2nmPnon_gkh4EIXnbiAmrZNw-v4M'; $(function() { var searchField = $('#query'); $('#search-form').submit(function(e) { e.preventDefault(); });...

Youtube - How to browse all channels in a given category?

youtube,youtube-api,youtube-data-api
For example, there are 884 channels under beauty and fashion, however, Youtube only shows about 50 of them. How do i get the complete list? Either through API or web. https://www.youtube.com/channels/beauty_fashion Thanks,...

Youtube v2 to v3 migration in Android apps

android,youtube,youtube-api,migration
My Android application was using the youtube v2 api to get the list of videos of a public profile like this one: https://www.youtube.com/user/USER_PROFILE_NAME/videos?view=0&flow=list I got the free json response and used it to get the links and video titles. Now api v2 gets deprecated and from what I see there...

How do I know when a YouTube video has paused or finished?

javascript,jquery,events,youtube,youtube-api
I'm pulling videos onto a website via the YouTube Data API and would like to register a callback for when a video has paused or finished. Does an event fire once either of these actions take place? Is there a method that detects whether a video has paused or finished?

PHP - How to change privacy status of a youtube video through Youtube API v3?

php,youtube-api
I need to know how can I change the privacy status of a youtube video. The video have 'unlisted' privacy status and I want to change to 'public'. Here there is an example to add some tags to video but i don't know how to apply the example for update...

Unable to control the display size of a YTPlayerView instance in a storyboard

ios,objective-c,xcode,youtube-api
No matter how I size my YTPlayerView instance in my storyboard the resulting view (when run on the simulator) is always half the height of what I set in the storyboard. Auto Layout and Size Classes are disabled for this view controller. I'm using the latest version of youtube-ios-player-helper from...

YouTube giving me error while using file_get_contents

json,youtube,youtube-api
So I'm trying to update YouTube code from API v2 to v3, but file_get_contents() keep on giving me an error. This is my code: stream_context_set_default(['http' => ['ignore_errors' => true]]); $url = file_get_contents('https://www.googleapis.com/youtube/v3/playlistItems?part=contentDetails&playlistId=PLwC9H0qrxrLyQsNFq37MeivYOMOBxfCdo&key=MY_API_KEY'); echo $url; This is the error message I've been thrown stdClass Object ( [error] => stdClass Object (...

Obtaining video duration

python-3.x,youtube-api
A search is made to obtain videos. How do I obtain the duration of the video? for search_result in search_response.get("items", []): if search_result["id"]["kind"] == "youtube#video": VideoID.append(search_result["id"]["videoId"]) ChannelID.append(search_result["snippet"]["channelId"]) VideoName.append(search_result["snippet"]["title"]) ChannelName.append(search_result["snippet"]["channelTitle"]) videoDuration.append(search_result["contentDetails"]["duration"]) The last line returns a key error. Judging by the API on the website this is how...

PHP: YouTube v3 API… Retrieve last 50 videos from Watch Later list and add them to a playlist

php,youtube-api
<?php require_once 'Google/autoload.php'; require_once 'Google/Client.php'; require_once 'Google/Service/YouTube.php'; $client = new Google_Client(); $client->setDeveloperKey('{YOUR-API-KEY}'); $youtube = new Google_Service_YouTube($client); $nextPageToken = ''; $htmlBody = '<ul>'; do { $playlistItemsResponse = $youtube->playlistItems->listPlaylistItems('snippet', array( 'playlistId' => '{PLAYLIST-ID-HERE}', 'maxResults' => 50, 'pageToken' => $nextPageToken)); foreach ($playlistItemsResponse['items'] as...

Retrieving details from a YouTube video given the URL

java,youtube-api
For example, given the link https://www.youtube.com/watch?v=Hl-zzrqQoSE which is a video about installing the Java JDK. Using Java and the YouTube-API, how can I get information such as length, title, and views? I looked and I found https://developers.google.com/youtube/2.0/developers_guide_protocol_video_entries but it's outdated and I'm not sure exactly how to use it. Forgive...

youtube api in c# code

c#,api,get,youtube-api
using (var client = new HttpClient()) { client.BaseAddress = new Uri("https://www.googleapis.com/youtube/v3/"); client.DefaultRequestHeaders.Accept.Clear(); client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); HttpResponseMessage response = client.GetAsync("search?q=manam&type=video&order=relevance&part=snippet&maxResults=50&key=AIzaSyA4GZFAgfvsAItwFRmnAZvbTHoDeyunf2k").Result; if (response.IsSuccessStatusCode) { dynamic lists = await...

Make YouTube video time change with jQuery UI-Slider

jquery,html,youtube-api
So, I've got the basics... but I'm trying to do the opposite of what my current code is trying to do. At the moment, when you move the YOUTUBE UI SLIDER it'll change the time of the custom UI SLIDER, I'm trying to have it be the other way around...

Youtube API / JS issues with selecting videos to play

javascript,jquery,wordpress,youtube,youtube-api
I have a videos page we created using the youtube API and Javascript in order to play our videos on an embedded player when you click the thumbnails. It works fine here: http://www.securitycameraking.com/videos.php However, On wordpress, I tried to use similar code, but when you click on the thumbs, I'm...

I tried to get the title and description by youtube v2 API, is it deprecated?

youtube-api
I tried to getting the title and description using "gdata.youtube.com/feeds/api/videos/r59xYe3Vyks?alt=json&v=2" I can get only the link in both the title and description Example :"title":{"$t":"https://youtube.com/devicesupport"}, $description":{"$t":"https://youtube.com/devicesupport\nhttp://m.youtube.com","type":"plain"},...

Get youtube trends v3 country wise in Json?

youtube-api,youtube-data-api
How to get youtube trends of most popular or most viewed by country wise in Json. Previously using youtube feeds v2. It seems deprecated, https://gdata.youtube.com/feeds/api/standardfeeds/IN/most_popular?v=2 Can I get youtube api v3 or any other result like the trends dashboard, https://www.youtube.com/trendsdashboard...

Why am I getting 400 bad error if I put 1 into page? and it won't fetch more than 25 results?

ruby-on-rails,ruby-on-rails-3,ruby-on-rails-4,youtube,youtube-api
I'm using the gem called youtube search I coded like this below works fine. But it returns 400 Bad error when I type 1 into page like this <% option = { :per_page => "10", :page => 1, } %> How can I fix this code to display first page...

YouTube IFrame API doesn't always load?

javascript,youtube-api,youtube-javascript-api
I've seen lots of similar questions to this, but I believe this is different. When I try to define onYouTubeIframeAPIReady in the global scope, the function only gets called about half the times I load the page (if I keep refreshing, sometimes I'll see the console message, and sometimes it...

GAE python - client_secrets.json 'File not found' - app.yaml error?

python,json,google-app-engine,youtube-api,app.yaml
I am using GAE (python) to make a web application. I am specifically attempting to get a youtube API to work, but I cannot get the credentials to function properly. If I follow the "Retrieve my Uploads" example here, I keep getting an error when importing the client_secrets.json file: InvalidClientSecretsError('File...

How to get data of a youtube playlist in JSON format using JavaScript API V3

youtube,youtube-api,youtube-javascript-api,youtube-data-api
Youtube stopped support to V2 I'm using till now, can anyone tell me how to get data of a youtube playlist in JSON format using JavaScript API V3 V2 URL I used is as given below http://gdata.youtube.com/feeds/api/playlists/{PLAYLIST_ID}?alt=json-in-script&callback=showMyVideos Resolved v3 URL is https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId={PLAYLIST_ID}&key={KEY}...

Unbranded, advertisement free, video streaming with youtube api

youtube-api,android-youtube-api
Is it possible to use the youtube api to provide video for an app I'm hoping to develop. I want to upload videos from iOS, android and the web. I want to be able to control access to my videos - i.e. they're all private unless my app provides access....

Background youtube player

google-chrome-extension,youtube-api
I am trying to make a Chrome extension such that to play songs from youtube. I have done this but I have a small problem. When I click the extension icon, a popup appears where I can search the song and play it, but when the popup disappears, the music...

How to get public video based on username

youtube-api,youtube-data-api
I am using url http://gdata.youtube.com/feeds/api/users/ford/uploads?alt=json&max-results=50 its giving me the video lists,but today I'm trying to get the list of videos, I received only https://youtube.com/devicesupport. Please suggest,how i get public video feeds based on username from youtube? Sameek...

how to get contentDetails part from youtube video list

youtube,youtube-api,youtube-data-api
i am working on youtube api v3 and want to show each video with duration in list. here is my code but when i run this code it gives me error "Fatal error: Uncaught exception 'Exception' with message 'Error 400 contentDetails : unknownPart' in /home/whatcove/public_html/youtube/youtube_v3/yt/vendor/madcoda/php-youtube-api/lib/Madcoda/Youtube.php:364 Stack trace: #0 /home/whatcove/public_html/youtube/youtube_v3/yt/vendor/madcoda/php-youtube-api/lib/Madcoda/Youtube.php(145): Madcoda\Youtube->decodeList('{\n...

I cant pass clicked value into function

javascript,jquery,youtube-api
DEMO Static Value : Hi, Iam not able to Pass the Clicked Value in to Return Function. function getArtistId() { //return 'l-gQLqv9f4o'; if i uncomment this videos will work like charm, but instead of static i need dynamic onclick of the element getting the value and passing. return 'ytData1'; }...

How to use YouTube Api V3 in iOS?

ios,objective-c,youtube-api
I'm trying to figure out how to use the new YouTube Api (Version 3) in my iOS app but I don't know how to do it. I did many research about it but what I found is all examples and codes for older api so they are not valid. Til...

Retrivie VideoID

android,youtube-api,youtube-data-api
I have two classes (YtAdapter and MainActivity). In YtAdapter I have a method that gets user input (keyword) and search for Youtube videos for that keyword. It is done right and working good. @Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder mHolder; if(convertView != null){ mHolder =...

Youtube JSON video published date displays the date added to playlist

json,youtube,youtube-api
When getting a YouTube playlist, I want to display the published date of each video. Currently from my var pubdate I am getting the date the video was added to the playlist, not its published date. var playListURL = 'http://gdata.youtube.com/feeds/api/playlists/PLAYLISTID?v=2&alt=json&callback=?&max-results=50'; var videoURL= 'http://www.youtube.com/watch?v='; $.getJSON(playListURL, function(data) { var list_data=""; $.each(data.feed.entry, function(i,...

App removed from Google Play because of Youtube API problems

android,youtube,youtube-api,video-streaming,android-youtube-api
I have developed an application for Android that displays video from my channel on YouTube using YouTube API. I show the video directly through YouTubePlayerView class. I don't use authorization of users on YouTube, just show video in player from my channel. I also use video ad in the same...

Dynamic youtube iframe in javascript and jQuery

javascript,jquery,iframe,youtube-api,youtube-api-v3
I'm going crazy, trying to fix this and it wont work the way I want it to work,ahhh I feel like a child :/ var videoID; var tag = document.createElement('script'); tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); videoID = sessionStorage.getItem("key"); var onYouTubeIframeAPIReady = function(){ player = new YT.Player('player',...

How to playback videos with YouTube API v3 in Windows Store apps?

c#,xaml,windows-store-apps,youtube-api,youtube-data-api-v3
I created a Windows Store app with C# and XAML to playback YouTube videos but since YouTube shutdown their Data API v2, my app fails playing videos. What should I do to play videos with Data API v3? I have been using the Microsoft Player Framework with this code: XAML...

youtube api v3 - get videos from a public playlist. with out using api key

jquery,youtube-api,youtube-data-api
Youtube V2 where this code use to list top 50 videos from the play list var ytURL = "http://gdata.youtube.com/feeds/api/playlists/PLgtnUFn0ROBBPO2nC-bduEDDlxikKwZ6R?v=2&alt=json&callback=?&max-results=50"; var thumbBase = "http://img.youtube.com/vi/"; $.getJSON(ytURL, function (data) { $.each(data.feed.entry, function (i, item) { var itemTitle = item.title.$t; // Title of the video var itemdescription = item.media$group.media$description.$t; //Description of the Video itemdescription...

Quota cost of searching for videos and only needing the ID?

youtube-api
What is the quota cost of searching videos and only needing the ID returned? I tried using the quota calculator but it doesn't output anything (and I'm assuming that the cost isn't actually 0 when you only specify "part" to be id only).

Alternative for https://gdata.youtube.com/feeds/api/videos/?v=2

youtube-api,http-status-code-410
These days I noticed that Youtube API which I'm using on my project is no longer available, e.g. https://gdata.youtube.com/feeds/api/videos/dLEk9yiXVQs?v=2 returns HTTP 410 response code which means that requested resource is no longer available and will not be available again. What should I use instead?...

Using YTPlayerView to play embedded youtube video in iOS failed with restriction error

ios,youtube-api
I want play embedded youtube video in iOS app using YTPlayerView provided at https://developers.google.com/youtube/v3/guides/ios_youtube_helper When I tried to play this video with ID = "Ri7-vnrJD3k" (https://www.youtube.com/embed/Ri7-vnrJD3k), I got the error message "This video contains content from VEVO. It is restricted from playback on certain sites. Watch on YouTube". Note that...

YTPlayer will redirect to oauth2 url and shows 'please stand by'

ios,objective-c,youtube-api,youtube-livestreaming-api
I'm trying to use YTPlayer for played live stream in iOS App. I use the simple code and only changed 'videoId' to 'w-T2LJ_qLiw' which is live video at YouTube. But when video loaded, app will open Safari and redirect to url as following : https://accounts.google.com/o/oauth2/postmessageRelay?parent=https%3A%2F%2Fwww.youtube.com#rpctoken=840721360&forcesecure=1 and...

Youtube API error v3 - 'No Filter Selected'

python,youtube-api,youtube-data-api
I'm using the Youtube V3 Api and here's the code snippet to pull the top ten videos from my youtube channel. (This same query works perfectly in the google API explorer @ https://developers.google.com/apis-explorer/) url_start = "https://www.googleapis.com/youtube/v3/videos?" + \ "order=viewCount&part=snippet&forMine=true" + \ "&type=video&maxResults=10&key=MY_API_KEY" data = requests.get(url_start).json() But I get this error:...

Youtube api v3 getVideoData() list functions

javascript,jquery,youtube-api,youtube-api-v3
I used player.getVideoData().title to get the title of the current video, but what to use to get views? please javascript only :)...

YouTubeAPI v3 - “Daily Limit Exceeded” error before my app reaches API quota limit

youtube-api
Daily, between 11:00PM and 2:00AM EDT, my requests to the YouTube v3 API start failing the "dailyLimitExceeded" error, status code 403. The error always stops at 3:00AM EDT. My app hasn't actually yet reached the 50,000,000 units limit. Any idea why this could be happening? { "error": { "errors": [...

YTPlayerView video did Ended iOS

ios,objective-c,youtube-api
I am using YTPlayerView to play a youtube video . And I need to do some actions when the video reached its end and finished playing. Is there any way to catch the event when the video finished.

How can i get list of my youtube videos from youtube?

c#,.net,winforms,youtube,youtube-api
I installed the google api 3 and the OAuth2. And i tried the google develope example: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Google.GData.Client; using Google.GData.Extensions; using Google.GData.YouTube; using Google.GData.Extensions.MediaRss; using Google.YouTube; namespace Youtube_Manager { public partial class...

Youtube: Is there a way I can get the list of videos viewed by the user?

youtube-api
I want to build a video recommender for the user of my android application. I have google OAuth to login in my app. Can I get the data about the videos viewed by the user of my app on youtube ? Thanks...

Embedding YouTube playlist with JSON - stopped working

json,youtube,youtube-api,youtube-javascript-api
I had the following code that I believe uses the deprecated YouTube API v2, in order to retrieve and display a playlist. It was working for several weeks and now has stopped - is there a API v3 way to do this if that's the issue? <script type="text/javascript"> var playListURL...

Youtube v3 API video language

youtube,youtube-api,youtube-data-api
When uploading videos on youtube, there is a Video language field that can be set. Is there a way to use the v3 api to query this field for a specific video?

Is there any limit to the number of rows returned by API?

youtube,youtube-api,youtube-analytics,youtube-analytics-api
I am making a bulk call with 30 posts and daily data of all. Is there any limits to the number of rows that will be returned by the API? I am having problem getting the results. Can anyone please help....

How to use YouTube API for an iOS app?

ios,objective-c,google-api,youtube-api,integration
I have searched the web for tutorials and instructions but could not find any on this... So I was hoping maybe someone here can point me in the right direction or just link some good tutorials. (By the way I am willing to make a basic YouTube client app which...

How to get number of video views with YouTube API V3?

php,json,youtube-api
i use this code to achieve this but this don't work : <?php $JSON = file_get_contents("https://www.googleapis.com/youtube/v3/videos?part=statistics&id=hqepb5hzuB0&key={YOUR-API-KEY}"); $JSON_Data = json_decode($JSON); $views = $json_data->{'entry'}->{'yt$statistics'}->{'viewCount'}; echo $views; ?> Thanks...

YouTube html5player won't play on iPad safari; protocol and port exception

ipad,iframe,youtube,youtube-api
I have a strange error occurring only on safari for iPads. I've added a youtube iframe element to the page that looks like this. <iframe width="560" height="315" src="http://www.youtube.com/embed/dDAB35SYIr0?rel=0" frameborder="0" allowfullscreen></iframe> As you can see I say the source is http and my site is http as well. Now on iPad...

Why when trying to upload a video file to youtube i'm getting InvalidCredentialsException?

c#,.net,youtube,youtube-api,google-client-login
This is my code in form1: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using Google.GData.Client; using Google.GData.Extensions; using Google.GData.YouTube; using Google.GData.Extensions.MediaRss; using Google.YouTube; namespace YouTube_Manager { public partial class Form1 : Form { YouTubeRequestSettings settings; YouTubeRequest request; string username...

Using Youtube's Data API

google-chrome-extension,youtube-api,youtube-data-api
I cannot figure out how to use Youtube's API V3, with Chrome's identity extension API. Is there a tutorial somewhere? I would like to start by rating a video.

how to get fullscreen for youtube api

javascript,jquery,youtube,youtube-api
I just trying to set default allow fullscreen for youtube api but i can't find that and i am new to javascript i tried so any many code but i didn't got.Actually i want to allow multiple youtube video with full screen. here's the code i am working <div id="player"></div>...

Get youtube title from videoid in PHP using API v3

php,parsing,youtube,youtube-api,youtube-data-api
Here is the url to to get the video info where you have to put VIDEO-ID and API-KEY: https://www.googleapis.com/youtube/v3/videos?part=snippet&id=VIDEO-ID-HERE&key=YOUR-API-KEY-HERE How to get the title from it and save it as a variable in PHP?...

Unable to download closed captions in Youtube API v3

php,youtube-api,google-api-php-client,closed-captions,youtube-api-v3
Im using the PHP example code given in Youtube API v3 : https://developers.google.com/youtube/v3/docs/captions/download , to download captions from 3rd party, publicly available YouTube videos in my webapp i.e. I have NOT uploaded the content on Youtube. I have hosted the example in above link here with my authorization credentials inserted...

How do I check if a youtube video is blocked/restricted/deleted

video,web-applications,youtube,youtube-api
I have a website that stores users playlists, but sometimes the videos that were once usable get removed due to copyright violations, or get deleted. I would like my website to automatically detect when this happens, so it can delete the video, or replace it. I'v done a lot of...

Thumbnail height & width not being returned

youtube-api,youtube-data-api,youtube-v3-api
When performing a search request to the API, the height & width fields of the thumbnails are not included in the response, even when specified in the fields parameter. Here's an example for a JS object that provides the API parameters: { part: 'snippet', type: 'video', order: 'relevance', q: 'test',...

Youtube Video feeds link not working

iphone,rss,youtube-api
I am using following link to get list of youtube video for given string in my iOS app. http://gdata.youtube.com/feeds/api/videos?max-results=10&alt=rss&q=Hello Previously it was working fine, but now its not giving me any response at all. Anyone please suggest me on this....

Can I get page token from youtube api using xml?

youtube,youtube-api,youtube-data-api
I am working on youtube api and developing a youtube api website and I want to get next page token for videos list, but I am getting data from xml feed. How can I get next page token from xml feed? Here is my code: <?php // set feed URL...

Can anyone help me make the search bar work as I now have the JS prompt? [on hold]

javascript,html5,search,youtube-api,search-engine
I have created a small program that pulls from the YouTube API which allows you to search for a random video for whatever title you enter when prompted. My goal is to have this work like a search engine. I would like to make my search bar the input instead...

YouTube JS API: play by random time point on button click

javascript,jquery,youtube-api
I am trying to achieve playing a movie with YouTube JS API. There should be multiple time point in a single movie, so clicking on a button it would randomly pick any timepoint from the movie and start playing from there. Here is my POC <iframe id="ytplayer" type="text/html" width="720" height="405"...

Are there still any remains of Flash on Youtube for Chrome?

youtube,youtube-api,youtube-iframe-api
working on a Chrome extension and would like to know if there are still any remains of Flash use in videos on Youtube please? When I checked two weeks ago Flash was still in use for live stream, but when I checked today I was happy to see that the...

Handle key events when using Youtube iframe API

javascript,youtube-api,youtube-iframe-api
I was looking for a solution on how to handle key events when running Youtube videos on my application using Youtube iframe API. unfortunately couldn't find any. Did went through this documentation https://developers.google.com/youtube/iframe_api_reference#Events but it seems player doesn't fire any event related to key ( ex: onkeydown, keypress, keyup )....

Is it possible (and how) to get comments left on youtube on any account/channel?

youtube-api
I'm trying to use this code https://www.googleapis.com/youtube/v3/comments?part=snippet&id=zwGBTcIHN0U&key={YOUR_API_KEY} (clearly with a proper key) to get comments left on a random channel, random video but I get an empty list as result: { "kind": "youtube#commentListResponse", "etag": "\"tbWC5XrSXxe1WOAx6MK9z4hHSU8/pGLBhpjR05yQoJV31WoAx2PEFVw\"", "items": [] } I can't find proper documentation beside the official one: https://developers.google.com/youtube/v3/docs/comments/list#try-it Any help?...

Rails: Model method doesn't execute as a cron task in development

ruby-on-rails,ruby,cron,youtube-api,whenever
I am currently writing an application in Ruby on Rails that fetches data (videoId as a string, title as a string, thumbnail url as a string, and date of when video was created as a datetime type) from YouTube and saves it to the database. I have tested YouTube API...

Google Youtube API Search doesn't retrieve all videos in the channel

youtube-api
I have to retrieve all video of my channel with Youtube API. All videos are published on Youtube and I can see them correctly. I tried to make the request directly from this page: https://developers.google.com/youtube/v3/docs/search/list and this is the example request: GET http s://www.googleapis.com/youtube/v3/search?part=snippet&channelId=myChannelID&maxResults=50&key={YOUR_API_KEY} Request doesn't retrieve all videos, it...

Get comments thread for a YouTube video using api v3.0

c#,youtube,youtube-api,youtube-data-api,youtube-v3-api
I'm trying to use the .net YouTube API v.3.0 to retrieve the comments thread. I'm basically trying to reuse the sample for Java, but when I try to authorize with my client secrets I do not get any scope with my token (it is set to null when I inspect...

Listing large amount of subscriptions of a youtube channel

youtube,youtube-api,youtube-data-api,youtube-v3-api
I am trying to fetch all the subscriptions ids of a youtube channel that has 100k+ subscribers. When fetching the first page of results, youtube returns properly the total amount of subscriptions and the next page token. After a few hundred calls (because you can only fetch 50 results per...

Youtube Api As3 getCurrentTime

actionscript-3,flash,youtube-api
I am using the Youtube Api for AS3 and i used the function player.getCurrentTime so that I can get the current time of the video. I have been running into this error https://code.google.com/p/gdata-issues/issues/detail?id=6215 and I really need to get this fixed is there any solutions to this problem or a...

get youtube video duration in specific format

php,time,youtube-api
I'm using youtube version 3 api to get video data, I got the duration of video in ISO 8601 format, I tried to convert it to HH:MM:II using the following code <?php $duration = 'PT3M42S'; $time = strtotime($duration); $durationConverted = time('HH : MM : II', $duration); echo $durationConverted; ?> but...

Youtube video list without account (with the new API v3)

youtube-api,youtube-data-api
I saw the change of youtube api from v2 to v3 and my app broke. I only need to get the last video from a channel and before, with the v2 it was easy and straight forward, you did not need any account login, but now things changed. My old...

How to query / retrieve keywords using YouTube Data API (v3)

java,youtube-api,youtube-v3-api,youtube-data-api-v3
I'm currently in the process of migrating from an obsolete youtube gdata API to V3. One of the things I'm looking for is : Search videos using a filter I used to run something like this https://gdata.youtube.com/feeds/api/users/lyndapodcast/uploads?v=2&max-results=50&start-index=1&query=sample_keyword Will this V3 request will be equivalent using "q" parameter ? https://www.googleapis.com/youtube/v3/search?part=snippet&q=sample_keyword&channelId=UCUtTNe0bVxvk8exLBKkvCNg&maxResults=50&key={my_key}&maxResults=2 Is...

No fullscreen button on YTPlayer toolbar iOS

javascript,html,ios,youtube-api,youtube-iframe-api
I'm using YTPlayer in my iOS app. Everything's fine until the fullscreen button on the toolbar of the YTPlayer got disappeared, now I don't see the fullscreen button, instead I have a video quality button, playlist button and play on youtube button which are not much useful for me, also...

YouTube v.3: Getting uploads playlist ID for user without human-friendly username

youtube,youtube-api
OK so no programming as such, but this is driving me mad, so I'm putting my faith in SO. Using YouTube API v.3, I can easily get the ID of the uploads playlist associated with a particular user, like this: {BASE_URL}/channels?part=contentDetails&forUsername=some_user&key=my_key However, for all that I read and try, I...

Outputting YouTube API data in AngularJS

javascript,angularjs,youtube-api
I'm trying to retrieve all the playlists from a certain channel, and printing out the name of each playlist in my AngularJS app. var myApp = angular.module('app', ['ngResource']); myApp.factory('videoApi', function ($resource) { return $resource( 'https://www.googleapis.com/youtube/v3/playlists', {callback: 'JSON_CALLBACK'}, { get: { method: 'JSONP', params: { part: 'snippet', channelId: '**removed**', maxResults: 50,...

Grabbing color palette from YouTube thumbnail

javascript,node.js,youtube,youtube-api,color-palette
I'm trying to grab the color palette from YouTube thumbnails, to better blend the YouTube video with a whole website design, and I'm wondering if there is any way of doing this? I've tried using color-thief (https://github.com/lokesh/color-thief) and this code (with no luck): var img = new Image(); img.onload =...

Get access token for more than one scope from GoogleAPI's in Android

android,oauth-2.0,google-api,youtube-api,android-youtube-api
I have an application which requests youtube data api's. I need to have access token for some request like to get video's, playlist etc. For this I can simply use GoogleAuthUtil class to get Token by calling: String access_token = GoogleAuthUtil.getToken(Context, userEmail, "oauth2:https://www.googleapis.com/auth/youtube"); Where third parameter is a Scope to...

how to get subscriber count and videos count for a given youtube channel?

youtube,youtube-api
Until now I've been using this URL to retrieve subscriber count for a channel: http://gdata.youtube.com/feeds/api/users/<channel_id>?v=2&alt=json And this URL to get channel videos count: https://gdata.youtube.com/feeds/api/users/<channel_id>/uploads?v=2&alt=jsonc&max-results=0 But from this day Google discontinued using it's v2 api and I can't find replacement options for this data....

Obtaining youtube user profile using WebService::GData::YouTube fails

perl,youtube-api
I am trying to learn how to use WebService::GData::YouTube by following the tutorial at http://perlmaven.com/fetching-data-from-youtube-using-perl : use strict; use warnings; use WebService::GData::YouTube; my $yt = WebService::GData::YouTube->new(); my $p = $yt->get_user_profile('Gabor Szabo'); print "ok\n"; But this fails with output: WebService::GData::Error=HASH(0x1c45dc8) The exception occurs in $yt->get_user_profile().....