Access Not Configured Android Google API Key

后端 未结 3 1420
广开言路
广开言路 2021-02-14 03:35

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\"         


        
相关标签:
3条回答
  • 2021-02-14 03:47

    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.

    0 讨论(0)
  • 2021-02-14 03:57

    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.

    0 讨论(0)
  • 2021-02-14 04:02

    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.

    0 讨论(0)
提交回复
热议问题