Limits and quotas
Each key has a requests-per-minute limit (with burst) and a daily quota (resets at 00:00 UTC). Initial values depend on the account plan:
| Plan | Requests/min | Burst | Daily quota |
|---|---|---|---|
| Free | 30 | 10 | 1,000 |
| Pro | 120 | 30 | 10,000 |
| Business | 600 | 100 | 100,000 |
Limits are set only by the lnk.ec team. If you need more, use Request more limit in API keys and tell us what you are building.
Each product's own functional rules also apply (for example link-creation policies).
Headers
Every response includes:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | requests allowed per minute |
X-RateLimit-Remaining | requests left in the window |
X-RateLimit-Reset | seconds until reset |
RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset | same values in the IETF draft header names |
RateLimit-Policy | the policy: 30;w=60 (per minute) and, if there is a daily quota, , 1000;w=86400 |
X-RateLimit-Daily-Limit | daily quota (when the plan has one) |
Retry-After | 429 only: whole seconds to wait (at least 1) |
X-Request-Id | request identifier (quote it to support) |
Handling 429
The error body tells you which limit you hit:
{ "error": { "code": "rate_limited", "status": 429, "details": { "type": "rate", "retryAfterSec": 2 } }, "requestId": "req_..." }type: "rate"(rate_limited): you spent the burst or the per-minute rate. WaitretryAfterSecseconds (a few seconds on Free) and retry.type: "daily"(daily_quota_exceeded): the daily quota is used up. Retrying will not help until 00:00 UTC, so stop and surface it.
The Free burst is 10 on purpose: it absorbs short spikes while the rate (30/min) protects shared capacity. To stay under it, spread calls evenly, cache responses and batch work. Always wait for Retry-After; if it is absent, use exponential backoff with jitter.
async function call(url, init, tries = 5) {
for (let i = 0; i < tries; i++) {
const res = await fetch(url, init);
if (res.status !== 429 && res.status < 500) return res;
const wait = Number(res.headers.get("retry-after")) || Math.min(2 ** i, 30);
await new Promise((r) => setTimeout(r, (wait + Math.random()) * 1000));
}
throw new Error("lnk.ec: too many retries");
}Sustained abusive use (thousands of 429 per day) suspends the key automatically.