Errors, retries and rate limits

Updated on 2 dicembre 2026

The shape of an error

An error has an HTTP status and a JSON body. code is for your code, message is for a person:

1HTTP/1.1 403 Forbidden
2
3{
4 "error": {
5 "code": "level_required",
6 "message": "The section financials needs the level Pro.",
7 "level": "financials"
8 }
9}

Read code, not message: the wording of a message can change, a code does not. A call that fails is not counted as a request.

What to do with each code

Status Code Meaning Do this
400 invalid_parameter A parameter is missing or has a value that is not allowed. field names it. Fix the call. Do not retry.
401 invalid_key No key, or a key that does not exist. Check the Authorization header. Do not retry.
403 level_required The section needs a higher level. level names it. Drop the section from include, or change your level.
404 not_found No company or person with this id or number. Do not retry. Try another key: see below.
409 ambiguous Several companies have this number. candidates lists them. Choose one and read it by id.
410 merged The record was merged into another. id is the new one. Replace your id and read again.
429 rate_limited Too many calls in a short time. Wait for the seconds in Retry-After, then retry.
451 hidden A natural person without a public register entry, or hidden data. Do not retry. Delete your copy.
503 unavailable A fault on our side. Retry up to three times, with a longer pause each time.

Retry only 429 and 503

1attempt 1 fails with 503 → wait 1 s
2attempt 2 fails with 503 → wait 2 s
3attempt 3 fails with 503 → wait 4 s
4attempt 4 fails → stop, and report it

For a 429, wait exactly what Retry-After says. Every other error returns the same answer however often you ask, so a retry only uses up your rate limit. Working code for both is in the code examples.

Every call is a GET and changes nothing, so a retry is always safe.

Rate limits

The limit is on calls per second, not on requests per month, and it is there to keep the API fast for everyone. In practice:

  • Send calls one after the other, or a few in parallel. Ten parallel calls are fine; a thousand are not.
  • When you get a 429, slow down for all your calls, not only for the one that failed.
  • A nightly job does not need to be fast. Spread it.

A 404 that should not be one

An empty answer is not an error

A list without entries is [], never null. An unknown single value is null, and its field is always there. So you do not need to test whether a field exists.

Timeouts

Set a timeout of 30 seconds on your side. Most calls answer in well under a second; a search with many filters or a company with include=accounts over many years can take several seconds.

Tell us

When a 503 stays, or an answer looks wrong, write to us with the call and the time. Do not send your key.

Need support?

Did this article not answer your question? Write to us.

Contact us