doc/administration/settings/rate_limit_on_projects_api.md
{{< details >}}
{{< /details >}}
[!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.
{{< history >}}
rate_limit_for_unauthenticated_projects_api_access removed.rate_limit_groups_and_projects_api. Disabled by default.rate_limit_groups_and_projects_api removed.{{< /history >}}
Configure the rate limit for each IP address and user for requests to the following Projects API endpoints:
| Limit | Default | Interval |
|---|---|---|
GET /projects (unauthenticated requests) | 400 | 10 minutes |
GET /projects (authenticated requests) | 2000 | 10 minutes |
GET /projects/:id | 400 | 1 minute |
GET /users/:user_id/projects | 300 | 1 minute |
GET /users/:user_id/contributed_projects | 100 | 1 minute |
GET /users/:user_id/starred_projects | 100 | 1 minute |
Prerequisites:
To change the rate limit:
0 to disable it.The rate limits:
Requests over the rate limit are logged into the auth.log file.
For example, if you set a limit of 400 for GET /projects/:id, requests to the API endpoint that
exceed a rate of 400 requests per minute are blocked. Access to the endpoint is restored after one minute.
For more information about project API endpoints, see the projects API.
{{< history >}}
{{< /history >}}
Configure the rate limit for each project and user for requests to the delete members endpoint.
Prerequisites:
To change the rate limit:
The rate limit:
0 to disable the rate limit.Requests over the rate limit are logged into the auth.log file.
For example, if you set a limit of 60, requests to the API endpoint that exceed a rate of 60 requests per minute are blocked. Access to the endpoint resumes after one minute.
{{< history >}}
{{< /history >}}
Configure the rate limit for requests to the list project members endpoint.
Both the GET /projects/:id/members/all and GET /groups/:id/members/all
API endpoints share the same rate limit configuration. If you set a rate limit on the projects endpoint,
the rate limit applies also to the groups endpoint.
Prerequisites:
To change the rate limit:
GET /projects/:id/members/all API per minute per user or IP address text box, enter a value.The rate limit:
0 to disable rate limits.Requests over the rate limit are logged into the auth.log file.
For example, if you set a limit of 200, requests to the API endpoint that exceed a rate of 200 requests per minute are blocked. Access to the endpoint resumes after one minute.