Rate limits and quotas in APIs
easy 22 minA limit is part of an API's contract.
Where it shows up
The same pattern appears across everyday software.
GitHub REST API
60 requests an hour without login and 5,000 an hour for a logged-in user, shown in x-ratelimit headers, plus secondary limits such as 100 concurrent requests. Over the limit it answers 403 or 429.
Amazon API Gateway
Throttles with a token bucket. The documented account default is 10,000 requests a second with a bucket of 5,000, lower in some regions. Plans can set limits and quotas per key.
Stripe
Documents 100 requests a second in live mode and 25 in a sandbox as the global limit, with further limits per endpoint.
Language model APIs
OpenAI documents limits in requests and tokens, per minute and per day, because one request can be small or very large. The numbers depend on model and usage tier.
Login pages
Limits per account name and per address slow down password guessing, without locking the owner out for ever.
Library seat booking
Five booking tries a minute per student stop scripts on opening day, while reading free seats has a much higher limit.