You can set rate limits for the GitHub Enterprise API using the management console.

Enabling rate limits on the API can prevent overuse of resources by individual users or unauthenticated users. Use abuse rate limiting to protect the overall level of service on your GitHub Enterprise instance.

For more information, see Rate Limiting in the GitHub Developer Documentation.

Enabling API Rate Limits

  1. Access the Management Console.

  2. Under "Rate Limiting" select Enable API Rate Limiting. API Rate Limiting checkbox

  3. Fill in the limits for authenticated and unauthenticated requests for overall API, Search API, LFS API, and GraphQL API or accept the defaults.
  4. At the bottom of the Management Console configuration page, click Save settings. Settings save button

    Note: Some of the limits are per hour and others are per minute.

Enabling Abuse Rate Limits

  1. Access the Management Console.

  2. Under "Rate Limiting" select Enable Abuse Rate Limiting. Abuse Rate Limiting checkbox

  3. Fill in the limits for Total Requests, CPU Limit, and CPU Limit for Searching or accept the defaults.
  4. At the bottom of the Management Console configuration page, click Save settings. Settings save button