Skip to content

Rate Limits

Important: Rate limits are in place to prevent API abuse while keeping the service free for everyone. If you need a higher free limit, email contact@muslimbd.app.

Muslim API enforces rate limits to ensure fair usage for all consumers.

Limits by Tier

Request TypeWithout KeyWith Valid Key
General requests10 / min
Calculations (prayer, qibla)5 / min
Note: All endpoints require an API key. Rate limits apply per key. Generate your key →

Rate Limit Headers

Every response includes the following headers:

HeaderDescription
X-RateLimit-LimitMaximum requests allowed in the window
X-RateLimit-RemainingRequests remaining in the current window
X-RateLimit-ResetUnix timestamp when the window resets

Exceeded Limit Response

When you exceed the rate limit, the API returns 429 Too Many Requests:

json
{
  "success": false,
  "error": "Too Many Requests",
  "message": "Rate limit exceeded. Please wait before retrying.",
  "retry_after": 60
}

Free & Open Source Muslim API