Cant figure out, why i get a 403

喜夏-厌秋 提交于 2019-12-25 01:15:38

问题


i try to setup the youtube api but i get a 403.

I tried to setup several times- without success.

https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails&id=-DIJvggBrg8&key=xyz

Maybe someone is able to help me or even login to the console for a setup?


回答1:


The 403 error by itself is not of immediate use. Its attached error code (as I already pointed out above) sheds light on the things that happened.

The API responds to any query you make with a text (that is structured in JSON format). That response text contains the needed error code.

I suggest you to proceed with the following steps:

  1. delete the old API key (right now it is still accessible!);
  2. create a new API key and
  3. run your API query using the new key and then post here the API response text.

Note that I checked the video -DIJvggBrg8 to which your query refers to with my own API key and got no error but a JSON text describing the video.



来源:https://stackoverflow.com/questions/55725403/cant-figure-out-why-i-get-a-403

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