doc/administration/settings/rate_limit_on_users_api.md
{{< details >}}
{{< /details >}}
{{< history >}}
rate_limiting_user_endpoints. Disabled by default.rate_limiting_user_endpoints removed.{{< /history >}}
[!note] When upgrading to GitLab 18.0 or later, configurable rate limits for this API are set to
0. Administrators can adjust rate limits as needed. For information about which rate limits are affected, see Rate limitations announced for Projects, Groups, and Users APIs.
You can configure the per minute rate limit per IP address and per user for requests to the following Users API.
| Limit | Default |
|---|---|
GET /users/:id/followers | 100 each minute |
GET /users/:id/following | 100 each minute |
GET /users/:id/status | 240 each minute |
GET /users/:id/keys | 120 each minute |
GET /users/:id/keys/:key_id | 120 each minute |
GET /users/:id/gpg_keys | 120 each minute |
GET /users/:id/gpg_keys/:key_id | 120 each minute |
Prerequisites:
To change the rate limit:
0 to disable a rate limit.Each rate limit:
0 to disable rate limits.Logs:
auth.log file.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.