Handles API

Credits and limits

Two meters apply to every call: credits, which you spend, and a per-minute rate limit, which you share across your keys.

Credits

A call costs one of two prices, depending on where the data comes from.

KindCostWhat it is
Catalog1 creditServed from our own index: directory, insights, identity, research and lead reads. Fast, and the default choice.
Live2 creditsRead from the platform itself, right now. Slower, and bounded by a separate live limit. Endpoint pages mark these with a Live call badge.

Failed calls are not charged: a 4xx you caused and a 5xx we caused cost nothing. The one exception is 404 not_found on a lookup, because the lookup did the work. The Errors guide lists which codes are charged.

Plan limits

Paid plans include a monthly credit allowance that renews every billing period. The Free plan is a one-time trial: its credits never renew, so once they are spent you pick a paid plan to keep going. Every plan has a per-minute request ceiling, and past the allowance paid plans can keep going at an overage price per 1,000 credits.

PlanPriceIncluded creditsRequests per minuteLive calls per dayOverage per 1,000
Free$0100 (one time)10No daily capNot available
Starter$29/mo15,000 / month120No daily cap$2.90
Pro$99/mo75,000 / month300No daily cap$1.98
Business$299/mo300,000 / month600No daily cap$1.50
Scale$799/mo1,200,000 / month1,200No daily cap$1

Full plan details are on the pricing page.

Response headers

Every response, success or failure, reports where you stand.

HeaderMeaning
X-Request-IdUnique id of this request. The same value is in meta.request_id. Quote it to support.
X-RateLimit-LimitRequests allowed in the current one-minute window.
X-RateLimit-RemainingRequests left in the current one-minute window.
X-RateLimit-ResetUnix time, in seconds, at which the current window resets.
X-Credits-CostCredits this call was charged.
X-Credits-RemainingCredits left in the current billing period (for the Free trial, credits left in total).
X-Credits-Period-EndWhen the current billing period ends, ISO 8601. The Free trial has no period, so this carries no meaningful date.

A rate-limited response also carries Retry-After, in seconds.

402 or 429?

Three different limits can stop a call. They look alike and mean different things, so branch on error.code rather than on the status alone.

Status and codeWhat happenedWhat to do
429 rate_limitedYou went over your plan's per-minute limit.Wait Retry-After seconds, then retry. It clears within the minute.
429 live_limit_reachedYou went over the live-call allowance for your plan. Live calls have their own limit on top of the per-minute one.Slow down, or serve the read from the catalog. Waiting out Retry-After works.
402 quota_exceededYour plan's credits are used up and overage is off.Retrying does not help. Pick a plan or upgrade, turn on overage on a paid plan, or wait for the next billing period. Free trial credits never renew.
Retrying only what can succeed
const res = await fetch(url, { headers });
if (res.status === 429) {
  const wait = Number(res.headers.get("Retry-After") ?? 1);
  await new Promise((r) => setTimeout(r, wait * 1000));
  // retry once
} else if (res.status === 402) {
  throw new Error("Out of credits: upgrade or enable overage");
}

Budget your calls

Check X-Credits-Remaining on each response and stop a batch before it hits zero, rather than discovering the limit through a 402.
  • Prefer catalog endpoints. The same account is 1 credit from the catalog and 2 live.
  • Batch where an endpoint offers it: one bulk request counts once against your rate limit.
NextPagination