YouTube 数据 API v3 每天查询配额问题

YouTube Data API v3 Queries Per Day quota issue

多年来,我们一直使用 YouTube 搜索 API 为没有本地 YouTube 应用程序的智能电视提供简单的 YouTube 后备。我们注册的应用程序的每日查询量一直设置为 "unlimited" 低谷 AFAIK,我们只使用 youtube.search-list API。 突然间,三周前,搜索功能无法访问了。原来每日查询的配额设置为空白(没有数字,什么都没有)。当试图改变它时,我们得到 "enter a number in the range 0 to ."

首先,我们将应用程序链接到结算帐户以便能够调整配额。但它仍然没有用。然后我们联系了 YouTube,填了一张大表增加名额。我们收到了 YouTube 的回复,称已批准配额请求。但是我们仍然无法set/change配额。我试过回复配额邮件,但我想邮件没有被监控。

我们看到其他人也有类似的问题,解决方案似乎是联系 YouTube。但是我们没有找到任何方式就 YouTube 数据 API 支持查询联系他们,除了在 Whosebug 上(我们没有付费支持计划)。因此,我们在这里发帖,希望 YouTube 上的任何人都能做出回应 - 或者从遇到同样情况的用户那里获得提示。

更新: 我们现在尝试了两件事: * 在已注册的应用程序中删除并重新添加 YouTube 数据 API v3。没有帮助 * 在我们注册的另一个应用程序上激活 YouTube 数据 API v3 - 这给了我们 10000 的每日配额(但我们绝对不希望必须更改为另一个 API 密钥)

更新 2: 我们遗漏的信息可能是相关的。我们最近经历了一个 Google 填写 "YouTube API Services Form"(google 文档表格)的过程。我们与 google 团队来回交流,更换徽标、添加 ToS 链接、更改 UI 等,直到我们得到: "Thanks for your response to the Audit Form. We will conduct our audit based on the information you provided. We will notify you if additional information is needed or when we completed our review. Thank you for your cooperation." 之后我们就什么都没听到了。

今天我们可以看到配额又回到了 10000...我们确实发送了第二次提高配额的请求,我还向审核表单团队发送了一封邮件。不确定是哪一个成功了 - 没有收到任何回复。这可能是最令人讨厌的事情 - 完全没有反馈。

我之前在我的一个项目中遇到过同样的问题,我可以看出您对 Youtube 数据的访问 api 已被禁用。

TLDR;

我首先注意到这一点是因为调用 Youtube 数据时出现以下错误 API。

{ "error": { "errors": [ { "domain": "usageLimits", "reason": "accessNotConfigured", "message": "Access Not Configured. YouTube Data API has not been used in project <my_project_id> before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=<my_project_id> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.", "extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=<my_project_id>" } ]

所以我去了控制台并检查了 API 是否已启用(确实如此)。然后我检查了配额,我怀疑这是问题所在,因为我每天在查询中得到一个空白值。我仍然可以编辑该值,但这些值没有生效。它最终转换为 0 之后,我无法再编辑它(这是在一些编辑和刷新之后)。

当我查看我的电子邮件时,它显示他们向我发送了一封具有以下主题和内容的电子邮件。

Subject: [FYI] YouTube disabled your inactive project’s access to YouTube Data API Service

Dear YouTube API Developer,

According to our records, your project has been inactive for the past 90 consecutive days. In accordance with the YouTube API Services Developer Policies (link), we disabled your project’s access to and use of the YouTube Data API Service.

This will not affect other Google API Services that you may have enabled on this project.

For reference, your inactive project number is my_project_number

If you desire to access and use YouTube Data API Service, or believe you were disabled in error, you may complete and submit this form to get in touch with us.

Thanks,

YouTube API Services team

该表格已包含在电子邮件中,但由于您还没有收到,因此您需要按照说明进行操作 here

If the API is indeed enabled, then this means that your project’s access to YouTube Data API Service has been disabled.

You should’ve received a notice via email regarding this action, which also contains the steps that need to be taken to regain the project’s access. But just in case you missed it, please fill out and submit the exceptions form below: https://support.google.com/youtube/contact/yt_api_form?hl=en

另一种彻底的解决方案是创建一个新项目,您将在其中获得默认的 10,000 配额。