youtube-data-api

Part of the DOM continuously getting refreshed in Angular 5. While trying to fetch videos from YouTube API

若如初见. 提交于 2019-11-29 16:33:48
Calling Youtube API in ngOnInit(){ var finalURL = "https://www.googleapis.com/youtube/v3/search?key="+this.api+"&channelId="+this.chanId+"&part=snippet,id&order=date&maxResults="+this.result+"" console.log(finalURL); this.obser$ = this.http.get(finalURL).subscribe(response=>{ console.log(response); let ytresults= response.json(); console.log(ytresults); ytresults.items.forEach(obj => { console.log(obj.id.videoId); this.ytvideolist.push(obj.id.videoId); }); console.log(this.ytvideolist); } trying here to make the video url sanitized <li *ngFor= "let id of ytvideolist"> <iframe [src]=

Can't download video captions using youtube API v3 in python

狂风中的少年 提交于 2019-11-29 16:21:59
问题 I am trying to download closed captions for this public youtube video (just for testing) https://www.youtube.com/watch?v=Txvud7wPbv4 I am using the code sample(captions.py) below that i got from this link https://developers.google.com/youtube/v3/docs/captions/download I have already stored the client-secrets.json(oauth2 authentification) and youtube-v3-api-captions.json in the same directory (asked in the sample code) I put this code line in cmd : python captions.py --videoid='Txvud7wPbv4' -

Youtube API v3 shows “Access Not Configured”

半腔热情 提交于 2019-11-29 13:44:21
I created a Google application in the developers console, turned on "YouTube Data API v3", generated the server API key, and authorized my home and work IPs. My website lists all videos from a Youtube channel, using the V3 API. It uses the official PHP library , passing it the server API key. It all worked well yesterday from home, and today morning from work. Then, it suddently stoped working at 11am (GMT+1), with no action from my part, with this error: [Google_Service_Exception] Error calling GET https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername=xxxxxxxxxx&key

Youtube oAuth 2.0 API permanent code to retrieve tokens

為{幸葍}努か 提交于 2019-11-29 12:27:11
Basically my goal is to make a form that allows every visitor of my website to upload a video in the comment section to my OWN channel. Currently I'm using YouTube OAuth version 3 API for it. The problem is every 3600 seconds, the code from YouTube will be expired and we will be redirected to Google OAuth that asks for permission (Example: https://accounts.google.com/o/oauth2/auth?client_id=805j8tubb260venakqj8jq3f6hl9eluu.apps.googleusercontent.com ). And we need to manually click the 'allow' button every time the button expires. So is it possible to allow access once, and then we dont need

YouTube Data API Error calling GET [URL] : (500) Backend Error

会有一股神秘感。 提交于 2019-11-29 11:56:15
I want to grab all Subscribers of a Channel from the API. I do this onBehalfOfContentOwner. And it works. But after 3700 channels i get and 500 Backend Error as response. If i wait 20-30 minutes it works again for another 1000 subscriber and then i get the 500 error again. Error calling GET https://www.googleapis.com/youtube/v3/subscriptions?*****: (500) Backend Error Whats the reason for the 500 Backend Error bug? Too many Request? Bug in the API? My Quota is total fine. Thanks After some emails with a Google Tech Guy, it seems like a bug in the API. If you get a 500 Backend Error wait some

signature issue when I want to get a direct URL from YouTube via PHP

眉间皱痕 提交于 2019-11-29 10:00:48
after research to how i get direct URL from YouTube videos like this one asking : How to get direct URL of video from YouTube URL? [closed] i finally made a simple script to generate a direct URL from YouTube video with php and it works just fine, but not with all videos it doesn't work with "signature" videos, this is my code: if(isset($_GET['url']) && $_GET['url'] != ""){ parse_str( parse_url( $_GET['url'], PHP_URL_QUERY ), $vars ); $id=$vars['v']; $dt=file_get_contents("https://www.youtube.com/get_video_info?video_id=$id&el=embedded&ps=default&eurl=&gl=US&hl=en"); //var_dump(explode("&",$dt

YouTube Data API no longer returns active live streams from search.list

强颜欢笑 提交于 2019-11-29 09:27:36
问题 I wrote an application that uses YouTube Data API V3's search.list, which was able to pull active live streams for a specified channel (working since 2018) using the following: https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=UCSJ4gkVC6NrvII8umztf0Ow&type=video&eventType=live&key={MYAPIKEY} The above no longer returns any results for me as of September 12, 2019. Broadening the search to all videos for a specified channel also no longer shows the active live stream: https:/

Youtube Data API v3 pageToken for arbitrary page

流过昼夜 提交于 2019-11-29 08:44:18
Another question on SO revealed that pageTokens are identical for different searches, provided that the page number and maxResults settings are the same. Version 2 of the API let you go to any arbitrary page by setting a start position, but v3 only provides next and previous tokens. There's no jumping from page 1 to page 5, even if you know there are 5 pages of results. So how do we work around this? thatthatisis A YouTube pageToken is six characters long. Here's what I've been able to determine about the format: char 1: Always 'C' that I've seen. char 2-3: Encoded start position char 4-5:

publishedAfter parameter appears to be broken now

独自空忆成欢 提交于 2019-11-29 07:53:26
I used daily this request to googleapi in my application: GET https://www.googleapis.com/youtube/v3/search?part=snippet&channelId={CHANNEL_ID}&maxResults=25&order=date&publishedAfter=2019-03-15T18%3A01%3A02.000Z&publishedBefore=2019-03-17T09%3A58%3A15.000Z&type=video&key={API_KEY} Timestamps were of course changed each time. This worked fine till yesterday. Today this command did not work properly and returns results from different (much larger) time period. Their timestamps are 25 and appear random: "2018-10-04T10:06:56.000Z" "2015-03-05T16:55:26.000Z" "2018-09-24T08:05:59.000Z" "2019-03

How to get Youtube Live Stream by Channel Id in Youtube API V3 in android?

孤街醉人 提交于 2019-11-29 07:51:55
问题 I am able to get the list of live stream: https://developers.google.com/youtube/v3/live/docs/liveStreams/list#examples But how to get the live stream status and live stream link or id for particular channel using youtube v3 api in android? 回答1: I have faced the same problem and managed to figure out a solution for the same. YouTube actually provides an API for this purpose. You can use the search API to get the currently active Live Video ID, if you have the channel ID. Use the following API: