"403-usageLimits";在youtube api上 [英] "403 - usageLimits" on youtube api

查看:92
本文介绍了"403-usageLimits";在youtube api上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从我的android应用到YouTube API的调用中,我收到了以下JSON响应:

I have this JSON response from my call from my android App to YouTube API:

"error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "ipRefererBlocked",
    "message": "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 API key configuration if request from this IP or referer should be allowed.",
    "extendedHelp": "https://console.developers.google.com"
   }
  ],
  "code": 403,
  "message": "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 API key configuration if request from this IP or referer should be allowed."
}

我的我在某处读到我应该发送浏览器键,而不要发送android键,但这是行不通的.

I read somewhere that I should send a browser-key and NO an android-key, but it doesn't work.

推荐答案

该错误在我看来似乎很清楚:

The error seems clear to me:

您的网址不错,但是您刚刚超出了YouTube API的配额.

您的API密钥上配置了按IP或按引荐来源的限制,并且请求与这些限制不匹配.

There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions.

我相信这仍然是真的:

YouTube数据API的版本3具有在Google API控制台中列出的具体配额编号,您可以在其中注册API密钥.您可以使用30,000个单位/秒/用户和每天50,000,000个单位.

Version 3 of the YouTube Data API has concrete quota numbers listed in the Google API Console where you register for your API Key. You can use 30,000 units/second/user and 50,000,000 per day.

这篇关于"403-usageLimits";在youtube api上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆