The developer platform requires the Premium plan or higher: the Free plan has no access (plan_required). Quotas are measured per server and depend on the plan of the queried server.
Beyond a count limit (keys, bridges, webhooks, giveaways), the API answers 402limit_reached; if the plan does not include them at all, 402plan_required.
Rate and quotas: the headers
Every response carries:
Header
Content
X-RateLimit-Limit
The quota (daily for the REST API, per minute for a bridge)
Too many requests per minute from the same IP address
429rate_limited. The api category allows 120 requests per minute, with a burst of 60
Bridge messages beyond the rate
The excess is dropped (dropped with rate_limited), not queued
Too many console commands or link codes
429rate_limited
When you receive a 429, wait for the Retry-After duration then retry, preferably with a delay that grows on each failure. The SDKs do this for reads.
Technical limits
Item
Limit
Results per page (limit)
100 at most
Wait for a write with ?wait=true
10 seconds
Long-polling wait (wait)
25 seconds
Retention of a server's events
24 hours, or 10,000 events
Retention of a bridge's queue
10 minutes (500 events)
Events per batch sent by a bridge
50
Bridge message length
1,900 characters
Discord message (content)
2,000 characters
Embed
6,000 characters in total, 25 fields, title 256, description 4,096
Idempotency key
100 characters, kept 24 hours
Players in a heartbeat
200
A bridge's whitelist entries
50
Timeout duration (timeout)
28 days
Giveaway duration
60 seconds to 60 days
Request body size
1 MB
Bridge heartbeat
every 30 seconds; "offline" after 90 seconds
Webhook delivery wait
8 seconds, 4 attempts, disabled after 50 consecutive failures
Delivery log
last 100
Save your quota
Cache reads (a leaderboard, a few minutes), use ?limit=100 to reduce the number of pages, replace a polling loop with a webhook and batch a bridge's events.
Spotted a mistake? Got a question? Let us know on the support server.