我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们

Rate limits for GitHub Apps

GitHub 应用程序的速率限制有助于控制流量。

本文内容

此文档对您有帮助吗?

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或, 了解如何参与。

Server-to-server requests

Different server-to-server request rate limits apply to GitHub 应用程序s if the app is installed on organizations or repositories owned by a GitHub Enterprise Cloud account.

Normal server-to-server rate limits

发出服务器-服务器请求的 GitHub 应用程序 使用安装的最低速率限制为每小时 5,000 个请求。 具有 20 个以上用户的组织安装每小时每个用户将再收到 50 个请求。 具有 20 个以上仓库的安装每小时会为每个仓库再接收 50 个请求。 安装的最大速率限制为每小时 12,500 个请求。

GitHub Enterprise Cloud server-to-server rate limits

GitHub 应用程序s that are installed on an organization or repository owned by a GitHub Enterprise Cloud account and make server-to-server requests have a rate limit of 15,000 requests per hour.

User-to-server requests

弃用通知: GitHub 将停止使用密码向 API 验证。 You must now authenticate to the GitHub API with an API token, such as an OAuth access token, GitHub App installation access token, or personal access token, depending on what you need to do with the token. Password authentication to the API will be removed on November 13, 2020. For more information, including scheduled brownouts, see the blog post.

GitHub 应用程序s can also act on behalf of a user, making user-to-server requests.

Different user-to-server request rate limits apply to GitHub 应用程序s if the app is installed on organizations or repositories owned by a GitHub Enterprise Cloud account and the authenticated user also belongs to the same GitHub Enterprise Cloud account.

Normal user-to-server rate limits

User-to-server requests are rate limited at 5,000 requests per hour and per authenticated user. All OAuth applications authorized by that user, personal access tokens owned by that user, and requests authenticated with that user's username and password share the same quota of 5,000 requests per hour for that user.

GitHub Enterprise Cloud user-to-server rate limits

When a user belongs to a GitHub Enterprise Cloud account, user-to-server requests to resources owned by the same GitHub Enterprise Cloud account are rate limited at 15,000 requests per hour and per authenticated user. All OAuth applications authorized by that user, personal access tokens owned by that user, and requests authenticated with that user's username and password share the same quota of 5,000 requests per hour for that user.

For more detailed information about rate limits, see "Rate limiting" for REST API and "Resource limitations" for GraphQL API.

此文档对您有帮助吗?

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或, 了解如何参与。