Skip to main content

GitHub 应用程序的速率限制

Rate limits for GitHub 应用程序 and OAuth 应用程序 help control the rate of traffic to GitHub.com.

Note: You can confirm your current rate limit status at any time. For more information, see "Checking your rate limit status."

About rate limits for apps

Rate limits for GitHub 应用程序 and OAuth 应用程序 depend on the plan for the organization where you install the application. For more information, see "GitHub's products" and "Types of GitHub accounts."

服务器到服务器请求

Default server-to-server rate limits for GitHub.com

发出服务器-服务器请求的 GitHub 应用程序 使用安装的最低速率限制为每小时 5,000 个请求。 If an application is installed on an organization with more than 20 users, the application receives another 50 requests per hour for each user. 具有 20 个以上仓库的安装每小时会为每个仓库再接收 50 个请求。 安装的最大速率限制为每小时 12,500 个请求。

Server-to-server rate limits for GitHub Enterprise Cloud

GitHub 应用程序 that are installed on an organization or a repository within an enterprise on GitHub.com are subject to a limit of 15,000 requests per hour.

用户到服务器请求

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 应用程序."

Default user-to-server rate limits for GitHub.com

User-to-server requests are limited to 5,000 requests per hour and per authenticated user. All requests from OAuth applications authorized by a user or a personal access token owned by the user, and requests authenticated with any of the user's authentication credentials, share the same quota of 5,000 requests per hour for that user.

User-to-server rate limits for GitHub Enterprise Cloud

User-to-server requests are subject to a higher limit of 15,000 requests per hour and per authenticated user in the following scenarios.

  • The request is from a GitHub 应用程序 that's owned by a GitHub Enterprise Cloud organization.
  • The request is from an OAuth 应用程序 that's owned or approved by a GitHub Enterprise Cloud organization.

延伸阅读