Youtube API v3 shows “Access Not Configured”

半腔热情 提交于 2019-11-29 13:44:21

Oooook...

Do all you have to with the API activations before you generate any keys!

Unactivating or reactivating API (like "Youtube Data") silently destroys your key validity. At least for the server one.

So the solution is, when you get the same error as me:

  • destroy your server key (delete it completely, do not only regenerate)
  • deactivate then reactivate all APIs you need
  • create a new server key
  • thank Google for the so clear error messages (optional)

This solved for me.... i first followed @Ninj answer...still no change. Then, After adding my domain urls to 'allowed referers' list, i regenerated the key alone it then worked like a charm !

i guess google parses allowed urls from the key string itself, not from updated settings

Additionnaly when I opened the requested URL in browser I found that the API call returned

{"domain": "usageLimits"}

I tried the above solutions without success.

Creating a new project from scratch solved the issue

Thanks @Danra, you helped, but I add this answer because your comment is default hidden.

I got frustrated and created a new project with a new key and it worked like a charm.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!