Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Error 403: Access Not Configured. Please use Google Developers Console to activate the API for your project

I am trying to use the Youtube API to pull in all the videos from a particular channel. I set up the project in Google Developers Console and got an API browser key. I enabled YouTube Data API v3 and for safe measure, I enabled YouTube Analytics API.

I do not know what I am getting this error. Can anyone help me.

{  "error": {   "errors": [    {     "domain": "usageLimits",     "reason": "accessNotConfigured",     "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."    }   ],   "code": 403,   "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."  } } 

Code i'm using. It doesn't do anything yet, just try to fetch the data.

jQuery.getJSON('https://www.googleapis.com/youtube/v3/channels?part=UncleBens&id=UncleBens&key=AIzaSyDXD80S1mFHH2HSZFxLemkae-_Cl_nY5Xk', function(data){     console.log(data);     for(var i=0; i<data.data.items.length; i++) {        console.log(data.data.items[i].title); // title        console.log(data.data.items[i].description); // description     } }); 
like image 315
DFord Avatar asked Apr 04 '14 18:04

DFord


People also ask

How do I fix Google authorization error 403?

"code": 403, "message": "The user does not have sufficient permissions for file {fileId}." To fix this error, instruct the user to contact the file's owner and request edit access. You can also check user access levels in the metadata retrieved by files.


2 Answers

You must enable a couple of API (in new google console) for things to work as expected.

Go to https://console.developers.google.com and make sure under "APIs" that you have following APIs enabled:

  1. "Contacts API"
  2. "Google+ API"
like image 74
Omer Aslam Avatar answered Oct 14 '22 01:10

Omer Aslam


Try setting the "Referers" to "Any referer allowed" for your project (just leave the field empty) in the Google Developers Console if it is not already like that.

To do this, go to your Google Developers Console and open API & Auth / Credentials and click "Edit allowed referers" empty the input field.

like image 26
Gsx Avatar answered Oct 14 '22 01:10

Gsx