Guide · Latvia · Lookup and validation
Latvia company data API: look up and validate a registration number
A customer types a Latvian registration number, a Latvian VAT number or the first letters of a name; your form fills in the legal name, legal form, status and registered address from the Register of Enterprises. One key, and the same response shape as every other country the API covers.
Latvia at a glance
Register: Register of Enterprises
Identifiers Registration number
- Company recordsYes
- OfficersNo
- Insolvency noticesYes
- Corporate eventsRegister changes
- MonitoringYes
- Financial statementsAnnual accounts
- VAT numberFrom the register, if VAT-registered
- NACE classNo
- UpdatedDaily
The guide below states the limits of every row. Financial statements are on the Scale plan and above; the other plans and the free trial get 10 calls a month.
Price From EUR 9.99 a month (Starter plan)
In other languagesLatviešu
Sign upTry Latvia live
Look up a company in Latvia with the shared demo key. No sign-up.
The demo key is shared and capped per page view; your own key has the limits of your plan.
Is there an official Latvian register API?
As at 5 Nov 2026, the Register of Enterprises publishes its open data on data.gov.lv as downloadable files (CSV, JSON and XLSX), with datasets labelled as updated daily, under CC0 1.0. Prometiam serves the register data as a record keyed on the registration number, with the VAT number and the insolvency notices of the Insolvency Register. One API across the live countries adds the same response shape as every other country, so one integration covers this country and the rest, with monitoring on top. Scope limits for Latvia: no officers, shareholders only where they are legal entities (no natural persons), no activity code and no registry-compliance signal, insolvency notices since 2008, and individual merchants and other natural persons are never served.
What you get, and what you do not
Company records from the Register of Enterprises of the Republic of Latvia (Uzņēmumu reģistrs): legal name, legal form, status (including liquidation, insolvency and legal protection proceedings), registered address with the region, share capital, previous names and dates; the VAT number comes from the State Revenue Service’s list of VAT payers; with register-change events, monitoring and insolvency notices from the Insolvency Register, but no officers, no registry-compliance signal and no activity code. Individual merchants and other natural persons are never served. The Latvian VAT number (LV plus the registration number) is searchable with vat.
That is the record of a Latvian company as an onboarding form, an invoice or a CRM row needs it. If you need board members, signatories, natural-person shareholders or an activity classification for Latvia, this is not the API for it. If you want to know what the register itself is, start with What is the Register of Enterprises? (also latviski).
What the Latvian record gives your product
- Exact match on the registration number.
company_number=40003032949withcountry=LV. AnLVprefix is optional. The mod-11 check is enforced, so a number that is malformed or fails it is a 400 validation error and a typo never looks like a missing company. - A VAT alias. The Latvian VAT number is
LVplus the registration number.vat=LV40003032949withcountry=LVresolves to the same company. It is null for a company that is not on the State Revenue Service’s list of VAT payers. - Autocomplete by name.
?name=is a normalised, partial match ranked by a match score; the quotation marks around a Latvian name are ignored. Call it on every keystroke; each call is one request. - The fields a form needs. The legal name; the legal form; status; registered address, city and region; share capital with its currency; and the previous names.
- The register’s own state.
statusincludesin_liquidation, an insolvency state andin_restructuring(a legal protection proceeding), so a company in a proceeding is not served as plain active. - One schema for every country. The same response shape as
country=ES|FR|GB|IE|PL|NO|FI|SE|BE|HR|DK|EE|SK|CH|LV|CY|RO|US|LT|CA|AU|JP|IL|SG|CO|TW|BR|CZ|DE|AR|UA|RS|SI|KR|MT|GR|NC|PE|HN|GT|MD|UY|DO|NZ|BG|GE|TZ|ZM|PY|EC|NL|CL|NL|MX.
| Field | What it holds for Latvia |
|---|---|
company_number | The registration number, 11 digits: 40003032949. |
company_name | The name as registered, with the legal form around the name in quotation marks where the register writes it so. |
legal_form, local_legal_form | The standard abbreviation where the form is mapped (SIA, AS) and the register’s own form. |
status, stage | The standard reading of the register’s state: active, in liquidation, insolvent or in restructuring. |
address, city, region | The registered address; region holds the region the register gives. |
capital_amount, capital_currency | The registered share capital. |
vat_number, vat_number_source | LV plus the registration number, from the State Revenue Service’s list of VAT payers (source: register); null for a company not on the list. |
Validate before you call
A registration number is 11 digits starting 4 to 9, and the sum of the digits times the weights 9, 1, 4, 8, 3, 10, 2, 5, 7, 6, 1 must leave 3 modulo 11. The API enforces it, so validating first saves the call. The identifier validator runs the same arithmetic in the browser; this is the version to paste into a form handler:
// Latvian registration number: 11 digits starting 4-9, weighted sum mod 11 == 3. An LV prefix is optional.
export function checkRegcode(input) {
const t = String(input).trim().toUpperCase().replace(/^LV/, '').replace(/[\s.-]/g, '')
if (!/^[4-9]\d{10}$/.test(t)) return null // 0-3 at the start is a personal code, never a company
const sum = [9, 1, 4, 8, 3, 10, 2, 5, 7, 6, 1].reduce((s, w, i) => s + w * Number(t[i]), 0)
return sum % 11 === 3 ? { regcode: t, vat: 'LV' + t } : null
}
checkRegcode('40003032949') // { regcode: '40003032949', vat: 'LV40003032949' } (Latvenergo)
checkRegcode('LV40003520643') // { regcode: '40003520643', vat: 'LV40003520643' } (Maxima Latvija)
checkRegcode('40003032940') // null: fails the check
checkRegcode('01019912345') // null: a personal codeA passing check says the number is well-formed, never that the company exists or is still registered. That is what the lookup is for. The oldest 9-digit codes carry no check digit and are not covered by this function.
Two calls and a list
# by registration number (11 digits; an LV prefix is optional)
curl -H "Authorization: Bearer rk_live_..." \
"https://api.prometiam.com/functions/v1/risk-api/companies/search?company_number=40003032949&country=LV"
# by the Latvian VAT number: LV plus the registration number
curl -H "Authorization: Bearer rk_live_..." \
"https://api.prometiam.com/functions/v1/risk-api/companies/search?vat=LV40003032949&country=LV"
# by name, for a type-ahead field
curl -H "Authorization: Bearer rk_live_..." \
"https://api.prometiam.com/functions/v1/risk-api/companies/search?name=latvenergo&country=LV"To resolve a list, POST /companies/lookup takes up to 100 items in one call, each one counted as one request:
curl -X POST "https://api.prometiam.com/functions/v1/risk-api/companies/lookup" \
-H "Authorization: Bearer rk_live_..." \
-H "Content-Type: application/json" \
-d '{"items":[{"country":"LV","company_number":"40003032949"},{"country":"LV","company_number":"40003520643"},{"country":"LV","name":"Latvijas Mobilais Telefons"}]}'The search returns the record’s id; pass it to GET /companies/{id} for the detail.
An autocomplete endpoint in Node
Your server keeps the key and proxies the search; the form calls your server. A well-formed registration number goes to the company_number filter, anything else is a name, and a number that fails the check is rejected before it costs a call:
// server: /api/lv-company?q=... (keep the key out of the browser)
app.get('/api/lv-company', async (req, res) => {
const q = String(req.query.q || '').trim()
const looksLikeId = /^(lv)?\s?\d[\d\s.-]{6,}$/i.test(q)
const id = looksLikeId ? checkRegcode(q) : null
if (looksLikeId && !id) return res.status(422).json({ error: 'Not a valid registration number: 11 digits with a correct check' })
const params = new URLSearchParams({ country: 'LV', limit: '6', ...(id ? { company_number: id.regcode } : { name: q }) })
const r = await fetch('https://api.prometiam.com/functions/v1/risk-api/companies/search?' + params,
{ headers: { Authorization: 'Bearer ' + process.env.PROMETIAM_API_KEY } })
const { data } = await r.json()
res.json({
results: data.map(c => ({ id: c.id, name: c.company_name, regcode: c.company_number, form: c.legal_form || c.local_legal_form,
status: c.status, city: c.city, region: c.region, address: c.address })),
})
})What Latvia does not carry
- Officers and shareholders. Not part of the Latvian record.
- An activity code. The register data carries none, so the activity fields are null.
- Insolvency of natural persons. Latvia is one of the sixteen insolvency markets, but its notices cover legal persons of the commercial register only, linked by the 11-digit registration number. Liquidation, insolvency and legal protection proceedings also show in
status. Contains data from the Insolvency Register of the Republic of Latvia (Register of Enterprises), CC0. - Gazette notices as events. The register-change events are not gazette notices: they show a change to the name, status, legal form or registered address dated when it first appears in the register data, and none is dated before the first load in October 2026. Monitoring is available for every live country except Chile, South Korea, New Caledonia, Peru, Honduras, Guatemala, Uruguay, the Dominican Republic, New Zealand, Bulgaria, Georgia, Tanzania, Zambia and Paraguay.
- A registry-compliance signal. Not served for Latvia.
- Individual merchants and other natural persons. An individual merchant (IK) or any other natural person is never served, so a lookup of one returns nothing even though it exists.
Pricing
Latvia is included in every tier at no upcharge. Starter begins with a 14-day trial: 500 credits in total, 10 requests/minute, card required, nothing charged for 14 days. Subscribing keeps the same key working. Then Starter at €9.99/month (1,000 credits, 60 requests/minute), Professional at €29.99/month (10,000 credits, 120 requests/minute) and Scale at €99.99/month (50,000 credits, 300 requests/minute), monthly or annual; annual comes with two months free. A company record costs 1 credit, an autocomplete keystroke costs 1 credit, and error responses cost nothing, so a product onboarding a few hundred Latvian customers a month stays inside Starter.
FAQ
How do I look up a Latvian company by registration number from an API?
Call GET /companies/search?company_number=40003032949&country=LV. An LV prefix is optional, and the mod-11 check is enforced; a number that is malformed or fails the check is a 400 validation error rather than an empty list.
Can I look up a Latvian company by VAT number?
Yes. The Latvian VAT number is LV plus the 11 digits of the registration number, for example LV40003032949. Pass it as vat with country=LV and it resolves to the same company. It comes from the State Revenue Service’s list of VAT payers, so a company that is not on the list has none; to check a number against VIES, use GET /vat/ followed by the number.
Is the registration number check enforced?
Yes for the 11-digit numbers: the weights are 9, 1, 4, 8, 3, 10, 2, 5, 7, 6, 1 and the sum must leave 3 modulo 11. The oldest 9-digit codes carry no check digit. An 11-digit number starting 0 to 3 is a personal code and is refused.
Does the Latvian record include officers, company events or insolvency notices?
Company events and insolvency notices yes; officers no. Latvia is company-level: legal name, legal form, status, registered address with the region, share capital and previous names. There are no officers, no registry-compliance signal and no activity code. Register-change events (name, status, legal form and registered address, dated when the change first appears in the register data, none before the first load in October 2026) and monitoring are available. Insolvency and legal protection proceedings from the Insolvency Register are served as insolvency notices (an opening and a closing notice per proceeding, since 2008, legal persons of the commercial register only, linked by the 11-digit registration number), and liquidation, insolvency and legal protection proceedings also show in the status.
Which Latvian entities does it cover?
Companies and the other legal persons of the commercial register. Individual merchants (IK) and other natural persons are never served, so a lookup of one returns nothing even though it exists.
Can I call the API from the browser?
You can, but a key in the browser is public. Proxy the search through your server, as in the sample above. Rate limits are per key.
Is there a way to try it before signing up?
Yes: the free registration number lookup runs the same call with a shared key.
Everything about Latvia
Free tools
Comparisons
In other languages
Latviešu 12
- Lursoft API alternatīva
- Kas ir Uzņēmumu reģistrs
- Uzņēmuma meklēšana pēc reģistrācijas numura
- Uzņēmumu reģistra API: meklēšana pēc reģistrācijas numura
- Uzņēmumu reģistru dati vienā API
- KYB pārbaude Latvijas uzņēmumiem ar API
- Piegādātāju un darījuma partneru pārbaude
- PVN maksātāja pārbaude
- Maksātnespējas reģistrs
- Maksātnespējas procesi Latvijā pa mēnešiem
- Pārdošanas signāli
- Latvija: uzņēmumu identifikatoru formāti (Reģistrācijas numurs)
Contains data from the Register of Enterprises of the Republic of Latvia and the State Revenue Service (CC0)