Search code examples
androidyoutube-apigoogle-api-java-clientandroid-youtube-apiyoutube-data-api

Access Not Configured Android Google API Key


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?


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.