Company lookup API by tax number
What the API does
The ReRB API returns information about a company or sole proprietor by its tax number. One request is one counterparty check: name, registration details, status, address, line of business and a link to the company page in the catalogue. The data comes from the same database as the website — official state registries. The API suits CRMs, accounting systems, online shops and due-diligence services: a number typed in by a customer instantly becomes a filled-in company record.
Request
A single endpoint, GET method, JSON response (UTF-8):
GET https://rerb.org/org-api.php?inn=<number>&country=<country code>
X-API-Key: <your key>The country parameter is a two-letter country code: ru, by, kz, ua or pl. The inn parameter is the tax number. Spaces, hyphens, dots and a country prefix are stripped, so "PL 526-000-14-39" and "5260001439" return the same result.
Which number to send
- ru — INN: 10 digits for a legal entity, 12 digits for a sole proprietor.
- by — UNP: 9 digits.
- kz — BIN or IIN: 12 digits.
- ua — EDRPOU code (8 digits) or RNOKPP (10 digits).
- pl — NIP: 10 digits.
A number of any other length is rejected with bad_inn without touching the database. The kz and ua codes are already accepted, but data for Kazakhstan and Ukraine is being added gradually, so for now they more often return not_found.
Authorisation
Every request is signed with a key. Send it in the X-API-Key header or as Authorization: Bearer <key>. A key URL parameter also works, but such URLs end up in logs and browser history, so use the header in server integrations. Keys are issued on request: write to privacy@rerb.org with "API" in the subject and briefly describe how you will use the data. Do not embed the key in website or mobile app code — call the API from your own server.
Response
On success the API returns status 200 and an object with the fields ok, country, inn, count and items. items holds up to 20 records with that number, active ones first. Each record has: name and fullName — short and full name; inn, ogrn, ogrnip, kpp, okpo — registration numbers (as strings, leading zeros kept); type — IP or OOO; status — active or liquidated, plus dateEliminate for liquidated ones; dateCreate — registration date; chief — the head; address, region, regionName and city — location; okved and okvedName — main activity; category — catalogue section; rating and reviewsCount — user ratings; url — the company page on rerb.org. If the registry has no value, the field is null.
Example
curl -H "X-API-Key: your_key" "https://rerb.org/org-api.php?inn=7707083893&country=ru"Errors
- 400 bad_country — unknown country code.
- 400 bad_inn — the number does not match the country's format.
- 401 unauthorized — the key is missing or invalid.
- 404 not_found — no company with this number in this country.
- 503 db_unavailable — the database is temporarily unavailable, retry later.
Every error carries an error field with a code, some also a message with details. Rely on the HTTP status and the code, not on the message text.
Limitations
Search is by exact number; the API has no search by name — the website catalogue covers that. Responses are not cached, so you always get the current state of the database. The data is republished from open registries and updated together with the catalogue; for a legally binding extract, use the registry itself. Use of the API is governed by the site's Terms of Use.
