Youtube API 配额限制超速过快 (100x)

Youtube API Quota Limit Exceeding Too Fast (100x)

我目前正在使用以下 link 中的 "Search by Keyword" 样本。我正在 NET Core (c#) 中实现这个解决方案,利用 Youtube API。

我遇到的问题是每次执行此代码时我使用的配额限额(每天 10,000 次查询)增加 100 倍。

我尝试使用以下代码将我的搜索限制为仅视频而不是 Playlist/Channels:

searchListRequest.Type = "video";

我正在使用 API 身份验证,而不是 OAuth。我也在开发者控制台上限制了 API 键的使用。

我已确保以下行仅被调用一次,而不是在循环内等:

// Call the search.list method to retrieve results matching the specified query term.
var searchListResponse = await searchListRequest.ExecuteAsync();

示例在以下位置提供 link:

https://developers.google.com/youtube/v3/code_samples/dotnet

如有任何帮助或建议,我们将不胜感激。

谢谢

事实证明,每个调用都有一个 "Quota Cost"。因此,一次调用不一定等于您的配额量之一。

下面link有计算器:

https://developers.google.com/youtube/v3/determine_quota_cost

希望这对某人有所帮助。