Rate Limits
The PMF API uses rate limiting to ensure fair usage and maintain service quality for all users.
How Rate Limiting Works
Request Limits
Rate limits are enforced at multiple levels:
- Per Minute: Maximum 60 requests in any 60-second window
- Per Day: Maximum 1,000 requests in a 24-hour period (UTC)
- Per Month: Maximum 20,000 requests in a calendar month
Rate Limit Headers
Every API response includes rate limit information:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 45
X-RateLimit-Reset: 1707064800
X-RateLimit-Tier: free
X-RateLimit-Limit: Your limit for the current periodX-RateLimit-Remaining: Requests remaining in current periodX-RateLimit-Reset: Unix timestamp when the limit resetsX-RateLimit-Tier: Current tier (always "free" )
Handling Rate Limits
When You Hit a Limit
When you exceed a rate limit, you'll receive a 429 response:
{
"detail": "Rate limit exceeded. Limit: 60 requests per minute",
"retry_after": 42
}
The retry_after field indicates seconds to wait before retrying.
Next Steps
- Quick Start - Start using the API immediately
- API Reference - Explore all endpoints