Chapter 3
3.6. Rate Limit
Most APIs place a limit on the number of request you can make at a particular time. This is called rate limiting. It is done to prevent spam and weighing down the server with too many requests.
Different APIs have different rate limits. The limit and how to monitor the number will be well documented. On Instagram, the global rate limit is 5000/hour per application or authentication token. Header fields to track the rate limit are also provided in the response.
Exceeding the Instagram rate limit will return a 429 (Too Many Requests) HTTP status code and response like this:
If you are building a request intensive solution, you should keep an eye on the rate limit and ensure it is not exceeded. These limits are always large enough to accommodate whatever you are building. Even when an API does not rate limit or mention it, making too many calls to the API should be avoided. This will likely get the client blocked by the provider.