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.

PlanRateBurst Capacity
Standard60 requests per minuteUp to 60 requests in a burst
EnterpriseCustom (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.

1

Bucket starts full

Your token bucket starts with 60 tokens (standard plan).

2

Each request consumes 1 token

Every API call removes one token from your bucket.

3

Tokens replenish over time

Tokens are added back at a rate of 1 per second, up to the maximum bucket capacity.

4

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

HeaderDescription
Retry-AfterNumber of seconds to wait before making another request.

Response Body

429 Too Many Requests
json
{
  "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-After header 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

python — exponential backoff
python
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.

Next Steps