Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
stylenone

What is Rate Limiting?

Rate limiting is a technique used to control the frequency at which a client or user can make requests to an API. It imposes restrictions on the number of requests that a client can make within a specific time period.

Why Rate Limit?

Rate limiting has become a common practice in public API consumptions and is necessary for several important reasons, primary amongst which are :

...

Overall, rate limiting is a critical mechanism to maintain the stability, security, and reliability of APIs, benefiting both API providers and users.

AIO Public API Rate Limits

At present, the limit is 60 requests per minute. This limit is applied to a single IP.

Rate Limit Detection

If the threshold is breached, apps can detect rate limits by checking if the HTTP response status code is 429. Any REST API can return a rate-limit response.

Rate Limit Handling

Once you hit your rate limit, you’d need to make your program sleep for a few seconds (if the earlier requests were distributed across the one minute) or for a maximum of 60 seconds, if all 60 requests were done in a burst, in order to send one more request otherwise subsequent requests would fail. With the default of 60 requests/min, customers can effectively send 1 request every second.

...