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:

PlanRequests/minBurstDaily quota
Free30101,000
Pro1203010,000
Business600100100,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:

HeaderMeaning
X-RateLimit-Limitrequests allowed per minute
X-RateLimit-Remainingrequests left in the window
X-RateLimit-Resetseconds until reset
RateLimit-Limit, RateLimit-Remaining, RateLimit-Resetsame values in the IETF draft header names
RateLimit-Policythe policy: 30;w=60 (per minute) and, if there is a daily quota, , 1000;w=86400
X-RateLimit-Daily-Limitdaily quota (when the plan has one)
Retry-After429 only: whole seconds to wait (at least 1)
X-Request-Idrequest 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. Wait retryAfterSec seconds (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.