Rate limits
Limits protect the service from runaway scripts. A request over a limit returns 429 with a detail message.
| What | Limit |
|---|---|
| Requests with one API key | 100 a minute |
| Conversion pixel and postback, per IP | 120 an hour |
| Sign-in, sign-up and password reset, per IP | 20 an hour |
| Anonymous link creation, per IP | 10 an hour |
| Link password attempts, per link and IP | 10 every 15 minutes |
| AI requests, per user and per AI feature | 20 a minute |
Your plan also has monthly limits on new links, tracked clicks and AI credits. Those return 402, not 429. See Plans and limits.
Handle a 429
Wait, then retry. Back off a little more after each failed try.
- JavaScript
- Python
async function withRetry(doRequest, tries = 4) {
for (let i = 0; i < tries; i++) {
const res = await doRequest();
if (res.status !== 429) return res;
await new Promise((r) => setTimeout(r, 2 ** i * 1000)); // 1s, 2s, 4s, 8s
}
throw new Error("Still rate limited after retries");
}
import time
def with_retry(do_request, tries=4):
for i in range(tries):
res = do_request()
if res.status_code != 429:
return res
time.sleep(2 ** i) # 1s, 2s, 4s, 8s
raise RuntimeError("Still rate limited after retries")
Need many links at once?
GET /api/links returns up to 500 links in one call. Use it instead of many single GET calls.