Documentation
Rate Limits
How many requests you can send, how to read your limit, and what to do when you reach it.
Two limits keep the API fast for everyone. Neither costs anything when you reach it.
Limits
A workspace has a limit a minute, and each of its keys a limit at once.
| Limit | Applies to |
|---|---|
| 600 requests a minute | Each workspace |
| 50 requests at once | Each API key |
The minute slides, and counts every key of the workspace together. Reading your balance does not count. If you need more, write to support@socialapi.sh.
Read Your Limit
Every answer says how much of the minute's limit is left.
| Header | Contains |
|---|---|
X-RateLimit-Limit | Requests allowed a minute |
X-RateLimit-Remaining | Requests left this minute |
X-RateLimit-Reset | When the next one frees up |
The reset is a Unix time, in seconds.
Handle 429 Responses
A request past either limit returns 429 RATE_LIMITED, with a Retry-After in seconds.
HTTP/1.1 429 Too Many Requests
Retry-After: 7Wait that long, then send it again. To repeat a request that may already have run without paying twice, send it with an Idempotency-Key.