Rate Limiting

Monitor rate limiting statistics and usage.

Check your current usage, remaining requests, and reset times to avoid hitting limits.

Get rate limiting statistics

get

Returns current rate limiting statistics for the API key. Shows usage, limits, remaining requests, and reset times.

Use this endpoint to monitor your API usage and avoid hitting rate limits.

Authorizations
X-API-KeystringRequired

API key for PRO plan endpoints (format: lion_pro_xxxxxxxxxxxxxxxx)

Responses
200

Rate limiting statistics

application/json
get
/pro/rate-limit-stats
GET /api/pro/rate-limit-stats HTTP/1.1
Host: https:/.alertlions.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "api_key": "lion_pro_6e1fc6354a1c3101c1a7ec6b0121d40f",
  "current_usage": {
    "requests_this_minute": 5,
    "requests_this_hour": 15,
    "requests_today": 45,
    "minute_reset_in": 37.43,
    "hour_reset_in": 3097.43,
    "day_reset_in": 6697.43
  },
  "limits": {
    "requests_per_day": 1000,
    "requests_per_hour": 100,
    "requests_per_minute": 10
  },
  "remaining": {
    "minute": 5,
    "hour": 85,
    "day": 955
  },
  "reset_times": {
    "minute_in_seconds": 37,
    "hour_in_seconds": 3097,
    "day_in_seconds": 6697
  }
}

Last updated