Rate
Limits
SignupGuard uses rate limiting to ensure fair usage and maintain high availability for all users. Limits are applied per API key.
Default Rate Limits
Rate limits are enforced using a token bucket algorithm. This means you can burst short sequences of requests and then sustain a steady rate over time.
| Plan | Rate | Burst Capacity |
|---|---|---|
| Standard | 60 requests per minute | Up to 60 requests in a burst |
| Enterprise | Custom (based on plan) | Custom (based on plan) |
How Token Bucket Works
The token bucket algorithm works like a bucket that holds tokens. Each API request consumes one token. Tokens are replenished at a steady rate (1 token per second for standard plans). This gives you the flexibility to make bursts of requests while still enforcing an overall rate limit.
Bucket starts full
Your token bucket starts with 60 tokens (standard plan).
Each request consumes 1 token
Every API call removes one token from your bucket.
Tokens replenish over time
Tokens are added back at a rate of 1 per second, up to the maximum bucket capacity.
Empty bucket = rate limited
If the bucket is empty, subsequent requests receive a 429 response until tokens replenish.
Rate Limit Response
When you exceed the rate limit, the API returns a 429 Too Many Requests status with a Retry-After header indicating how many seconds to wait before retrying.
Response Headers
| Header | Description |
|---|---|
Retry-After | Number of seconds to wait before making another request. |
Response Body
{
"success": false,
"message": "Rate limit exceeded. Please try again later."
}Handling Rate Limits
Best practices for handling rate limits in your application:
- Respect the Retry-After header. When you receive a 429 response, wait for the number of seconds specified in the
Retry-Afterheader before retrying. - Implement exponential backoff. If you continue to receive 429 responses, increase the wait time exponentially between retries.
- Queue your requests. If you need to process many emails or IPs at once, queue them and process at a steady rate below your limit.
- Cache results. Cache verification results on your end for a reasonable period to avoid redundant API calls for the same email or IP.
Example — Retry with Backoff
import requests
import time
def check_email_with_retry(email, api_key, max_retries=3):
for attempt in range(max_retries):
response = requests.get(
"https://signupguard.io/api/v1/disposable/check/",
params={"email": email},
headers={"X-sg-apikey": api_key}
)
if response.status_code == 429:
retry_after = int(response.headers.get("Retry-After", 2))
wait_time = retry_after * (2 ** attempt)
print(f"Rate limited. Waiting {wait_time}s...")
time.sleep(wait_time)
continue
return response.json()
raise Exception("Max retries exceeded")Monthly Request Quotas
In addition to per-minute rate limits, each plan includes a monthly request quota. You can view your current usage and remaining quota in your dashboard. Visit our pricing page for details on quotas per plan.
Enterprise Rate Limits
Enterprise plans include custom rate limits tailored to your usage needs. If you require higher throughput than standard plans offer, contact us to discuss enterprise options.