Rate limits on Users API
- Tier: Free, Premium, Ultimate
- Offering: GitLab Self-Managed
You can configure the per minute rate limit per IP address and per user for requests to the following Users API.
The availability of this feature is controlled by a feature flag. For more information, see the history. This feature is available for testing, but not ready for production use.
Limit | Default |
---|---|
GET /users/:id/followers | 100 |
GET /users/:id/following | 100 |
GET /users/:id/status | 240 |
GET /users/:id/keys | 120 |
GET /users/:id/gpg_keys | 120 |
GET /users/:id/gpg_keys/:key_id | 120 |
To change the rate limit:
- On the left sidebar, at the bottom, select Admin.
- Select Settings > Network.
- Expand Users API rate limit.
- Set values for any available rate limit. The rate limits are per minute, per user for authenticated requests and per IP address for unauthenticated requests. Enter
0
to disable a rate limit. - Select Save changes.
Each rate limit:
- Applies per user if the request is authenticated.
- Applies per IP address if the request is unauthenticated.
- Can be set to
0
to disable rate limits.
Logs:
- Requests that exceed the rate limit are logged to the
auth.log
file. - Rate limit modifications are logged to the
audit_json.log
file.
Example:
If you set a rate limit of 150 for GET /users/:id/followers
and send 155 requests in a minute, the
final five requests are blocked. After a minute, you could continue sending requests until you
exceed the rate limit again.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support