Skip to main content

GitHub 应用程序的速率限制

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

服务器到服务器请求

The rate limits for server-to-server requests made by GitHub 应用程序 depend on where the app is installed. If the app is installed on organizations or repositories owned by an enterprise on GitHub.com, then the rate is higher than for installations outside an enterprise.

标准的服务器到服务器速率限制

GitHub Enterprise Cloud 服务器到服务器速率限制

GitHub 应用程序 that are installed on an organization or repository owned by an enterprise on GitHub.com have a rate limit of 15,000 requests per hour for server-to-server requests.

用户到服务器请求

GitHub 应用程序 还可以代表用户发送用户到服务器的请求。

The rate limits for user-to-server requests made by GitHub 应用程序 depend on where the app is installed. If the app is installed on organizations or repositories owned by an enterprise on GitHub.com, then the rate is higher than for installations outside an enterprise.

标准的用户到服务器速率限制

User-to-server requests are rate limited at 5,000 requests per hour and per authenticated user. 该用户授权的所有 OAuth 应用程序、该用户拥有的个人访问令牌以及使用该用户的 用户名和密码 验证的请求,将共享该用户每小时 5,000 个请求的配额。

GitHub Enterprise Cloud 用户到服务器速率限制

When a user belongs to an enterprise on GitHub.com, user-to-server requests to resources owned by the same enterprise 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.

有关速率限制的更多信息,请参阅 REST API 的“速率限制”和 GraphQL API 的“资源限制”。