Resource/rate limits and paging
Resource and rate limits, and the default and maximum sizes of paged data are not considered part of the API and are subject to change (possibly dynamically).
How calls are measured
Tracking the number of calls is measured based on if they are authenticated or unauthenticated calls as follows:
- Unauthenticated calls: measured against a specific IP address.
- Authenticated calls: measured against the user ID.
Rate limits are divided into a one-hour rolling window for both authenticated and unauthenticated requests, which means that for every minute that passes, you will be provided that time to run new requests but the total you can run consecutively over an hour is 1,000.
Anonymous Request limits
Anonymous requests are subject to a strict rate limit of 60 requests per hour across all API resources. If you need access to a larger request pool, logging in is required.
Authenticated Request limits
The following table defines our API request limits for authenticated requests:
|Git web (HTTPS://) requests||60,000 requests per hour|
|hg web (HTTPS://) requests||30,000 requests per hour|
|SSH requests (all SSH requests are rate limited)||30,000 requests per hour|
Access to raw files
Raw file requests: the number of times a file is actively downloaded, including files in the download section of the site.
This is not a limit on actions such as:
|5,000 requests per hour|
Archive files: .zip, .gz, and other compressed archives of your repository.
|5,000 files per hour|
Access to repositories data
Any access to /2.0/repositories/* such as:
1,000 per hour