cancel
Showing results for 
Search instead for 
Did you mean: 

Rate Limit for Magento 2 API's

Rate Limit for Magento 2 API's

What is the Rate Limit for Magento 2 API's?

2 REPLIES 2

Re: Rate Limit for Magento 2 API's

There's no rate limit in Magento 2 just like there's no limit in Magento 1.  If you'd like to limit APIs in Magento there's a variety of 3rd party tools (such as Apigee) or extensions to Nginx/Apache that you can use to setup ip white list, rate or data limits. 

Re: Rate Limit for Magento 2 API's

I think this article may help you.


Imposing restrictions on the size and number of resources that a user can request through an API can help mitigate denial-of-service (DoS) vulnerabilities. By default, the following built-in API rate limiting is available:

  • REST requests containing inputs that represent a list of entities. When enabled, the default maximum is 20 for synchronous requests and 5,000 for asynchronous requests.
  • REST and GraphQL queries that allow paginated results can be limited to a maximum number of items per page. When enabled, the default maximum is 300.
  • REST queries that allow paginated results can have a default number of items per page imposed. When enabled, the default maximum is 20.

By default, these input limits are disabled, but you can use the following methods to enable them:

When input limiting has been enabled, the system uses the default value for each limitation listed above. You can also configure custom values.

Although some simple examples for configuring these values from the CLI are provided below, all of the values can be configured per website and per store view in addition to being configurable globally. In addition, these values can also be configured via env.php as well as via environment variables.

---
Problem Solved Click Accept as Solution!:Magento Community India Forum