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 Apps and OAuth App 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 Apps 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. 20以上のリポジトリを持つインストールでは、リポジトリごとにⅠ時間あたり50リクエストが追加されます。 インストールに対する最大のレート制限は、Ⅰ時間あたり12,500リクエストです。
Server-to-server rate limits for GitHub Enterprise Cloud
GitHub Apps 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 Apps and OAuth App 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 Apps" and "Authorizing OAuth App."
User-to-server requests from OAuth App are authenticated with an OAuth token. User-to-server requests from GitHub Apps are authenticated with either an OAuth token or an expiring user access token. For more information, see "Identifying and authorizing users for GitHub Apps" and "Authorizing OAuth App."
Default user-to-server rate limits for GitHub.com
The rate limits for user-to-server requests made by GitHub Apps 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 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 App that's owned by a GitHub Enterprise Cloud organization.
- The request is from an OAuth App that's owned or approved by a GitHub Enterprise Cloud organization.
参考リンク
- "Rate limiting" in the REST API documentation
- "Resource limitations" in the GraphQL API documentation