Skip to main content

Rate limits for GitHub Apps

GitHub 应用程序 和 OAuth 应用程序 的速率限制有助于控制 您的 GitHub Enterprise Server 实例 的流量。

注意:以下速率限制是 GitHub Enterprise Server 的默认速率限制。 请与站点管理员联系,以确认 您的 GitHub Enterprise Server 实例 的速率限制。

注意:您可以随时确认当前的速率限制状态。 更多信息请参阅“检查速率限制状态”。

Server-to-server requests

GitHub 应用程序 making server-to-server requests use the installation's minimum rate limit of 5,000 requests per hour. If an application is installed on an organization with more than 20 users, the application receives another 50 requests per hour for each user. Installations that have more than 20 repositories receive another 50 requests per hour for each repository. The maximum rate limit for an installation is 12,500 requests per hour.

User-to-server requests

GitHub 应用程序 and OAuth 应用程序 can also act on behalf of a user, making user-to-server requests after the user authorizes the app. For more information, see "Authorizing GitHub 应用程序" and "Authorizing OAuth 应用程序."

User-to-server requests from OAuth 应用程序 are authenticated with an OAuth token. User-to-server requests from GitHub 应用程序 are authenticated with either an OAuth token or an expiring user access token. For more information, see "Identifying and authorizing users for GitHub 应用程序" and "Authorizing OAuth 应用程序."

默认情况下,用户到服务器 请求限制为每个经过身份验证的用户每小时 5,000 个请求。 来自由用户授权的 OAuth 应用程序或用户拥有的个人访问令牌的所有请求,以及使用用户的任何身份验证凭据进行身份验证的请求,共享相同的配额,即该用户每小时 5,000 个请求。

Further reading