Accessing Youtube Recommendations - youtube-api

I am trying to access Youtube APIs and get the recommendations for the user. I have tested it here https://developers.google.com/youtube/v3/docs/activities/list . I have also enabled Youtube Analytics API and Youtube Data API v3. I still keep getting this error.
"Access Not Configured. Please use Google Developers Console to activate the API for your project."
What am I doing wrong?
Edit
Some additional logs
http://grab.by/uTk4

I solved this by just creating a new Project. Not sure what went wrong with the old one.

Related

API Service Form is failing

im trying to finish the YouTube API Services compliance review for our iOS app.
We resolved all open requests from YouTube a while ago. Sadly we cant reach our YouTube Service compliance review editor anymore. Applying again fails always with the comment that we submitted an irrelevant form. The Google support sent us here to get help.
Can somebody of the Google YouTube team give us further instruction how to resolve this issue.
Thanks :)
Sven

Issues getting Youtube API WordPress plugin Restricted

I’m still having no luck getting this Youtube API Restricted properly.
Every time I try to give it HTTP referrers Restrictions & add the following Website Restrictions:
https://www.ohiocannabis.com
https://www.ohiocannabis.com/*
I then get the following error in my Youtube video player on my website: http://www.ohiocannabis.com/videos
Sorry, there was a YouTube API error: The referrer https://www.googleapis.com/youtube/v3/playlistItems?part=snippet,status&playlistId=UUkbzQe9G_drgd3QoLmHZNfw&maxResults=15&key=AIzaSyArOPULA9UG52ZQUO7ddZMxrpC6odiFW4I does not match the referrer restrictions configured on your API key. Please use the API Console to update your key restrictions. Please make sure you performed the steps in this video to create and save a proper server API key.
I've also tried using the IP Restriction, the IP for my website is: 107.154.147.253
But when I use that the player gives me the following error:
Sorry, there was a YouTube API error: The calling IP address 50.116.78.101 does not match the IP restrictions configured on the API key. Please use the API Console to update your key restrictions.
So who/what/where is this “Calling IP” coming from that it would have a much different IP than my website domain?
(I unrestricted it so that my videos populate for now, so you may not see that error message on my Videos page)
Any idea on what I’m doing wrong to get this plugin to Restrict & work properly?
Thank you!!
I've tried adding HTTP Restrictions and also IP Restrictions, both with no luck.
I haven't tried any code yet, not sure what to do.
Sorry, there was a YouTube API error: The referrer https://www.googleapis.com/youtube/v3/playlistItems?part=snippet,status&playlistId=UUkbzQe9G_drgd3QoLmHZNfw&maxResults=15&key=AIzaSyArOPULA9UG52ZQUO7ddZMxrpC6odiFW4I does not match the referrer restrictions configured on your API key. Please use the API Console to update your key restrictions. Please make sure you performed the steps in this video to create and save a proper server API key.
Sorry, there was a YouTube API error: The calling IP address 50.116.78.101 does not match the IP restrictions configured on the API key. Please use the API Console to update your key restrictions.
So I think I figured it out, I was adding a double restriction on this API by doing the HTTP and the API Restrictions option at the bottom.
I've removed the HTTP Restriction and just kept the API Restriction enabled to the Youtube Data API v3 and it seems to not be giving me the error any longer and showing all of my videos and google console is showing it is in fact now a Restricted API.
Does this sound like I did it right this time?
Thank you!

Enabling youtube data api

I generated an youtube api key, but when I use it in
https://www.googleapis.com/youtube/v3/videos?part=snippet&id=FH2zbHrRY9A&key={YOUR_API_KEY}
it shows me a warning message like
"Access Not Configured. YouTube Data API has not been used in project 950908475774 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=950908475774 then retry"
I have wrote a simple tutorial for this. See Getting Started
You can follow my tutorial to enable the service.
You need to enable this api service before you use the YouTube DATA API.

Getting api access for a youtube account you are managing

I manage a youtube account but it seem I can not use the youtube analytics api to pull reports. I can go to the youtube analytics sections of the account and pull the reports but I want to do this programmatically using the api. Is there some other step that need to be done to get access to the account I'm managing.
Oharr, I'm facing the same issue and wrote my own question.
There's an alternative automated way to get your reports though. If you use BigQuery, you're able to use the 'Transfers' section. That interface actually creates the Jobs and will give you reports periodically. It also allows you to 'backfill' data from the past up to 180 days.
Please refer to YouTube Channel Transfers.
You can also get reports for Content Owners. But the Content Owner transfers wont' work for me since I get 403 responses. Need to figure that out myself...
Yes in order to pull the data via code you need to get an API key/ service key or Oauth credentials please refer this link for more details.

Youtube API v3 on iOS app. My API key does not work, but somebody else's key does work on same application. Error 403

This might be a direct question for the Youtube team at Google, but I thought of asking here first in case it also helps somebody else in the future.
I am using the simple API key (without OAuth 2.0) on an iOS application. This application is simply returning the list of video ids from a specific playlist id. I am supplying the playlist id as well.
When I use my API key that I received from the youtube/google console, I get an error 403 when making the playlistItems request call.
When using somebody else's key (I actually found it online on an example) the application works.
All I'm really changing is the API key. I am not changing the part or playlist id, and in both cases I am using the same iOS application.
My key has both YouTube Data API v3, and the YouTube Analytics API enabled in the google cloud console, along with other default elements that came enabled with this application in google cloud console.
While this approach works, I don't want to bill somebody else's API key for the requests made from my application, and I would also like to have stats of the API request from my iOS app.
Any suggestions?
Has anyone run into this before?
Thank you.
There is a known problem with bundle ids on console. For now, please don't use bundle id, your app should work fine.
You can track the issue in public issue tracker and put bundleid back, once it's fixed. https://code.google.com/p/gdata-issues/issues/detail?id=5770

Resources