How Rate Limiting Works
The Smokeball API uses the token bucket algorithm. Smokeball API partners are assigned a “Burst” and “Rate” Limit.- The burst limit defines the number of requests the API can handle concurrently
- The rate limit defines the number of allowed requests per second
Default Limits
Unless otherwise specified, Smokeball API partners are assigned the following limits:Region | Rate (requests per second) | Burst (concurrent requests) |
---|---|---|
US | 5 | 5 |
AU | 5 | 5 |
UK | 5 | 5 |
Handling Rate Limits
When you exceed the rate limit, the API will return a429 Too Many Requests
response. To handle this:
- Implement exponential backoff
- Monitor your request rate
- Cache responses when possible
- Batch requests when appropriate
Best Practices
- Monitor your API usage
- Implement proper error handling
- Use caching strategies
- Consider request batching
- Implement retry logic with backoff
Need Higher Limits?
If you require higher rate limits, please contact our support team with:- Your use case
- Expected request volume
- Required limits
- Justification for the increase