Rate Limiting
The Okasie Partner API implements rate limiting to ensure fair usage and system stability.Default Limits
Need higher limits? Contact info@okasie.be to discuss custom rate limits for your integration.
Rate Limit Headers
Every API response includes rate limit information:Example Response Headers
Handling Rate Limits
When you exceed the rate limit, you’ll receive a429 Too Many Requests response:
Retry-After header indicating seconds to wait:
Best Practices
Implement exponential backoff
Implement exponential backoff
When receiving 429 errors, wait and retry with increasing delays:
Track rate limit headers
Track rate limit headers
Monitor headers to avoid hitting limits:
Use bulk endpoints
Use bulk endpoints
For large data sets, use
/listings/bulk-upsert to process up to 100 items per request instead of individual calls.Implement caching
Implement caching
Cache responses where appropriate to reduce API calls.
Use incremental sync
Use incremental sync
Use
updatedSince parameter to only fetch changed data instead of full syncs.Sync Scheduling Recommendations
Example: Rate-Limited Sync Script
Next Steps
Error Handling
Handle API errors gracefully
Incremental Sync
Efficient sync patterns