API dokumentatsioon

Company data from the Lithuanian, Latvian and Estonian registries.

Auth: send your key in the X-API-Key header (never in the URL). Free key: 100 requests per month. Without a key: 3 requests a day per IP, to try the API; the MCP server always needs a key. A free key is issued only to a confirmed e-mail with the Terms accepted (POST /api/v1/auth/register mails a link; the key is shown once on its page), or in the account at https://www.balticfirms.eu/my/. Paid plans give more requests: https://www.balticfirms.eu/en/developers/plans (t-ini5).

Errors: RFC 9457 application/problem+json with a stable code and a requestId (also in the X-Request-Id header).

Limits and caching: every data answer carries X-RateLimit-Limit and X-RateLimit-Remaining (with a key also X-RateLimit-Reset, epoch seconds of the monthly reset) and a weak ETag; send it back in If-None-Match to get 304 Not Modified without a body. Only an answer with data (200) is billed, with a key and without: 304, 400, 404, 410, 403 and 429 cost nothing; a 429 for the monthly limit has Retry-After until the reset and says where to go on: upgrade_url (paid plans), account_url (your keys, usage and plan; sign in with the key's e-mail), usage_url, resetDate, also as a Link header. Speed: at most 5 requests a second per IP address (bursts of 20), the same for /mcp; over it a 429 with code RATE_LIMITED and Retry-After: 2 (seconds). Reading many sections of a company: pace the calls.

Versioning: paths without /v1 redirect here with 308.

openapi.json

GET /api/v1/companies

Ettevõtete otsing ja filtrid

Parameetrid
NimiAsukohtKirjeldus
qqueryCompany name, registration code or VAT code (first 200 characters are used)
countryquerylt, lv, ee, or all (default) for the three countries together
statusqueryactive, inactive (closed: deregistered, liquidated, bankrupt, ...) or all (both). Default: active companies in lists; a text search (q) covers every status. Companies hidden on request are never listed
nacequeryNACE Rev. 2 code: section, division, group or class. A company filed under NACE 2.1 is counted where the official 2.1 to Rev. 2 correspondence puts its code (t-5yjh) (first 200 characters are used)
status_codequeryExact register status, one or several separated by commas: active, restructuring, suspended, liquidation, bankruptcy, deregistered, removed_from_source. Without status it covers every status; with status both must hold
legal_formqueryLegal form category, the values of `type` in the rows: llc, jsc, partnership, sole_trader, association, foundation, branch, public_body, other
placequeryCity, municipality or county: its register name in any language (case and accents do not matter) or its place id. A company counts in its place and in the municipality and county around it (first 200 characters are used)
min_employeesqueryAt least this many employees
max_employeesqueryAt most this many employees (a company without the figure is left out)
year_foundedqueryYear of incorporation, e.g. 2023
founded_fromqueryRegistered on or after: YYYY, YYYY-MM or YYYY-MM-DD
founded_toqueryRegistered on or before: YYYY, YYYY-MM or YYYY-MM-DD (inclusive)
min_revenuequeryAt least this annual revenue, EUR
max_revenuequeryAt most this annual revenue, EUR (without the figure: left out)
min_profitqueryAt least this annual net profit, EUR
max_profitqueryAt most this annual net profit, EUR (without the figure: left out)
has_vatqueryOnly companies with a VAT code. Send `true`.
has_websitequeryOnly companies whose contacts.websites is not empty. Send `true`. A contact hidden on request after the data release still counts here until the next release; it is never shown
has_emailqueryOnly companies whose contacts.emails is not empty. Send `true`. A contact hidden on request after the data release still counts here until the next release; it is never shown
has_phonequeryOnly companies whose contacts.phones is not empty. Send `true`. A contact hidden on request after the data release still counts here until the next release; it is never shown
sortquerySort order, default employees_desc; another value is refused with 400 (t-7d0n: sort=revenue used to fall back to employees_desc silently). employees_desc, revenue_desc, founded_asc and founded_desc work on any list; employees_asc, profit_desc, name_asc and name_desc need a list small enough to order exactly (add q or nace), else 400
pagequeryPage number, 1-100 (values above are clamped); for a longer list follow next_cursor
cursorquerynext_cursor of the previous page (opaque; lists without q): walks the whole list, every company once, with no page limit. A cursor holds until the next data release
limitqueryResults per page, an integer 1-50, default 20; another value is refused with 400, as on the section routes
localequeryLanguage of display labels: en (default), lt, lv, ee, ru
Vastused
OlekKirjeldus
200Companies matching the query
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED)
403Invalid or disabled API key
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it

GET /api/v1/companies/{country}/{id}

Üks ettevõte registrikoodi järgi

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
Vastused
OlekKirjeldus
200The company
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED)
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/history

Ettevõtte kogu ajalugu: töötajad, palgad ja maksud kuude, kvartalite ja aastate kaupa ning kõik majandusaasta aruanded

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
Vastused
OlekKirjeldus
200Every period and annual report, as each source filed it
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED)
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

POST /api/v1/auth/register

Tasuta API võti (üks e-posti aadressi kohta): võti tuleb kirjas oleva lingiga

Vastused
OlekKirjeldus
202Link mailed; open it to get the key, shown once on that page
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED)
409Conflict
415Content-Type is not application/json
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)

GET /api/v1/auth/usage

Võtme X-API-Key pakett ja kasutus (ei arvestata)

Vastused
OlekKirjeldus
200Usage this month
401No API key
403Invalid or disabled API key

GET /api/v1/companies/{country}/{id}/procurement

Riigihanked, mille ettevõte tarnijana võitis, uuemad eespool

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/courts

LV tsiviil- ja halduskohtute lahendid, kus ettevõte on pool

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/subsidies

Ettevõtte saadud toetused ja riigiabi, uuemad eespool

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/licences

Ettevõtte load ja litsentsid

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/vacancies

Ettevõtte tööpakkumised (LT), uuemad eespool

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/names

Ettevõtte praegune ja varasemad nimed

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/reports

Esitatud aruanded iga majandusaasta kohta, uuemad eespool

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/periods

Töötajate arv, palgad ja maksud kuude, kvartalite ja aastate kaupa

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/activities

NACE tegevusalad: praegused (põhitegevus eespool), siis varasemad

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/trademarks

Ettevõtte kaubamärgid

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/statuses

Ettevõtte ametlikud staatused

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/charter

Tegevusala tekst põhikirjast

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/signals

Esitatud arvudest arvutatud signaalid

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/ratios

Finantssuhtarvud aastate kaupa koos sektori protsentiilidega

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/checks

Tehingupartneri kontroll: täidetud punktid

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/public_money

Riigihanked ja toetused aastate kaupa: summad ja arv

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/top_buyers

Ettevõtte suurimad avaliku sektori ostjad

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/risk_events

Riskisündmused, avatud eespool

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/ratings

Ametlike allikate antud ettevõtte hinnangud

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/notices

Ettevõtte kohta avaldatud teadaanded, uuemad eespool

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/changes

Registrikande muudatused, uuemad eespool

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/status_history

Registristaatuse kõik versioonid, uuemad eespool

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/address_history

Ettevõtte aadresside kõik versioonid, uuemad eespool

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/capital_history

Osakapitali kõik versioonid, uuemad eespool

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/company_roles

Ettevõtted, mis omavad, kontrollivad või juhivad ettevõtet (praegused ja varasemad)

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/person_roles

Praegused juhid ja osanikud, kes on füüsilised isikud (EE, LV; võti nõustutud Tingimustega)

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/companies/{country}/{id}/similar

Sarnased ettevõtted: sama riik ja NACE klass, eespool sama suuruse ja linnaga

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
id *pathRegistration code
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque). A cursor holds until the next data release; then the answer is 400 CURSOR_STALE: start the section again from the first page (without cursor)
Vastused
OlekKirjeldus
200One page of the section, with total and sources
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED); CURSOR_STALE: a cursor of an earlier data release, start the section again from the first page
403Invalid or disabled API key
404No such company
410Removed
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/stats/{country}/{kind}

Riigi statistika tegevusala, koha, koha ja tegevusala või õigusliku vormi kaupa

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
kind *path
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque); it holds until the next data release (then 400 CURSOR_STALE: start again without cursor)
langqueryLanguage of the labels (industry, place, company display)
Vastused
OlekKirjeldus
200One page of statistics rows
400Invalid parameter (an unknown one too); CURSOR_STALE: a cursor of an earlier data release, start again from the first page
403Invalid or disabled API key
404No such company
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/stats/{country}

Üks statistikavõti tervikuna: osakaalud, mediaanid, registreerimised ja sulgemised aastate kaupa, tegevusala võrdlused

Parameetrid
NimiAsukohtKirjeldus
country *pathlt, lv or ee
nacequeryNACE section letter or division (2 digits)
placequeryPlace id (place.id of a statistics row)
formqueryLegal form category (form of a statistics row); alone
langqueryLanguage of the labels (industry, place, company display)
Vastused
OlekKirjeldus
200The figures of the key
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED)
403Invalid or disabled API key
404No statistics or benchmarks for this key
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/feeds/{feed}/{country}

Päevas registreeritud või suletud ettevõtted, uuemad eespool

Parameetrid
NimiAsukohtKirjeldus
feed *path
country *pathlt, lv or ee
fromqueryFirst day (yyyy-mm-dd); alone: up to the last day of the feed
toqueryLast day (yyyy-mm-dd); at most 31 days after from
limitqueryItems per page, 1..100 (default 20)
cursorquerynext_cursor of the previous page (opaque); it holds until the next data release (then 400 CURSOR_STALE: start again without cursor)
langqueryLanguage of the labels (industry, place, company display)
Vastused
OlekKirjeldus
200One page of the feed
400Invalid parameter (an unknown one too); CURSOR_STALE: a cursor of an earlier data release, start again from the first page
403Invalid or disabled API key
404No such company
429Monthly plan limit (LIMIT_EXCEEDED, with upgrade_url and account_url) or keyless per-IP quota exceeded (LIMIT_EXCEEDED), or over 5 requests a second per IP address (RATE_LIMITED, Retry-After 2 s)
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

GET /api/v1/datasets

Andmete ametlikud allikad ja andmeväljalase (ei arvestata)

Parameetrid
NimiAsukohtKirjeldus
countryquerylt, lv or ee (with the EU-wide sources); all if empty
Vastused
OlekKirjeldus
200Every dataset
400Invalid parameter, the key sent in the URL (KEY_IN_QUERY), or the Terms not accepted (TERMS_NOT_ACCEPTED)
403Invalid or disabled API key
500Internal error; quote requestId when reporting it
503Database temporarily unavailable; retry

Vead

400 BAD_REQUEST

A parameter is missing or malformed; invalid_params names it.

400 VALIDATION_FAILED

A parameter has a value the operation does not accept.

400 CURSOR_STALE

The page cursor belongs to an older data release: start the list again.

400 TERMS_NOT_ACCEPTED

A key is issued only with the Terms accepted: send "accept_terms": true.

400 KEY_IN_QUERY

The API key was sent in the URL. Send it in the X-API-Key header.

401 UNAUTHORIZED

No API key where the operation needs one.

403 INVALID_KEY

The API key is not known. Check it in your account, or get a free key.

403 KEY_DISABLED

The API key was disabled. Your account lists your active keys.

403 FORBIDDEN

The plan of this key has no access to this operation.

404 NOT_FOUND

No such company or resource.

410 GONE

The company is no longer shown (removed or hidden on request).

409 KEY_EXISTS

A free key was already issued for this e-mail address; your account shows it.

413 PAYLOAD_TOO_LARGE

The request body is too large.

415 UNSUPPORTED_MEDIA_TYPE

Send the request body as application/json.

429 LIMIT_EXCEEDED

The monthly limit of the key is used up (API and MCP share it), or the keyless quota of your address. The counter resets at 00:00 UTC on the 1st of the month: resetDate, X-RateLimit-Reset and Retry-After say when. The answer names where to go on: upgrade_url (the plans, while paid plans are sold; detail names the next plan with its limit and price), account_url (your account: keys, usage, plan) and usage_url; the same links are in the Link header. From 80 % of the month, answers carry an X-RateLimit-Warning header (MCP: a quota_notice field) before the limit is reached.