Skip to Content

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.

LimitApplies to
600 requests a minuteEach workspace
50 requests at onceEach 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.

HeaderContains
X-RateLimit-LimitRequests allowed a minute
X-RateLimit-RemainingRequests left this minute
X-RateLimit-ResetWhen 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: 7

Wait that long, then send it again. To repeat a request that may already have run without paying twice, send it with an Idempotency-Key.