# Latvia Company Registry Scraper (`scrapers_lat/latvia-companies-scraper`) Actor

Look up Latvian companies by name or registration number and export their full profile: legal form, status, registered address, board members and officers, beneficial owners, shareholders and equity capital. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/scrapers\_lat/latvia-companies-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $12.75 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

[![Latvia Company Registry Scraper](https://scrapers.lat/banners/latvia-companies-scraper.png)](https://console.apify.com/actors/hheNsp61amj4McTP1/input)

## Latvia Company Registry Scraper

Here is one real result, with every field the actor returns:

```json
{
  "name": "Akciju sabiedrība \"Kurzemes degviela\"",
  "regNumber": "40003229495",
  "status": "Active",
  "legalForm": "Akciju sabiedrība",
  "legalFormCode": "AS",
  "registerType": "Komercreģistrs",
  "registeredDate": "1994-11-22",
  "terminatedDate": null,
  "address": "Saldus nov., Saldus pag., \"Torņi\"",
  "postalIndex": "3862",
  "sepaCode": "LV92ZZZ40003229495",
  "officerCount": 1,
  "primaryOfficerName": "Lūsiņš Argods",
  "primaryOfficerRole": "Chair Of Board",
  "officers": ["Lūsiņš Argods - Chair Of Board"],
  "beneficialOwnerCount": 2,
  "primaryBeneficialOwner": "Argods Lūsiņš",
  "primaryBeneficialOwnerNationality": "LV",
  "beneficialOwners": ["Argods Lūsiņš - LV", "Antra Lūsiņa - LV"],
  "shareholderCount": 0,
  "shareholders": [],
  "capitalAmount": 2176655.4,
  "capitalCurrency": "EUR",
  "capitalType": "Apmaksātais pamatkapitāls",
  "financialYear": null,
  "employees": null,
  "revenue": null,
  "profitBeforeTax": null,
  "netIncome": null,
  "financialsCurrency": null,
  "matchedBy": "registrationNumber",
  "sourceQuery": "40003245752, 40003229495",
  "source": "Latvia Enterprise Register",
  "observedAt": "2026-07-16T16:45:46.109Z",
  "error": null
}
```

> Note: in the source, each `officers` and `beneficialOwners` string joins the name and role/nationality with a long dash (for example `Lūsiņš Argods [dash] Chair Of Board`). It is shown here as a hyphen (`-`); the names and roles are unchanged. This company had no annual report on file, so the financial fields are genuinely `null`.

The most complete Latvia company registry scraper available. It returns every field the Latvian Enterprise Register exposes per company, including officers, beneficial owners (UBO), shareholders, share capital and the latest annual-report financials, plus optional contact enrichment, searchable by name or registration number.

**📥 [Input](https://apify.com/scrapers_lat/latvia-companies-scraper/input-schema) · 📤 [Output](https://apify.com/scrapers_lat/latvia-companies-scraper/output-schema) · 💰 [Pricing](https://apify.com/scrapers_lat/latvia-companies-scraper/pricing) · ▶️ [Examples](https://apify.com/scrapers_lat/latvia-companies-scraper/examples)**

![Apify](https://img.shields.io/badge/Platform-Apify-1CE1CE?logo=apify\&logoColor=white)
![Coverage](https://img.shields.io/badge/Coverage-Latvia-blue)
![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange)
![Billing](https://img.shields.io/badge/Billing-Pay%20per%20result-brightgreen)

### Table of contents

- [What it does](#what-it-does)
- [Quickstart](#quickstart)
- [Input reference](#input-reference)
- [Output reference](#output-reference)
- [Example output record](#example-output-record)
- [Run via API and CLI](#run-via-api-and-cli)
- [Fetch results](#fetch-results)
- [Billing and limits](#billing-and-limits)
- [FAQ and troubleshooting](#faq-and-troubleshooting)

### What it does

The actor searches the Latvian Enterprise Register (Uzņēmumu reģistrs) for each company name or registration number you pass, and writes one normalized record per company to the run's dataset. Each record includes the legal name, registration number, status, legal form, register type, registered and terminated dates, address and SEPA creditor ID, plus the full officer list, beneficial owners (UBO) with nationality, shareholders, share capital, and the latest annual-report financials (year, employees, revenue, profit before tax, net income). Missing source values are returned as `null`.

An optional contact-enrichment add-on (`enrichContacts`, paid) attempts to find a public business email and contact person for results without one, billed only when an email is found.

### Quickstart

Open the actor, paste this into the input, and press Run. It looks up Swedbank in the Latvian register.

```json
{
  "companyNames": ["Swedbank"],
  "maxCompanies": 10
}
```

For exact, fast lookups pass registration numbers directly in `registrationNumbers` (for example `40003245752`). You can combine names and registration numbers in a single run.

### Input reference

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `companyNames` | string\[] | no | `["Swedbank"]` | Company names or name fragments to search for. One run searches every name in the list. |
| `registrationNumbers` | string\[] | no | (empty) | Exact Latvian registration numbers (regcode) to fetch, for example `40003245752`. Fastest and most precise. |
| `maxCompanies` | integer | no | `20` | Maximum companies to return across the whole run. |
| `enrichContacts` | boolean | no | `false` | Paid add-on. For results without an email, attempt to find a public business email and contact name. Billed per attempt, plus extra when an email is found. |
| `enrichContactsMax` | integer | no | `50` | Cap how many results the enrichment add-on tries. Free Apify accounts are capped at 3. |

### Output reference

One dataset item per company. Types: `string`, `integer`, `number`, `string[]`, or `null` when the source value is absent.

| Field | Type | Description |
|---|---|---|
| `name` | string | Company name. |
| `regNumber` | string | Registration number (regcode). |
| `status` | string | Company status, for example `Active`, `Terminated`. |
| `legalForm` | string | Legal form name. |
| `legalFormCode` | string | Legal form code, for example `AS`, `SIA`, `FIL`. |
| `registerType` | string | Register the company sits in, for example `Komercreģistrs`. |
| `registeredDate` | string | Registration date (`YYYY-MM-DD`). |
| `terminatedDate` | string | Termination date, or `null` if active. |
| `address` | string | Registered address. |
| `postalIndex` | string | Postal index. |
| `sepaCode` | string | SEPA creditor ID, or `null`. |
| `officerCount` | integer | Number of officers / board members. |
| `primaryOfficerName` | string | Primary officer name. |
| `primaryOfficerRole` | string | Primary officer role. |
| `officers` | string\[] | Officers / board members (name and role). |
| `beneficialOwnerCount` | integer | Number of beneficial owners (UBO). |
| `primaryBeneficialOwner` | string | Primary beneficial owner name. |
| `primaryBeneficialOwnerNationality` | string | Primary beneficial owner nationality (ISO code). |
| `beneficialOwners` | string\[] | Beneficial owners (name and nationality). |
| `shareholderCount` | integer | Number of shareholders. |
| `shareholders` | string\[] | Shareholders. |
| `capitalAmount` | number | Share capital amount, or `null`. |
| `capitalCurrency` | string | Share capital currency, for example `EUR`. |
| `capitalType` | string | Capital type. |
| `financialYear` | integer | Year of the latest filed annual report, or `null`. |
| `employees` | integer | Employees in the latest annual report, or `null`. |
| `revenue` | number | Net turnover for the latest reported year, or `null`. |
| `profitBeforeTax` | number | Income before taxes for the latest reported year, or `null`. |
| `netIncome` | number | Net income (profit or loss) for the latest reported year, or `null`. |
| `financialsCurrency` | string | Currency of the reported financials. |
| `matchedBy` | string | How the record matched: `companyName` or `registrationNumber`. |
| `sourceQuery` | string | The query that produced this record. |
| `source` | string | Data source. Always the Latvia Enterprise Register. |
| `observedAt` | string | ISO 8601 timestamp of when the record was collected. |
| `enrichedEmail` | string | Public business email found by the enrichment add-on, or `null`. |
| `enrichedContactName` | string | Contact person name found, or `null`. |
| `enrichedJobTitle` | string | Contact job title, or `null`. |
| `enrichedEmailStatus` | string | Email confidence: `verified`, `likely`, `guessed`, or `not_found`. |
| `enrichedSource` | string | Where the enriched contact was found, or `null`. |
| `enrichedConfidence` | number | Enrichment confidence score, or `null`. |
| `error` | string | `null` on success. On a failed run, a single item with a populated `error` field is written instead. |

### Example output record

Real record from a live run (input `{"companyNames":["airBaltic"],"registrationNumbers":["40003245752","40003229495"],"maxCompanies":10}`). The `officers` and `beneficialOwners` strings joined name and role with a long dash in the source; shown here as a hyphen.

```json
{
  "name": "Akciju sabiedrība \"Kurzemes degviela\"",
  "regNumber": "40003229495",
  "status": "Active",
  "legalForm": "Akciju sabiedrība",
  "legalFormCode": "AS",
  "registerType": "Komercreģistrs",
  "registeredDate": "1994-11-22",
  "terminatedDate": null,
  "address": "Saldus nov., Saldus pag., \"Torņi\"",
  "postalIndex": "3862",
  "sepaCode": "LV92ZZZ40003229495",
  "officerCount": 1,
  "primaryOfficerName": "Lūsiņš Argods",
  "primaryOfficerRole": "Chair Of Board",
  "officers": ["Lūsiņš Argods - Chair Of Board"],
  "beneficialOwnerCount": 2,
  "primaryBeneficialOwner": "Argods Lūsiņš",
  "primaryBeneficialOwnerNationality": "LV",
  "beneficialOwners": ["Argods Lūsiņš - LV", "Antra Lūsiņa - LV"],
  "shareholderCount": 0,
  "shareholders": [],
  "capitalAmount": 2176655.4,
  "capitalCurrency": "EUR",
  "capitalType": "Apmaksātais pamatkapitāls",
  "matchedBy": "registrationNumber",
  "sourceQuery": "40003245752, 40003229495",
  "source": "Latvia Enterprise Register",
  "observedAt": "2026-07-16T16:45:46.109Z",
  "error": null
}
```

### Run via API and CLI

Start a run and wait for it to finish, then read the dataset. Replace `<TOKEN>` with your Apify API token.

Run synchronously and get dataset items in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~latvia-companies-scraper/run-sync-get-dataset-items?token=%3CTOKEN%3E" \
  -H "Content-Type: application/json" \
  -d '{"registrationNumbers":["40003245752"],"maxCompanies":10}'
```

Start a run asynchronously:

```bash
curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~latvia-companies-scraper/runs?token=%3CTOKEN%3E" \
  -H "Content-Type: application/json" \
  -d '{"companyNames":["Air Baltic","Swedbank"],"maxCompanies":50}'
```

Apify CLI:

```bash
apify call scrapers_lat/latvia-companies-scraper \
  --input '{"companyNames":["Swedbank"],"maxCompanies":10}'
```

### Fetch results

Every run writes to a dataset. Fetch items as JSON, CSV, or Excel by changing `format`:

```bash
## JSON
curl "https://api.apify.com/v2/datasets/%3CDATASET_ID%3E/items?token=%3CTOKEN%3E&clean=true&format=json"

## CSV
curl "https://api.apify.com/v2/datasets/%3CDATASET_ID%3E/items?token=%3CTOKEN%3E&clean=true&format=csv"

## Paginate large datasets
curl "https://api.apify.com/v2/datasets/%3CDATASET_ID%3E/items?token=%3CTOKEN%3E&offset=1000&limit=1000"
```

`<DATASET_ID>` is returned as `defaultDatasetId` in the run object. Use `offset` and `limit` to page through large result sets. `clean=true` drops empty and internal fields.

### Billing and limits

- **Pay per result.** You are charged per company record returned (`result` event). See the [pricing tab](https://apify.com/scrapers_lat/latvia-companies-scraper/pricing) for the current per-result price.
- **Add-on billed separately.** Contact enrichment is billed per attempt plus extra when an email is found.
- **No charge on failure.** If a run errors, the actor writes a single item with a populated `error` field and does not charge for it. Empty runs cost nothing.
- **Spend cap respected.** Set `maxTotalChargeUsd` on the run; once reached, the actor stops emitting and charging further billable results.
- **Free Apify plans** are capped at 10 records per run, and contact enrichment is capped at 3 attempts. Upgrade for higher `maxCompanies` and full enrichment.

### FAQ and troubleshooting

**A run returned 0 records. Why?**
The name or registration number matched nothing in the register. Check spelling, try a shorter name fragment, or use the exact regcode. Zero-result runs are not charged.

**What is the fastest way to pull specific companies?**
Pass their registration numbers in `registrationNumbers`. This skips the name search and matches exactly.

**Do I get beneficial owners (UBO)?**
Yes. `beneficialOwners`, `beneficialOwnerCount`, `primaryBeneficialOwner` and the nationality are captured for KYB and compliance workflows.

**Why are the financial fields null?**
The company had no annual report on file for a recent year. Financials populate when a filed annual report is available. Missing values are returned as `null`, never invented.

**Can I get a contact email?**
Turn on `enrichContacts` (paid). For each result without an email, the add-on attempts to find a public business email and contact name, with an `enrichedEmailStatus` confidence label.

**Is this an official register tool?**
No. This actor is independent and has no affiliation with the Latvian Enterprise Register. It reads only data the register publishes publicly. Use it in accordance with the register's terms.

### Related scrapers

- [Belgium KBO Companies Scraper](https://apify.com/scrapers_lat/belgium-kbo-companies-scraper): Belgian company register with officers and addresses.
- [Denmark CVR Companies Scraper](https://apify.com/scrapers_lat/denmark-cvr-companies-scraper): Danish company register with owners and financials.
- [Finland Companies Scraper](https://apify.com/scrapers_lat/finland-companies-scraper): Finnish business register profiles.

### More scrapers at scrapers.lat

Built and maintained by [scrapers.lat](https://scrapers.lat), where we publish scrapers for US and Latin American public platforms: company registries, government data, finance, e-commerce and more. Browse the catalog or request a custom scraper at [scrapers.lat](https://scrapers.lat).

***

> Independent tool, not affiliated with the Latvian Enterprise Register. Accesses only publicly available register data. Use in accordance with the register's terms.

# Actor input Schema

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

Company names (or parts of a name) to search for in the Latvian company register. One run searches every name in the list. Example: 'Swedbank', 'Air Baltic'.

## `registrationNumbers` (type: `array`):

Exact Latvian registration numbers (regcode) to fetch, e.g. '40003245752'. Fastest and most precise way to pull specific companies.

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

Maximum number of companies to return across the whole run. Optional.

## `enrichContacts` (type: `boolean`):

Optional paid add-on, off by default. For each result without an email, attempt to find a public business contact email and a contact person's name. Billed per attempt, plus an extra charge only when an email is found.

## `enrichContactsMax` (type: `integer`):

Cap how many results the add-on tries to enrich, to control add-on cost. Leave empty to attempt all. Free Apify accounts are capped at 3.

## Actor input object example

```json
{
  "companyNames": [
    "Swedbank"
  ],
  "registrationNumbers": [],
  "maxCompanies": 20,
  "enrichContacts": false,
  "enrichContactsMax": 50
}
```

# 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": [
        "Swedbank"
    ],
    "registrationNumbers": [],
    "maxCompanies": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers_lat/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": ["Swedbank"],
    "registrationNumbers": [],
    "maxCompanies": 20,
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapers_lat/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/hheNsp61amj4McTP1/builds/wP7RUnET05znxhHCt/openapi.json
