Search code examples
androidyoutubeyoutube-apiandroid-youtube-api

Youtube API v3 always return error 403 (accessNotConfigured)


I have read a lot of answers to fix this error, like using browser key instead of android key but none of them work.

I have turned on YouTube Data API v3 on my developer console and i already generated an API Key for android.

This is the example URL :

https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=PLAYLISTID&fields=items&key=ANDROID_API_KEY

It returns this error :

{
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 activated the API, but it keeps telling me to activate it. What should i do?

And in the projects list view on my developer console, this project already has 10 request and 10 errors.

The error said "Please use Google Developers Console to activate the API for your project.", does that mean i need to publish/do some settings one the developer console after i turned on the API in the Google API Console?

Thanks for your help.


Solution

  • I believe there is a bug in Google's system.

    I need to use the browser apps key instead of android key.

    And that is not enough, i need to open the old console, yes JUST OPEN :

    https://code.google.com/apis/console/b/0/?noredirect

    The funny part is, i dont have to do anything, just open that old console...even the generated key is the same, so basically there should be not problem. So funny for wasting my time, Hope this help you.