gpt4 book ai didi

android - youtube api 上的 "403 - usageLimits"

转载 作者:太空宇宙 更新时间:2023-11-03 10:18:38 26 4
gpt4 key购买 nike

我从我的 Android 应用程序到 YouTube API 的调用得到了这个 JSON 响应:

"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."
}

我的 url是正确的(根据 youTube search list )

我在某处读到我应该发送浏览器 key 而不是 android key ,但它不起作用。

最佳答案

错误对我来说似乎很清楚:

您的 URL 很好,但您刚刚超出了 Youtube API 的配额。

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

我相信这仍然是正确的:

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.

关于android - youtube api 上的 "403 - usageLimits",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30081163/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com