# Estonia and Latvia Company Registers (`darikami/estonia-latvia-company-registers`) Actor

Companies and organisations of Estonia and Latvia from the official registers' daily open data, in one shape: registry code, name, legal form, status, registration date, address, Estonian VAT number. Filter by country, name, status, legal form, date. Look up by registry code.

- **URL**: https://apify.com/darikami/estonia-latvia-company-registers.md
- **Developed by:** [DARIKAMI GmbH](https://apify.com/darikami) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 company delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Estonia and Latvia Company Registers

**Companies and organisations of Estonia and Latvia from the official registers' daily open data, in one shape (about 870,000 rows on 2026-11-06).**
Each item has the registry code, the name, the legal form, the status, the registration date, the address and, for Estonia, the VAT number.
**USD 0.002 per entity (USD 2 per 1,000).** Filter by country, name words, status, legal form and registration date, or look up registry codes. You pay only for the entities delivered.

| Country | Registry code | Name | Legal form | Registered |
|---|---|---|---|---|
| EE | 17639226 | 4Resto OÜ | Osaühing | 2026-11-03 |
| LV | 40008365224 | ReLife | Biedrība | 2026-11-01 |

The rows come from a real cloud run of 2026-11-06: a lookup of two registry codes, one per country. The full item is under Output.

### Who uses it

- **B2B sales and lead generation:** the companies registered in the last days or weeks, by country and legal form.
- **KYB and onboarding checks:** look up a registry code and read the name, the status and the address.
- **Market research:** the number and kind of entities by country, status or legal form.

### What it does not do

- Only the basic data of each register. No directors, shareholders, beneficial owners, annual reports or industry codes.
- Sole traders and one-person businesses are not returned: the Estonian "Füüsilisest isikust ettevõtja" and the Latvian IK, IND, ZEM, ZVJ, GIM and PRV.
- Estonia lists entities in the register (registered, in liquidation, in bankruptcy). Latvia also lists closed entities.
- Lithuania is not included.
- A search reads a file from the start. A run that asks for few results stops early. A search over both files takes a few minutes.

### Input

```json
{
  "countries": ["EE", "LV"],
  "query": "bank",
  "statuses": ["active"],
  "legalForms": ["SIA", "Osaühing"],
  "registeredFrom": "2026-10-01",
  "registeredTo": "2026-10-31",
  "maxResults": 1000
}
```

All fields are optional. An empty input returns the first 1,000 active entities.

| Field | What it does |
|---|---|
| `countries` | `EE`, `LV`. Empty: both. |
| `query` | Words of the name. Each word must start a word of the name. Case and accents are ignored. |
| `statuses` | `active` (the default for a search), `liquidation`, `bankruptcy`, `closed`, `other`. A lookup by registry code returns every status unless you set some. |
| `legalForms` | The legal form code (Latvia `SIA`, `AS`, `BDR`) or the start of the legal form text (`Osaühing`, `Aktsiaselts`, `Sabiedrība`). |
| `registeredFrom`, `registeredTo` | The registration date, both days included (YYYY-MM-DD). |
| `registryCodes` | Look up these entities: Estonia 8 digits, Latvia 11. Set `countries` too for a faster lookup. |
| `maxResults` | The run stops after this number of entities. Default 1,000. |

An entity must pass every filter that you set.
A code that is not found comes back as a free `not-found` item. A code of a sole trader, or of a legal form the actor does not know, comes back as a free `withheld` item.
Up to 5,000 codes per run.

### Output

One item per entity:

```json
{
  "id": "EE-17639226",
  "country": "EE",
  "registryCode": "17639226",
  "name": "4Resto OÜ",
  "legalForm": "Osaühing",
  "legalFormCode": null,
  "status": "active",
  "statusDetail": null,
  "registeredDate": "2026-11-03",
  "closedDate": null,
  "address": "Harju maakond, Tallinn, Lasnamäe linnaosa, Peterburi tee 2",
  "postalCode": "11415",
  "vatNumber": null,
  "registryUrl": "https://ariregister.rik.ee/est/company/17639226",
  "fileDate": "2026-11-06",
  "source": "Centre of Registers and Information Systems (RIK), e-Business Register open data (avaandmed.ariregister.rik.ee), Creative Commons Attribution 4.0."
}
```

- `id`: the country and the registry code.
- `status`: `active`, `liquidation`, `bankruptcy`, `closed` or `other` (a status code the actor does not know). `statusDetail` carries the register's own word (Estonia) or `liquidated`, `reorganised`, `removed from the register` (Latvia).
- `legalFormCode`: the Latvian type code (`SIA`). Estonia gives the text only.
- `closedDate`: Latvia only, the date the entity left the register.
- `vatNumber` and `registryUrl`: Estonia only, where the register gives them.
- `fileDate`: the day the register wrote the file.

### Pricing (pay per event)

| Event | Price | When |
|---|---|---|
| `company` | **USD 0.002** | one entity that matched your filters or codes, pushed to the dataset |

Free: rows that your filters drop, sole traders, error items, `not-found` and `withheld` items and the note "nothing matched".
1,000 entities cost USD 2.
You pay no more than the maximum charge that you set for a run.

### Personal data

- The files hold entities. They name no director, shareholder or contact person, and the actor reads none.
- The actor returns a fixed list of legal forms. Sole traders, one-person farms, family businesses, personal representatives and forms not on the list are removed. About 128,000 of 870,000 rows on 2026-11-06.
- A company name can contain a person's name. A company is a legal person, and the register publishes its name.

### Data source and terms

- **Estonia:** e-Business Register open data of the Centre of Registers and Information Systems (RIK), `https://avaandmed.ariregister.rik.ee` (read 2026-11-06), file "Basic data of the entities": "In certain cases, it is possible for companies and organizations to reuse public information, that is, to use it for some other commercial or non-commercial purpose than the original purpose of collecting the information." The site's "License information" link leads to the Creative Commons Attribution 4.0 licence. RIK's conditions of use (`https://www.rik.ee/en/asutusest/kasutustingimused`, read 2026-11-07) define open data as "freely and openly available to the public, with no restrictions preventing their use and distribution", and their limit on extracting a substantial part of a database "does not apply to the use of a set of open data". The site asks you to respect the GDPR.
- **Latvia:** Register of Enterprises, open data at `https://dati.ur.gov.lv/register/register.csv`; the dataset on data.gov.lv carries the licence CC0 1.0 (read 2026-11-06).
- Every item names its source. The actor maps and filters the rows: it changes the form, not the content.
- This actor is not endorsed by the registers. It is provided without warranty. For an official extract, use the register itself.

### Reliability

A run fails with exit code 1 and an `ERROR` line in the log in these cases:

- a file cannot be downloaded or breaks off;
- a file has a changed format (a column is missing);
- a file holds far fewer rows than before.

The entities found until then stay in the dataset.
The run summary is in the default key-value store under `SUMMARY`, the counts under `STATS`.

**More official-data actors by darikami:** [European company registers](https://apify.com/darikami/european-company-registers) · [Swedish company register](https://apify.com/darikami/swedish-company-register) · [Canada corporations](https://apify.com/darikami/canada-corporations) · [French company search](https://apify.com/darikami/french-company-search).
In an AI agent: ask the Apify MCP server (`mcp.apify.com`) for `darikami/estonia-latvia-company-registers`.

# Actor input Schema

## `countries` (type: `array`):

Which registers to read. Empty: both. A lookup by registry code is faster with the country set.

## `query` (type: `string`):

Words of the entity's name. Each word must start a word of the name; case and accents are ignored. Empty: every name.

## `statuses` (type: `array`):

Empty: active only - or every status for a lookup by registry code. Estonia lists entities in the register; Latvia lists closed ones too.

## `legalForms` (type: `array`):

Keep entities whose legal form code equals one of these (Latvia: SIA, AS, BDR) or whose legal form text starts with one (for example Osaühing, Aktsiaselts, Sabiedrība). Case and accents are ignored.

## `registeredFrom` (type: `string`):

First registration date (YYYY-MM-DD), included.

## `registeredTo` (type: `string`):

Last registration date (YYYY-MM-DD), included.

## `registryCodes` (type: `array`):

Look up these entities (Estonia 8 digits, Latvia 11; a prefix such as EE is accepted). A code that is not found comes back as a free not-found item. Up to 5,000.

## `maxResults` (type: `integer`):

The run stops after this number of entities.

## Actor input object example

```json
{
  "query": "bank",
  "maxResults": 1000
}
```

# Actor output Schema

## `results` (type: `string`):

One item per entity: country, registry code, name, legal form, status, registration date, address.

## `summary` (type: `string`):

SUMMARY record: pushed, charged, attempts, errors, stoppedByBudget, ok, message.

## `stats` (type: `string`):

STATS record: the files read (country, date, bytes, rows, complete), rows, sole traders withheld, matched, emitted, charged, codes not found.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "bank"
};

// Run the Actor and wait for it to finish
const run = await client.actor("darikami/estonia-latvia-company-registers").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "query": "bank" }

# Run the Actor and wait for it to finish
run = client.actor("darikami/estonia-latvia-company-registers").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "bank"
}' |
apify call darikami/estonia-latvia-company-registers --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,darikami/estonia-latvia-company-registers"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2dfgycZBXtdaMRWPS/builds/oq2QrTdcpfJEUc7g6/openapi.json
