需要说明如何应用 Google Sheets API 限制

Need clarification on how the Google Sheets API limits are applied

来自 Usage Limits help page:

This version of the Google Sheets API has a limit of 500 requests per 100 seconds per project, and 100 requests per 100 seconds per user.

我们拆开来看:

  1. 500 requests per 100 seconds per project - 这适用于我的项目。我使用我的项目凭证来发出每个请求。

  2. 100 requests per 100 seconds per user - 当我发出请求时,我还包括允许我更新他们的工作簿的用户的 OAuth 令牌。

关于 per-user 部分的问题:

谢谢!

  1. 500 requests per 100 seconds per project - 这适用于我的项目。我使用我的项目凭证来发出每个请求。

  2. 100 requests per 100 seconds per user - 当我发出请求时,我还包括允许我更新他们的工作簿的用户的 OAuth 令牌。

如您所见,基于项目的配额有两种类型,这些是应用于整个项目的配额。然后是基于用户的报价,这些配额适用于您的项目/应用程序的用户。

可以延长基于项目的配额,您可以申请延期,google 可能会授予您延期,这将增加您的项目作为一个整体可以提出的请求数量。

基于用户的配额更像是洪水保护,它们确保您的应用程序的单个用户不能同时发出大量请求来淹没服务器。无法扩展基于用户的配额。

Is there anything the user can do themselves (like reach out to Google) to increase the quota just for them? Or is it me who needs to talk to Google to increase the quota for all users of my project simultaneously?

要回答您的问题,用户无法增加配额这是您的项目,只有您有权增加基于项目的配额。

您无法增加基于用户的配额。