What is API rate limiting?

Definition

A rate limit applies an enforced allowance to requests reaching an interface. The allowance may be associated with an identity, endpoint or other scope. Requests beyond the permitted amount can be delayed or rejected according to the service's rules.

Rate limits help bound traffic and resource consumption, but they do not establish that allowed requests are authorised or safe. They are separate from permission checks, payload-size limits and verification of the work performed.

ELI5

API rate limiting controls how many requests a client can send to a service during a period of time. It protects the service from overload and prevents one client from using an unfair share of the available capacity.

For example, an API might allow 100 requests per minute and temporarily reject the next request when that allowance is used. A well-behaved application waits according to the service guidance, keeps its progress and avoids sending the same consequential operation twice.

Is a rate limit the same as an input-size limit?

No. A rate limit bounds activity over time or a budget; an input-size limit bounds an individual request.

Does staying below a rate limit mean an action is permitted?

No. The request still needs to pass the relevant identity, permission and validation checks.

  1. Bijan Bowen beside the words HY4 Preview Tested
  2. Sam Prodger in a blue top against black beside the blue-and-white headline “Enforce Agent Limits”.
Definition card for API rate limiting: What is API rate limiting?

API rate limiting controls how much request activity a caller can perform within a defined period or resource budget.