Rate Limits
Klevu's API ecosystem is designed to facilitate efficient communication and robust operations, making it an integral part of our product discovery suite. To maintain optimal performance and ensure stability, rate limits are applied to manage the volume of requests.
Klevu uses a Web Application Firewall (WAF) to enforce rate limits. This system monitors incoming requests and applies restrictions when the defined thresholds are exceeded. These limits are particularly relevant for managing data ingestion into the Klevu backend, where processing times may vary based on payload size and complexity.
- Request Limit: 200 requests per minute.
- Scope: Applies to all indexing-related APIs, including PUT, PATCH, and attribute fetch endpoints.
- Payload Size: Each request must adhere to Klevu's 2 MB payload size limit to ensure efficient processing and avoid rejection.
If the request volume surpasses the allowed limit, the API will return:
- HTTP Status Code: 429 (Too Many Requests)
- Message: "Rate Limit Exceeded"
In such cases where limits are exceeded, additional requests must be paused until the rate resets.
To make the most of Klevu's API capabilities while staying within the rate limits, consider these best practices:
Whenever possible, consolidate multiple operations into a single request. This reduces the overall number of API calls and optimizes resource usage, ensuring efficient catalog management.
Ensure that each request complies with the 2 MB payload size limit. Oversized payloads may experience delays or rejection, impacting integration performance.
The time required to process requests depends on their size and complexity. Design your integration workflows to handle variable processing times by incorporating delays or retries where necessary.