Skip to content

Rate Limits

API4Business enforces rate limits to ensure fair usage and platform stability.

Default limits

Rate limits are applied per API key. When you exceed the limit, the API returns a 429 Too Many Requests response.

Rate limit response

json
{
  "errorCode": 429,
  "errorType": "proxy",
  "errorMessage": "Quota Violation"
}

Retry strategy

When you receive a 429 response, implement exponential backoff:

python
import time
import requests

def call_with_retry(url, headers, json_data, max_retries=3):
    for attempt in range(max_retries):
        response = requests.post(url, headers=headers, json=json_data)
        if response.status_code == 429:
            wait = 2 ** attempt  # 1s, 2s, 4s
            time.sleep(wait)
            continue
        return response
    raise Exception("Max retries exceeded")
javascript
async function callWithRetry(url, options, maxRetries = 3) {
  for (let attempt = 0; attempt < maxRetries; attempt++) {
    const response = await fetch(url, options);
    if (response.status === 429) {
      const wait = Math.pow(2, attempt) * 1000;
      await new Promise(r => setTimeout(r, wait));
      continue;
    }
    return response;
  }
  throw new Error("Max retries exceeded");
}

Contact for higher limits

If you need higher rate limits for your use case, contact support@api4business.com.

What's next

Released under the API4Business Terms of Service