youtube-data-api

Youtube API v3 search for videos, retrieve title and url

徘徊边缘 提交于 2019-11-30 07:41:16
问题 How can you search for youtube-movies and get the id/url and the title from it? It's to add them to a BaseAdapter-class in an Android Application. In the second version of the API, it was possible: https://developers.google.com/youtube/2.0/developers_guide_java#Retrieving_and_searching_for_videos 回答1: You need to do search->list and get ids, then plug in those ids into videos->list to retrieve details. I suggest you to try API explorer to understand those functionalities. They are inline with

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

三世轮回 提交于 2019-11-30 07:04:50
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? 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: https://www.googleapis.com/youtube/v3/search?part=snippet&channelId={YOUR_CHANNEL_ID}&eventType=live&type

Error: restricted_client when authorization Youtube API V3

試著忘記壹切 提交于 2019-11-30 05:22:23
I got this error when I create new client secret in new project. That’s an error. Error: restricted_client Unregistered scope(s) in the request: https://www.googleapis.com/auth/youtube.readonly Request Details access_type=offline response_type=code client_id=487794563386-mujtj6b5iatnmvdailldn468gg028p8g.apps.googleusercontent.com redirect_uri= http://localhost:61515/authorize/ scope= https://www.googleapis.com/auth/youtube.readonly That’s all we know. How could I fix that ? 403 errors are errors with the users access. The user you are currently authenticated with does not have permission to do

YouTube API V3 not returning “statistics” part for /videos endpoint

混江龙づ霸主 提交于 2019-11-30 04:17:48
I stopped getting "statistics" part, from 06-April-2017, It was working perfectly fine and now for several videos I am not getting "statistics" part. when I make this call, https://www.googleapis.com/youtube/v3/videos?part=statistics&key=validKey&id=3cxixDgHUYw FYI, I also tried getting "statistics" part from here, but not receiveing it. https://developers.google.com/youtube/v3/docs/videos/list Same issue as well, someone has opened up an issue at Google's issue tracker here 来源: https://stackoverflow.com/questions/43271758/youtube-api-v3-not-returning-statistics-part-for-videos-endpoint

Sorting Youtube API result from playlist

血红的双手。 提交于 2019-11-30 01:56:00
问题 I have been struggling with Youtube's API v3 now and I can't get it work in the way I want. My goal is to load the latest videos from a selected playlist into my website. The problem is that I only the the oldest videos in my response. To load the playlist I request following API URI: https://www.googleapis.com/youtube/v3/playlistItems Here is an example of a request (just click execute): http://developers.google.com/apis-explorer/#p/youtube/v3/youtube.playlistItems.list?part=id%252Csnippet

Youtube Data API v3: Sort by date not working

倖福魔咒の 提交于 2019-11-30 01:19:22
问题 The sorting is not working as expected since a few hours. https://www.googleapis.com/youtube/v3/search?order=date&part=snippet&channelId=UC_x5XG1OV2P6uZZ5FSM9Ttw&key=YOUR_API_KEY Can be tried in the API explorer (Execute without OAuth) as well. https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.search.list?part=snippet&channelId=UC_x5XG1OV2P6uZZ5FSM9Ttw&order=date date: Resources are sorted in reverse chronological order based on the date they were created. https://developers

How to get chat content of Youtube live event in Java [duplicate]

烈酒焚心 提交于 2019-11-30 00:03:00
问题 This question already has answers here : How to obtain a feed of comments entered through the 'chat' box during a YouTube live broadcast? (3 answers) Closed 3 years ago . How do I get the chat content of a Youtube live event in Java? (not the comment of a normal video) 回答1: The API doesn't have connection to live chat at this moment. We are hoping to get that content incorporated into API soon. 来源: https://stackoverflow.com/questions/26418455/how-to-get-chat-content-of-youtube-live-event-in

YouTube API OnStateChange Listener Stops Working After Switch SRC Attr

萝らか妹 提交于 2019-11-30 00:01:00
问题 I am trying to change the video playing in the YouTube iframe in the cleanest way possible and a few months ago I had this code working, but YouTube changed their API and it stopped working for me. Now the onPlayerStateChange event is not firing after I switch out the video's SRC attribute to switch the video that is playing. I'm an amateur to coding so I may be missing something simple here, but any input would be greatly appreciated. Below is a code that loads a YouTube video and when it

Google API: Not a valid origin for the client: url has not been whitelisted for client ID “ID”

半世苍凉 提交于 2019-11-29 23:29:02
I need help. I don't found an answer to my question. I tried googling and I tried asking on other sides but I never found an answer. I'm working with the google API (Youtube data API) and I use the example code from the google side the code it works I'm pretty sure about that. I got an error when i try to start the Script: details: "Not a valid origin for the client: "MyURL" has not been whitelisted for client ID "MyID". Please go to https://console.developers.google.com/ and whitelist this origin for your project's client ID." error: "idpiframe_initialization_failed" The problem i whitelisted

Unable to post message to http://www.youtube.com. Recipient has origin https://www.youtube.com

梦想的初衷 提交于 2019-11-29 16:49:35
问题 My app at http://beta.billboard.fm is producing errors in my normal browsing session after playing a single song. If i reload the page in incognito, the app works fully. I only recently starting experiencing these issues. I have completed cleared all of the cache and it works again, but only temporarily before throwing the same errors. Additionally I have disable all browser extensions. But, no matter what I do I can't get this error from being thrown by the Youtube API: Unable to post