# Latvia Insolvency & Company Risk Scraper - UR Open Data (`rel8ble/latvia-insolvency-risk-scraper`) Actor

Latvia insolvency and company risk monitor (UR open data): new bankruptcies, legal protection, liquidations, tax suspensions, bailiff liens, mergers and sanctions flags. Weekly feed or KYB check by reg. number. One row per event: company, date, court, outcome. $0.80 per 1,000.

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

## Pricing

$0.80 / 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.

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 Insolvency & Company Risk Scraper - UR Open Data

This **Latvia insolvency scraper** and **company risk monitor** turns the official **Register of Enterprises (Uzņēmumu reģistrs) open data** into a clean feed of **Latvian company risk events**: new **insolvency (bankruptcy) proceedings**, **legal protection (restructuring) proceedings**, **liquidations**, **tax-office activity suspensions**, **bailiff and court prohibitions, liens and arrests**, **mergers and reorganisations**, and **sanctions risk flags**. Each row has the company's **registration number, name, legal form, address and status**, the **event date**, and, for insolvency, the **court, case number, creditor claims deadline and outcome in English**.

Use it two ways: as a **monitoring feed** ("every new Latvian insolvency and liquidation this week", scheduled) or as a **KYB / credit check** ("send 500 registration numbers, get every risk event for each, and a clean `none_found` row for the rest"), from your own code, Make, Zapier, n8n or an AI agent.

It reads the register's daily-updated open datasets on data.gov.lv over plain HTTP, with **no browser, no login and no API key**. A default-input cloud run (100 newest insolvency, legal protection and liquidation events, 4 requests, 512 MB) took 10.8 s on 19 November 2026 (run `ZN5UbPfcAmXDKqb9e`). **$0.80 per 1,000 results, no start fee.**

**What goes in:** nothing (newest events), event types and a date window such as `7 days`, or a list of registration numbers. **What comes out:** one row per event, newest first. **When to use it:** you sell to, lend to, buy debt from or supply Latvian companies and need to know when one goes insolvent, is wound up, has its activity suspended by the State Revenue Service, or gets its shares frozen by a bailiff.

**What it does not have:** **no personal insolvency** (the dataset covers companies only), **no people**: natural persons in the sanctions dataset are never output (the row says a sanctioned person is the company's beneficial owner, without the name), **no amounts owed**, and no e-mails or phones.

### What you get

- **Event**: type (`insolvency`, `legal_protection`, `liquidation`, `activity_suspension`, `securing_measure`, `reorganization`, `sanctions_risk`), register code, subtype in Latvian and English, **event date**, date recorded, stable `eventId` for de-duplicating scheduled runs.
- **Company**: 11-digit registration number, registered name, legal form, legal address, registration date, **current status** (active, liquidated, reorganised, struck off).
- **Insolvency and legal protection**: start and end date, **open / ended flag**, **court**, **court case number**, **creditor claims deadline**, **outcome** (e.g. "Bankruptcy procedure completed", "Ended: debtor has no assets and no funding for the proceeding was agreed"), cross-border flag.
- **Liquidation**: liquidation, activity terminated, or terminated by court, with the grounds (e.g. "11.11.2026. dalībnieka lēmums Nr. 1", the member's decision).
- **Suspension**: economic activity suspended, usually by the **State Revenue Service (VID)**, with the decision reference.
- **Securing measures**: prohibitions, liens and arrests with their scope (e.g. ban on disposing of shares or registering commercial pledges), the **institution** (sworn bailiff, court, tax office) and its case number.
- **Reorganisation**: merged into, converted into, divided, with the **other company's number and name**.
- **Sanctions risk**: the company, or a legal entity or person linked to it, on the **EU / UN / national sanctions lists**, with programme, listing date and legal act link.

Measured on 19 November 2026: the datasets held 18,070 insolvency and legal protection proceedings (2008 to date), 9,651 liquidations, 10,602 suspensions, 34,337 securing measures, 10,930 reorganisations and 63 sanctions links. In the 7 days to 18 November there were 209 new securing measures, 12 activity suspensions, 3 reorganisations and 2 running insolvency proceedings; liquidations run at roughly 300 a month.

### Sample output

Real rows from the prefilled run (19 November 2026):

| date | event | company | reg. number | subtype | details |
|---|---|---|---|---|---|
| 2026-11-17 | liquidation | SIA Vasilieff | 40203701793 | Liquidation | 04.11.2026. dalībnieka lēmums Nr. 1/2026 |
| 2026-11-17 | liquidation | Talsu Diabēta biedrība | 40008007153 | Activity terminated | Latvijas Republikas Uzņēmumu reģistra valsts notāra ... lēmums |
| 2026-11-17 | liquidation | SIA "Diamonds City" | 40203609279 | Liquidation | 15.11.2026. Vienīgā dalībnieka lēmums Nr.1/2026 |
| 2026-11-16 | insolvency | SIA "Integro Constructions" | 40203349118 | Insolvency proceeding | Rīgas pilsētas tiesa, case C771656126, claims by 2026-12-17 |
| 2026-11-16 | liquidation | SIA SONGRA | 40203466744 | Liquidation | 12.11.2026. dalībnieka lēmums Nr.12/11/26 |

A lookup of `41203027761` returns its running 2026 insolvency, a 2025 legal protection proceeding ("Legal protection plan not approved by the required creditor majority") and five bailiff prohibitions on its share capital and commercial pledges, newest first.

### Use cases

- **Credit risk and collections**: schedule a weekly feed (`dateFrom: "7 days"`) and match new insolvencies and liquidations against your debtor list; file claims before the creditor deadline
- **KYB / supplier due diligence**: check a list of Latvian counterparties for insolvency, suspension by the tax office, bailiff measures and sanctions links in one run
- **Distressed-asset and M\&A leads**: new legal protection proceedings and reorganisations
- **CRM hygiene**: flag customers that were wound up or merged into another company
- **Pair it with the Latvia company register actor**: build a lead list there, then screen it here before outreach

### Pricing

**$0.80 per 1,000 results** (pay per result, $0.0008 each), no start fee, platform usage included. A result is one event row, or one `none_found` row for a looked-up company with no events (turn **Report companies with no events** off to skip those). Failed requests are never charged. 100 events cost $0.08; a 1,000-company KYB check with no hits costs $0.80. Set **Max results** to cap a feed run.

The data comes from free public datasets. You pay for the joined, translated, filtered rows across seven datasets, not for access.

**Compared with the alternatives** (live Apify Store search on 19 November 2026 for "latvia", "latvian company", "insolvency", "baltic company"): no other Store actor covers Latvian insolvency or risk events. The nearest are deriverge/latvian-company-check (1 user in 30 days; a $0.001 run fee plus $0.002 per company resolved plus $0.001 per register join, company data only) and kyb-data/baltic-company-check ($0.05 per company check, 0 users in 30 days). Insolvency monitors for other countries charge more per row: dltik/bodacc-fr-scraper (France, 6 users) $3.00 per 1,000, akeeml/france-company-risk-monitor (2 users) $5.00 per 1,000, regdata/germany-insolvency-scraper (5 users) $1.00 per 1,000 plus $5.00 per 1,000 name searches. This one is $0.80 per 1,000 with no start fee. Prices change; check before you compare.

### FAQ

**Where does the data come from?** The Register of Enterprises of the Republic of Latvia open datasets on data.gov.lv: insolvency proceedings (Maksātnespējas procesi), liquidations, suspensions and prohibitions of activity, securing measures, reorganisations, sanctions risk information, and the enterprise register for company details. All are published under **CC0 1.0** and updated daily. This actor is not affiliated with the Register of Enterprises.

**How fresh is it?** Each run queries the live datasets. On 19 November 2026 the newest records were from 17 November (entered the same afternoon).

**Is personal insolvency included?** No. The dataset covers legal entities only. Natural persons named in the sanctions dataset are never output.

**What is a legal protection proceeding?** Latvia's court-supervised restructuring (tiesiskās aizsardzības process), the step before insolvency. `OUT_OF_COURT_LEGAL_PROTECTION` is the out-of-court version.

**Why are some details in Latvian?** Codes and outcomes are translated to English; free-text grounds (decision numbers, scope of a prohibition) are kept as registered.

**How do I run it on a schedule without duplicates?** Use `dateFrom: "7 days"` with a weekly schedule and de-duplicate on `eventId`.

**Known gaps**: no amounts owed or creditor lists; securing-measure and liquidation grounds are free text in Latvian; records without a date are skipped in feed mode (they still appear in lookups); very old records (before 2008) may be incomplete in the source.

### How to use

1. Open the actor. For a feed, pick **Event types** and a **From date** (`30 days`, `7 days` or `2026-11-01`). For a check, paste **Registration numbers**.
2. Optional: **Only running insolvency / legal protection**, **Max events per company**, **Report companies with no events**.
3. Set **Max results** (start with 20), click **Start**, then export the dataset as CSV, Excel or JSON.

### Input

| Field | What it does |
|---|---|
| `registrationNumbers` | 11-digit Latvian company numbers; switches to lookup mode. |
| `eventTypes` | insolvency, legal_protection, liquidation, activity_suspension, securing_measure, reorganization, sanctions_risk. |
| `dateFrom`, `dateTo` | Date window: YYYY-MM-DD or "N days". |
| `onlyOpen` | Drop insolvency / legal protection proceedings that have ended. |
| `maxResults` | Feed mode: rows in total, newest first; 0 = all in the window. |
| `maxEventsPerCompany` | Lookup mode: newest events per company; 0 = all. |
| `includeCompaniesWithoutEvents` | Lookup mode: one `none_found` row per clean company. |
| `includeCompanyDetails` | Join name, form, address and status from the register. |

Invalid values are ignored and listed in the run summary. A field where no value is valid stops the run instead of widening the search.

### Input example

```json
{
    "registrationNumbers": ["40203349118", "41203027761", "40003032949"],
    "eventTypes": ["insolvency", "legal_protection", "liquidation", "activity_suspension", "securing_measure"],
    "dateFrom": "2024-01-01",
    "includeCompaniesWithoutEvents": true
}
```

### Output example

One real row from the prefilled run (19 November 2026):

```json
{
    "eventId": "insolvency:90137255",
    "eventType": "insolvency",
    "eventTitle": "Insolvency proceedings (bankruptcy)",
    "eventSubtype": "INSOLVENCY",
    "eventSubtypeEn": "Insolvency proceeding",
    "eventDate": "2026-11-16",
    "recordedAt": "2026-11-17T14:39:24",
    "endDate": null,
    "isOpen": true,
    "registrationNumber": "40203349118",
    "companyName": "SIA \"Integro Constructions\"",
    "legalForm": "SIA",
    "legalFormLv": "Sabiedrība ar ierobežotu atbildību",
    "companyAddress": "Rīga, Reņģes iela 2B - 44",
    "companyRegistered": "2021-09-28",
    "companyStatus": "active",
    "inRegister": true,
    "court": "Rīgas pilsētas tiesa",
    "courtCaseNumber": "C771656126",
    "creditorClaimsDeadline": "2026-12-17",
    "sourceDataset": "https://data.gov.lv/dati/lv/dataset/maksatnespejas-procesi",
    "searchLabel": "feed",
    "scrapedAt": "2026-11-19T06:35:03.772Z"
}
```

Fields that do not apply to an event type are `null` (left out above). A `RUN_SUMMARY` record in the key-value store lists rows per event type, records read, why each type stopped, ignored input and any failed request.

### Integrations

Run it from the Apify API, schedule it in Apify, or connect it to Make, Zapier, n8n, Google Sheets, Slack or a webhook. AI agents can call it through the Apify MCP server: give a list of Latvian registration numbers, get each company's insolvency, liquidation and sanctions status back.

Need a custom scraper or a ready dataset? Hire me on Fiverr: https://www.fiverr.com/rel8ble

# Actor input Schema

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

Optional. 11-digit Latvian company registration numbers, e.g. "40003032949" (an "LV" VAT prefix is fine). Given: lookup mode, every event of these companies (all event types unless you pick some), plus a none_found row for each company with none. Empty: feed mode, newest events across Latvia.

## `eventTypes` (type: `array`):

Which events to return. Empty = insolvency + legal protection + liquidation in feed mode, every type in lookup mode.

## `dateFrom` (type: `string`):

Only events on or after this date: YYYY-MM-DD, or "7 days" / "30 days" for a rolling window (good for weekly schedules). Feed mode stops reading at this date.

## `dateTo` (type: `string`):

Only events on or before this date, YYYY-MM-DD.

## `onlyOpen` (type: `boolean`):

On: drop insolvency and legal protection proceedings that have already ended. Other event types are not affected.

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

Feed mode: rows to save in total, newest first across the chosen types. 0 = everything in the date window. You pay per row, so start small.

## `maxEventsPerCompany` (type: `integer`):

Lookup mode: newest events to save per company. 0 = all.

## `includeCompaniesWithoutEvents` (type: `boolean`):

Lookup mode: on = one none_found row per company with no events, so every number you send gets an answer (charged as one result).

## `includeCompanyDetails` (type: `boolean`):

Adds registered name, legal form, address, registration date and current status from the main register (1 extra request per 100 companies).

## `maxRequestRetries` (type: `integer`):

Retries per failed request.

## Actor input object example

```json
{
  "eventTypes": [
    "insolvency",
    "legal_protection",
    "liquidation"
  ],
  "dateFrom": "30 days",
  "onlyOpen": false,
  "maxResults": 20,
  "maxEventsPerCompany": 0,
  "includeCompaniesWithoutEvents": true,
  "includeCompanyDetails": true,
  "maxRequestRetries": 5
}
```

# Actor output Schema

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

One row per risk event (insolvency, legal protection, liquidation, suspension, securing measure, reorganisation, sanctions), or one none_found row per looked-up company with no events.

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

Rows per event type, records read, stop reasons, ignored input and failures.

# 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 = {
    "eventTypes": [
        "insolvency",
        "legal_protection",
        "liquidation"
    ],
    "dateFrom": "30 days",
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("rel8ble/latvia-insolvency-risk-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 = {
    "eventTypes": [
        "insolvency",
        "legal_protection",
        "liquidation",
    ],
    "dateFrom": "30 days",
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("rel8ble/latvia-insolvency-risk-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 '{
  "eventTypes": [
    "insolvency",
    "legal_protection",
    "liquidation"
  ],
  "dateFrom": "30 days",
  "maxResults": 20
}' |
apify call rel8ble/latvia-insolvency-risk-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rel8ble/latvia-insolvency-risk-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/s2ksADYDY3kX3QWtg/builds/GEHSXivZMEbEQZuJZ/openapi.json
