Search code examples
androidapiyoutube-data-apiandroid-youtube-api

Youtube api v3 shows "Access Not Configured" code:403


I created a Google application in the developers console, turned on "YouTube Data API v3", generated the server API key.But When I am passing api key In API(Webservice) It shows Error Like this:

{
    "error": {
        "errors": [{
            "domain": "usageLimits",
            "reason": "accessNotConfigured",
            "message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.",
            "extendedHelp": "https://console.developers.google.com"
        }],
        "code": 403,
        "message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your   API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration."
    }
}

How can I solve my this problem?


Solution

  • I had similar problem, It was solved by using browser key that allows all referers..