Latvia company register API in Python: Latvian B2B company lists with turnover, profit and employees
Get Latvian companies from the official Register of Enterprises (Uzņēmumu reģistrs, UR) open data by town, legal form (SIA, AS), name word or registration date, with employees, net turnover, net income, total assets and equity from each company's newest annual report. This repo shows how to call the Latvia Company Register & Financials Scraper on Apify from Python and Node, and includes example.py, which turns the rows into a ranked prospect list.
I built this actor; it's a paid tool on Apify ($0.90 per 1,000 companies, no start fee). The code in this repo is MIT.
pip install -r requirements.txtfrom apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("rel8ble/latvia-company-register").call(run_input={
"towns": ["Rīga", "Mārupes nov."],
"companyTypes": ["SIA", "AS"],
"minEmployees": 50,
"includeFinancials": True,
"maxResultsPerSearch": 200,
})
for c in client.dataset(run["defaultDatasetId"]).iterate_items():
print(c["registrationNumber"], c["nameInQuotes"], c["employees"], c["netTurnover"], c["town"])import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('rel8ble/latvia-company-register').call({
towns: ['Rīga'], companyTypes: ['SIA'], registeredFrom: '2026-10-01',
sortOrder: 'newest', includeFinancials: false, maxResultsPerSearch: 0,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'new Riga companies'); // 512 on 7 Nov 2026| Field | What it does |
|---|---|
towns |
Town or municipality in the legal address (Rīga, Liepāja, Daugavpils, Mārupes nov.). Matches the place, not the street. Accents optional. |
nameWords |
A word of the company name (logistics, koks, būv). Each word x town is one search. |
companyTypes |
Legal forms, e.g. SIA (limited company), AS (joint-stock). |
registeredFrom, registeredTo |
Registration date window (YYYY-MM-DD). |
registrationNumbers |
Exact 11-digit lookups, e.g. 40003032949. |
sortOrder |
oldest (established firms with reports) or newest (new-company leads). |
includeFinancials |
Newest annual report: employees, turnover, profit, assets, equity. |
minEmployees, minTurnover |
Size floors. Companies below them are not saved and not charged. |
maxResultsPerSearch |
Rows per search. 0 = everything. |
From the prefilled demo run (active SIA in Liepāja, oldest first, 7 November 2026):
{
"registrationNumber": "42102001645",
"nameInQuotes": "MŪRNIEKS",
"type": "SIA",
"registered": "1991-04-30",
"status": "active",
"address": "Liepāja, Krūmu iela 11/13",
"postalCode": "LV-3401",
"town": "Liepāja",
"financialYear": 2025,
"employees": 63,
"netTurnover": 2368333,
"netIncome": 200684,
"totalAssets": 1016357,
"equity": 831327,
"financials": { "periodEnd": "2025-12-31", "consolidated": false, "currency": "EUR", "filedAt": "2026-04-22" }
}sample.json holds 19 real rows from that run.
python example.py --token <YOUR_APIFY_TOKEN> --towns "Liepāja" --min-employees 10
python example.py --from-json sample.json --min-employees 10 # offline, no tokenIt keeps companies with a positive net margin and at least 30% equity to total assets (both adjustable), ranks them by turnover, adds turnover per employee, writes latvia_companies.csv and lists what it dropped and why. Output on sample.json:
8 companies with >= 10 staff; 4 kept
LIEPĀJAS ŪDENS 138 staff EUR 6,822,786 margin 7.0% equity 48% EUR 49,440/head 42103000897
MŪRNIEKS 63 staff EUR 2,368,333 margin 8.5% equity 82% EUR 37,593/head 42102001645
ARHITEKTA G.VĪKSNAS BIROJS 13 staff EUR 1,052,672 margin 24.0% equity 71% EUR 80,975/head 42103000401
DENTISTS 15 staff EUR 786,662 margin 7.1% equity 88% EUR 52,444/head 42103000986
Dropped:
GEIKO equity ratio 27%
DUNA loss or thin margin (-18.4%)
V.O.V.A. loss or thin margin (-30.4%)
WEST & CO loss or thin margin (-42.6%)
Ideas: run it monthly and diff registration numbers to catch firms that crossed your size line after filing accounts; use sortOrder: newest + registeredFrom for a weekly new-company feed (accountants, banks, insurers); look up a list of registration numbers for KYC or invoice checks.
- $0.90 per 1,000 companies, no start fee, financials included. 100 companies cost $0.09. Filtered-out rows, duplicates and failed requests are not charged.
- No contact data: the open register has no e-mails, phones, websites, people or NACE industry codes. Use name words or size floors instead of industry.
- Financials lag: the newest report is usually last year's; companies younger than a year have none.
- Individual merchants and individual/family enterprises (person-run forms) are never output.
Tutorial: Building a Latvian B2B prospect list with turnover and headcount (dev.to)
Store page: https://apify.com/rel8ble/latvia-company-register
Related: firmy-cz-scraper-python, northdata-scraper-python, gelbe-seiten-scraper-python
Need a custom scraper or a ready dataset? Hire me on Fiverr: https://www.fiverr.com/rel8ble