# Latvia Company Registry Scraper: Taxes & Employees (`mrslm_data/latvia-company-registry`) Actor

Latvian companies from the official Register of Enterprises (Uzņēmumu reģistrs), joined with taxes paid, average employees and VID tax-compliance rating.

- **URL**: https://apify.com/mrslm_data/latvia-company-registry.md
- **Developed by:** [MRSLM Data](https://apify.com/mrslm_data) (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

from $1.60 / 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 Company Registry Scraper: Taxes & Employees

**Latvian companies from the official Register of Enterprises, joined with taxes paid, average employees and tax-compliance rating from the tax authority (VID). $2.00 per 1,000 companies.**

Latvia publishes its company register and, unusually, each company's quarterly taxes paid and average headcount as open data. This Actor joins them, so you can rank Latvian companies by size and tax contribution in one run.

### Quick start

1. Press **Start**. The form is already filled with this example input, so the first run returns real rows in under a minute:

```json
{
  "searchTerms": [
    "software"
  ],
  "minEmployees": 5,
  "sortBy": "employees",
  "maxResults": 20
}
```

2. Swap in your own values, or call the Actor through the Apify API, Make, Zapier, n8n or the Python/JS clients with the same JSON.
3. Download the results as JSON, CSV or Excel from the **Output** tab, or schedule the run to repeat.

### Sample row (real run, trimmed)

```json
{
  "regNumber": "40103177560",
  "name": "SIA Sapiens Software Solutions (Latvia)",
  "nameInQuotes": "Sapiens Software Solutions (Latvia)",
  "entityType": "SIA",
  "entityTypeName": "Limited liability company",
  "entityTypeNameLv": "Sabiedrība ar ierobežotu atbildību",
  "register": "Komercreģistrs",
  "registeredDate": "2008-06-26",
  "terminatedDate": null,
  "active": true,
  "address": "Rīga, Gunāra Astras iela 1C",
  "postalCode": "LV-1084",
  "atvkCode": "10000",
  "sepaCreditorId": "LV52ZZZ40103177560",
  "averageEmployees": 202,
  "taxQuarter": "2026. gada 3. ceturksnis",
  "taxesPaidEur": 1226440,
  "vatPaidEur": 0,
  "vatRefundedEur": 127630,
  "personalIncomeTaxEur": 480000,
  "socialContributionsEur": 853740,
  "taxpayerRating": "A",
  "taxpayerRatingNote": "Good tax compliance",
  "registryUrl": "https://info.ur.gov.lv/#/legal-entity/40103177560/general"
}
```

Also included: name in quotes, Latvian entity type name, register, termination date, postal code, ATVK territory code, SEPA creditor ID, tax quarter, VAT paid and refunded, personal income tax and social contributions paid, and the rating explanation.

### Who uses this

- **B2B sales teams**: target Latvian companies by real headcount and tax size, not guesses.
- **Credit and compliance teams**: see the VID tax-compliance rating next to each company.
- **Analysts**: rank sectors and towns by employment and tax contribution.

### How to use it

1. Search by name or registration number, or filter by city, entity type, size and tax paid.
2. Pick a sort order: most employees or most taxes paid gives you the biggest players first.
3. Run, export, or schedule quarterly when VID publishes new figures.

### Pricing

- **Company: $2.00 per 1,000 saved** (Silver $1.80, Gold $1.60)
- Plus $0.00005 per run. You pay only for companies saved after your filters. Searches with no matches are free.

### FAQ

**Where does the data come from?** From the Register of Enterprises of the Republic of Latvia and the State Revenue Service (VID) open datasets on data.gov.lv, published under CC0.

**Is any personal data included?** Individual merchants, individual and family enterprises, and farm and fishing holdings (business forms of natural persons) are always excluded. No officer, owner or beneficial-owner data is read.

**How fresh is it?** The register is updated daily; tax and employee figures follow VID's quarterly releases.

**Can I get only new records each day?** Yes. Use the date window input and schedule the Actor; each run returns what is new in that window.

### Is it legal?

This Actor only reads official open-data APIs that the publisher offers to everyone without a login or key. It obeys robots.txt, stays under the published rate limits, and never tries to get past logins, paywalls, captchas or bot checks. Individual merchants, individual and family enterprises, and farm and fishing holdings (business forms of natural persons) are always excluded. No officer, owner or beneficial-owner data is read. You are responsible for how you use the data: follow the source's licence and terms and the privacy and marketing laws that apply to you (GDPR, CAN-SPAM, PECR, etc.). This tool is independent and not affiliated with or endorsed by the data publisher.

# Actor input Schema

## `searchTerms` (type: `array`):

Search by company name. One per line.

## `regNumbers` (type: `array`):

Exact 11-digit Latvian registration numbers.

## `cities` (type: `array`):

Town or city in the registered address, e.g. Riga, Daugavpils.

## `entityTypes` (type: `array`):

Default: all commercial forms.

## `includeNonProfits` (type: `boolean`):

Also return associations, foundations, trade unions and similar organisations.

## `registeredWithinDays` (type: `integer`):

Only companies registered in the last N days. 0 = any date.

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

Skip liquidated and excluded companies.

## `minEmployees` (type: `integer`):

Latest quarter. 0 = no minimum.

## `minQuarterlyTaxesEur` (type: `integer`):

0 = no minimum.

## `sortBy` (type: `string`):

Order of results.

## `maxResultsPerSearch` (type: `integer`):

Cap per search term (or per source). 0 = no cap.

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

Safety cap on saved companies across the whole run. 0 = no cap. Your max cost per run is always respected.

## Actor input object example

```json
{
  "searchTerms": [
    "software"
  ],
  "includeNonProfits": false,
  "registeredWithinDays": 0,
  "activeOnly": true,
  "minEmployees": 5,
  "minQuarterlyTaxesEur": 0,
  "sortBy": "employees",
  "maxResultsPerSearch": 0,
  "maxResults": 20
}
```

# Actor output Schema

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

All companies as a dataset (JSON, CSV, Excel and more via the API or Console).

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

Matches and saved rows per search, failures and the stop reason.

# 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 = {
    "searchTerms": [
        "software"
    ],
    "minEmployees": 5,
    "sortBy": "employees",
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrslm_data/latvia-company-registry").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 = {
    "searchTerms": ["software"],
    "minEmployees": 5,
    "sortBy": "employees",
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("mrslm_data/latvia-company-registry").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 '{
  "searchTerms": [
    "software"
  ],
  "minEmployees": 5,
  "sortBy": "employees",
  "maxResults": 20
}' |
apify call mrslm_data/latvia-company-registry --silent --output-dataset

```

## MCP server setup

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

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/Id0Ufj5HmUtgSEn5i/builds/lcN3r5n01FkkRJjEs/openapi.json
