DevelopersDocsGuides
Rate limits
Per-key request rates and daily unique-problem quotas, counted in UTC.
On this page
Limits belong to the key, not to a public plan. REST and MCP share the same counters. An admin sets requests_per_minute (1–600; the column default is 60) and daily_unique_problem_limit (0–100000, required). max_problems_per_request is 1–10 and defaults to 10. Read the live numbers from the response. Do not hard-code them. An admin can revoke the key; both REST and MCP then fail with revoked_api_key.
Requests per minute
Search, random, get, and catalog each take one request from the key’s UTC minute bucket after the key is recognised and the body has passed validation. When the count passes the key’s limit, the status is 429 rate_limited. Retry-After is the number of seconds left in that UTC minute, at least 1.
Daily unique problems
The daily quota counts distinct validated problem allocations committed for that key on the UTC date. Invalid payloads roll back the entire batch. A lost network response can still leave a successful allocation counted; retrying random selection can return different problems. It resets at 00:00 UTC. Delivering the same problem again on the same date increments a repeat count and does not take another unique slot. On search, each problem has counted_as_new_problem. On random, that flag is on usage. GET does not spend a unique slot.
Search sets selection.truncated_by_quota when new problems remain and the allowance is smaller than selection.limit. A problem already delivered to that key today can still be returned after the allowance is spent. Random keeps looking for such a repeat. difficulty_ordered stops at the first new problem once no slot remains, so a repeat later in that order is not returned. The status is 429 daily_quota_exceeded when every remaining match would be a new problem. The status is 404 no_eligible_problem when nothing matches, including when the allowance is already spent.
Headers
| Header | Meaning |
|---|---|
| X-RateLimit-Limit | The key’s requests per minute. |
| X-RateLimit-Remaining | How many requests are left in the current UTC minute. |
| X-DailyUnique-Limit | The key’s unique problems per UTC day. |
| X-DailyUnique-Remaining | How many new problems are left today. |
| X-Lifetime-Problems | Sent on random and get success, and on errors that include usage. Search and catalog success include lifetime_problems in the body and omit this header. |
| Retry-After | Seconds to wait after rate_limited. |
Successful bodies also include a usage object with unique_problems_today, daily_unique_limit, requests_today, requests_per_minute, requests_this_minute, lifetime_problems, and max_problems_per_request. Sample numbers on this site illustrate that shape. There is no bulk export around these caps.