Question

I am trying to use Youtube Data API v3 to search on android, though when I try to search using my API key i always get this message:

{
 "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."
 }
}

I have the Youtube Data API set to on in my Console. I have been trying to figure this out for hours. Does anyone know what's wrong?

Was it helpful?

Solution

A bit mind confusing is that for the YouTube Data API you need to use the browser-key, but for the YouTube Player API (for Android) you need the Android-key.

Using the Android key for the YouTube Data API will not work and result in the error you received.

OTHER TIPS

I've finally solved this. I deleted my project and created a new project in the old Cloud Console. I then activated all the APIs I need to use and then went into API Access and there was a key already there. It should say "Key for browser apps (with referers)" and I just used that key, and it works.

It's a very late reply but the issue was very hard to detect. I tried a lot of solutions but nothing was working for me. The only solution works in my case is to generate new API_KEY from google API console.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top