# Latvia Companies Scraper: Register of Enterprises Data (`datadesk-io/latvia-companies-scraper`) Actor

Scrape Latvian companies from the official Register of Enterprises open data: registration code, name, legal form, address, registration date and status. Filter by name, form, city, dates. New-company lead lists. $1 per 1,000.

- **URL**: https://apify.com/datadesk-io/latvia-companies-scraper.md
- **Developed by:** [DataDesk](https://apify.com/datadesk-io) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 companies

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Latvia Companies Scraper

Build Latvian **company lead lists** from the **Register of Enterprises of the Republic of Latvia** open data (data.gov.lv). Each record has **registration code, name, legal form, register, address, postal index, registration date, termination date, status and SEPA creditor id**. Search by **name, registration code, legal form, address text and registration date**. Newest companies first. No login, no key. **$1 per 1,000 companies.**

### Try it now (one click)

1. Click **Start**. The prefilled input is a small test: in our latest check (Nov 13, 2026) it returned **4 companies in about 1 second**.
2. Change the input to what you need (search terms, filters, max results).
3. Download the results as CSV, Excel or JSON, or get them via API, webhooks, Make or Zapier.

**Price example:** 100 companies = **$0.105**, 1,000 companies = **$1.005** ($1.00 per 1,000 companies + $0.005 per run). Silver and Gold plan users pay 10% and 20% less per company. Apify's free plan includes $5 of usage every month, enough for about 4,995 companies. Runs that find nothing are not charged.

#### Sample of real results

*Real rows from a local test run on Nov 13, 2026 (some columns). Each company also includes a link to the source and the other fields listed below.*

| Name | Reg code | Legal form | Address | Registered at |
|---|---|---|---|---|
| Sabiedrība ar ierobežotu atbildību "Rimis" | 40203619493 | Sabiedrība ar ierobežotu atbildību | Jelgavas nov., Svētes pag., Svēte, Armijas… | 2025-01-23 |
| SIA "RIMI BALTIC" | 40003592957 | Sabiedrība ar ierobežotu atbildību | Rīga, Augusta Deglava iela 161 | 2002-06-04 |
| RIMI Logistics SIA | 40003275102 | Sabiedrība ar ierobežotu atbildību | Rīga, Augusta Deglava iela 161 | 1995-12-05 |

### What you get

| Field group | Fields |
|---|---|
| Identity | regCode, name, legalFormCode, legalForm, register, sepaId |
| Location | address, postalIndex |
| Status and dates | status, closedCode, registeredAt, terminatedAt |
| Link | url |

### Sources and coverage

| Source | Coverage | Data |
|---|---|---|
| **Register of Enterprises** (`data.gov.lv`) | All Latvian legal entities, open data (CC0) | Identity, address, form, status |

### How to use it

1. Click **Try for free** (or **Start**): the prefilled input runs a quick test.
2. Adjust the filters (see examples below).
3. Click **Start** and wait a few seconds.
4. Open the **Output** tab and export as **JSON, CSV, Excel, XML or HTML**, or read the dataset via API.

### Input examples

**Search by name:**

```json
{"companyNames": ["Rimi"], "maxCompanies": 20}
```

**New SIA in Riga this year:**

```json
{"legalFormCodes": ["SIA"], "addressContains": "Rīga", "registeredAfter": "2026-01-01", "maxCompanies": 1000}
```

**Look up codes:**

```json
{"regCodes": ["40003520643"]}
```

#### Input fields

| Field | Type | Description |
|---|---|---|
| `companyNames` | array | Free-text search in the name, e.g. Rimi, Latvijas, tech. |
| `regCodes` | array | 11-digit Latvian registration numbers to look up directly. |
| `legalFormCodes` | array | e.g. SIA (limited liability), AS (joint stock), IK (sole trader), BDR (association). |
| `addressContains` | string | Keep only companies whose address contains this text, e.g. Rīga. |
| `registeredAfter` | string | Only companies registered on or after YYYY-MM-DD. |
| `registeredBefore` | string | Only companies registered on or before YYYY-MM-DD. |
| `activeOnly` | boolean | Skip liquidated and closed entities. |
| `maxCompanies` | integer | Stop after this many companies. |
| `onlyNewCompanies` | boolean | Return only companies not seen in previous runs with the same alerts key. Schedule daily for alerts. |
| `alertsKey` | string | Name for this alert memory (use a different key per saved search). |

### Output example

*Example values from a local test run.*

```json
{
  "source": "ur.gov.lv",
  "regCode": "40203619493",
  "name": "Sabiedrība ar ierobežotu atbildību \"Rimis\"",
  "legalFormCode": "SIA",
  "legalForm": "Sabiedrība ar ierobežotu atbildību",
  "register": "Komercreģistrs",
  "address": "Jelgavas nov., Svētes pag., Svēte, Armijas iela 5 - 2",
  "postalIndex": 3008,
  "registeredAt": "2025-01-23",
  "terminatedAt": null,
  "status": "active",
  "closedCode": null,
  "sepaId": "LV69ZZZ40203619493",
  "url": "https://info.ur.gov.lv/#/legal-entity/40203619493"
}
```

#### Output fields

| Field | Description |
|---|---|
| `regCode` | 11-digit registration code |
| `name` | Registered name |
| `legalForm / legalFormCode` | Legal form (e.g. SIA) |
| `address` | Registered address |
| `registeredAt` | Registration date |
| `status` | active or closed |
| `url` | Official register entry |

### Pricing

Pay-per-event: **$0.005** once per run that saves results + **$0.001 per company** ($1 / 1,000). Runs that save nothing are not charged.

| Companies saved | Approx. cost |
|---|---|
| 20 | $0.025 |
| 100 | $0.105 |
| 1,000 | $1.005 |
| 10,000 | $10.005 |

### Use cases

- B2B lead lists of new Latvian companies
- Supplier and KYC checks
- Market mapping by legal form and city
- Daily alerts for new registrations

### Integrations / API

Works with the Apify API, Schedules, webhooks, Make, Zapier, n8n and MCP. Example:

```bash
curl "https://api.apify.com/v2/acts/datadesk-io~latvia-companies-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"companyNames": ["Rimi"], "maxCompanies": 20}'
```

Python:

```python
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("datadesk-io/latvia-companies-scraper").call(run_input={"companyNames": ["Rimi"], "maxCompanies": 20})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### MCP

Use this Actor from an MCP client (Cursor, Claude Desktop, etc.) through the Apify MCP server (`datadesk-io/latvia-companies-scraper`).

### Alerts mode

Turn on the **Only new** option and schedule the Actor daily: each run returns only companies not seen in earlier runs with the same alerts key (nothing is charged when there is nothing new).

### FAQ

**Do I need a key?** No. The register open data is public and the Actor calls it directly.

**Are emails, phones or financials included?** No. The open data does not publish them. Use our **website-contact-finder** once you have a company website.

**How fresh is it?** The open dataset is refreshed regularly by the Register of Enterprises, not in real time.

### Limitations

- No contact details, officers or financial data in the open dataset.
- Industry (NACE) codes are not part of this dataset.
- Address filter is applied after fetching, so very rare matches can need a larger scan.

### Start now

Click **Start** to run the prefilled example, then adjust the input. Missing a field, filter or source? Open an issue on the **Issues** tab and tell us what you need.

### Support

Questions, bugs or a missing field? Email **datadesk.io@proton.me** or open an issue on the Actor page.

***

**ES:** Extrae empresas letonas del Registro de Empresas oficial: código, forma jurídica, dirección, fecha de registro y estado. Filtros por nombre y forma. **$1 / 1.000.**
**PT:** Extrai empresas letãs do Registro de Empresas oficial: código, forma jurídica, endereço, data e status. **$1 / 1.000.**

# Actor input Schema

## `companyNames` (type: `array`):

Free-text search in the name, e.g. Rimi, Latvijas, tech.

## `regCodes` (type: `array`):

11-digit Latvian registration numbers to look up directly.

## `legalFormCodes` (type: `array`):

e.g. SIA (limited liability), AS (joint stock), IK (sole trader), BDR (association).

## `addressContains` (type: `string`):

Keep only companies whose address contains this text, e.g. Rīga.

## `registeredAfter` (type: `string`):

Only companies registered on or after YYYY-MM-DD.

## `registeredBefore` (type: `string`):

Only companies registered on or before YYYY-MM-DD.

## `activeOnly` (type: `boolean`):

Skip liquidated and closed entities.

## `maxCompanies` (type: `integer`):

Stop after this many companies.

## `onlyNewCompanies` (type: `boolean`):

Return only companies not seen in previous runs with the same alerts key. Schedule daily for alerts.

## `alertsKey` (type: `string`):

Name for this alert memory (use a different key per saved search).

## Actor input object example

```json
{
  "companyNames": [
    "Rimi"
  ],
  "regCodes": [
    "40003520643"
  ],
  "legalFormCodes": [
    "SIA"
  ],
  "addressContains": "Rīga",
  "registeredAfter": "2026-01-01",
  "activeOnly": true,
  "maxCompanies": 20,
  "onlyNewCompanies": false
}
```

# Actor output Schema

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

No description

# 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 = {
    "companyNames": [
        "Rimi"
    ],
    "maxCompanies": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datadesk-io/latvia-companies-scraper").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 = {
    "companyNames": ["Rimi"],
    "maxCompanies": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datadesk-io/latvia-companies-scraper").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 '{
  "companyNames": [
    "Rimi"
  ],
  "maxCompanies": 20
}' |
apify call datadesk-io/latvia-companies-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datadesk-io/latvia-companies-scraper"
        }
    }
}
```

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/9ox22CVJbHugvfalB/builds/UIq1kkBcx2iIxX2JA/openapi.json
