# Poland KRS Company Monitor – New Companies & Changes (API) (`gazidev/poland-krs-monitor`) Actor

Monitor the Polish National Court Register (KRS) via the official Open API: daily new company registrations, all entities changed in the register, or a KRS-number watch list. NIP, REGON, address, PKD, capital, board, shareholders, liquidation/bankruptcy flags.

- **URL**: https://apify.com/gazidev/poland-krs-monitor.md
- **Developed by:** [Cemal Atakli](https://apify.com/gazidev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 company records

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

## Poland KRS Company Monitor – New Companies & Changes (API)

Monitor the **Polish National Court Register (Krajowy Rejestr Sądowy, KRS)** with the official **Open API KRS** of the Ministry of Justice. Get a daily feed of **newly registered Polish companies** (sp. z o.o., S.A., P.S.A., partnerships, foundations…), every entity that got a **new register entry** (board change, address, capital, liquidation, bankruptcy), or the current extract (**odpis aktualny**) for your own **list of KRS numbers**, with a watch mode that only reports the ones that changed.

Each record has the **KRS number, NIP, REGON**, name, legal form, **registration date**, last entry number and date, seat (voivodeship, county, municipality, city), full address, **website, email and e-delivery address** when registered, **share capital**, **PKD activity codes** with descriptions, representation rules, **board (zarząd), supervisory board, prokurents and shareholders**, the date of the last filed financial statement, and status flags: **liquidation, bankruptcy, restructuring, suspension, dissolution, tax/social-security arrears (dział 4)**.

Three modes (struck-off entities are reported too, as `deleted`):

1. **New companies**: entities first registered in KRS in a date range (default: the last 3 days), filtered by **legal form, voivodeship, city, PKD code and share capital**.
2. **All changes**: every entity listed in the official daily bulletin (about 3,000 per business day), with the same filters, marked `new` or `updated`.
3. **Lookup / watch**: current extract for your KRS numbers. Turn on `onlyNewOrChanged` and schedule it: you get only the companies with a new register entry since the last run, with a `changedFields` list (e.g. `boardSize`, `fullAddress`, `inLiquidation`).

No scraping, no browser, no login, no API key: just the public JSON API. **$1.50 per 1,000 companies.**

### Who uses it

- **Accounting offices, banks, leasing and insurance companies, SaaS and B2B sales teams**: a daily list of **new Polish companies** in your region and industry (e.g. new IT companies in Mazowieckie, new construction companies in Kraków) with NIP and address.
- **KYB, credit and compliance teams**: watch your clients' and suppliers' KRS numbers and get alerts on **liquidation, bankruptcy, restructuring, arrears, board or address changes**.
- **Investors, M\&A and journalists**: track corporate shareholders, capital increases and mergers (dział 6).
- **Data teams**: enrich KRS numbers with NIP, REGON, PKD, capital and status in bulk.

### Input examples

New companies from the last 3 days (the prefill):

```json
{ "mode": "newCompanies", "daysBack": 3, "maxResults": 50 }
```

New IT companies (PKD 62) seated in Mazowieckie, last week, sp. z o.o. only:

```json
{ "mode": "newCompanies", "daysBack": 7, "pkdCodes": ["62"], "pkdMatchAnyActivity": true, "voivodeships": ["MAZOWIECKIE"], "legalForms": ["SPZOO"], "maxResults": 0 }
```

All entities changed yesterday in Kraków, without people arrays:

```json
{ "mode": "allChanges", "daysBack": 1, "cities": ["Kraków"], "includeBoardAndOwners": false, "maxResults": 0 }
```

Watch list (schedule daily, pay only for changed companies plus $0.0001 per unchanged check):

```json
{ "mode": "lookup", "krsNumbers": ["0000019193", "0000644106"], "registers": ["P", "S"], "onlyNewOrChanged": true, "stateKey": "clients" }
```

#### Input fields

| Field | Meaning |
|---|---|
| `mode` | `newCompanies` (default), `allChanges`, `lookup` |
| `daysBack` / `dateFrom` / `dateTo` | Bulletin days (max 31 per run, after 2021-12-08). No entries on weekends/holidays |
| `krsNumbers` | Lookup mode: KRS numbers with or without leading zeros |
| `registers` | `P` (entrepreneurs, default) and/or `S` (associations, foundations) |
| `legalForms` | `SPZOO`, `SA`, `PSA`, `SPK`, `SPJ`, `SKA`, `SPP`, `COOP`, `FOUNDATION`, `ASSOCIATION`, `BRANCH`, `OTHER` |
| `voivodeships`, `cities` | Seat of the entity |
| `pkdCodes` + `pkdMatchAnyActivity` | PKD prefixes (`62`, `62.01`, `68.20.Z`), main activity or any activity |
| `minShareCapital` | In PLN |
| `excludeLiquidationAndBankruptcy` | Skip entities in liquidation, bankruptcy or dissolved |
| `includeBoardAndOwners` | Board, supervisory board, prokurents, shareholders arrays (default on) |
| `onlyNewOrChanged` + `stateKey` | Monitoring memory across scheduled runs |
| `maxResults` | Stop after N companies (0 = all). You pay per company saved |

### Output

```json
{
  "krs": "0001276469",
  "registry": "P",
  "name": "ST. AMBROŻY SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ",
  "legalForm": "SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ",
  "legalFormCode": "SPZOO",
  "nip": "6772549002",
  "regon": null,
  "registeredAt": "2026-10-30",
  "lastEntryNo": 2,
  "lastEntryDate": "2026-10-30",
  "voivodeship": "MAŁOPOLSKIE",
  "city": "KRAKÓW",
  "fullAddress": "UL. NA WIRACH 33, 30-244 KRAKÓW",
  "shareCapital": 10000.0,
  "shareCapitalCurrency": "PLN",
  "pkdPrimary": "46.38.Z",
  "pkdPrimaryDescription": "Sprzedaż hurtowa pozostałej żywności",
  "pkdCodes": ["46.38.Z", "46.39.Z", "47.11.Z", "49.41.Z"],
  "representationBody": "ZARZĄD",
  "boardSize": 4,
  "boardFunctions": ["CZŁONEK ZARZĄDU", "PREZES ZARZĄDU"],
  "shareholdersCount": 4,
  "corporateShareholders": [],
  "firstFiscalYearEnd": "2027-12-31",
  "inLiquidation": false,
  "bankruptcy": false,
  "suspended": false,
  "hasArrears": false,
  "board": [{ "function": "PREZES ZARZĄDU", "name": "T***** M***** D***********", "suspended": false }],
  "shareholders": [{ "name": "T***** M***** D***********", "type": "person", "shares": "25 UDZIAŁÓW O ŁĄCZNEJ WARTOŚCI NOMINALNEJ 2 500 ZŁ" }],
  "changeType": "new",
  "sourceUrl": "https://api-krs.ms.gov.pl/api/krs/OdpisAktualny/0001276469?rejestr=P&format=json",
  "fetchedAt": "2026-11-01T00:18:35+00:00"
}
```

`changeType` is `new` (registered in the date range), `updated` (existing entity with a new entry), `deleted` (struck off the register: name, NIP, REGON, deletion date and court come from the full extract), `changed` (watch mode, with `changedFields` and `previousEntryNo`), `firstSeen` or `current`. The run summary (`OUTPUT` in the key-value store) shows bulletin sizes per day, extracts checked, filtered counts and KRS numbers not found.

### Pricing

Pay per event: **$0.0015 per company saved** ($1.50 per 1,000), board and shareholders included. In watch mode an unchanged KRS number costs **$0.0001**. Error and not-found rows are free. Set **Max results** or a maximum cost per run, and the run stops cleanly at that limit.

| | This Actor | Other KRS Actors on the Store (Oct 2026) |
|---|---|---|
| Daily new-company feed | yes | no |
| Daily change bulletin + watch list | yes | no |
| Price | $0.0015 per company | $0.01 – $0.06 per financial statement (different data) |
| Filters (form, region, city, PKD, capital) | yes | – |

### Use with AI agents (Apify MCP)

Add this Actor to Claude, ChatGPT or any MCP client through the [Apify MCP server](https://mcp.apify.com) and ask: *"List new sp. z o.o. companies registered in Wrocław this week"* or *"Is KRS 0000644106 in liquidation? Who represents it?"*

### FAQ

**Can I search by company name or NIP?** No. The official API is keyed by KRS number only. Use this Actor to monitor the register and to enrich KRS numbers you already have.

**Why are people's names masked (`J*** K*****`)?** The Ministry's API anonymises first names, surnames and PESEL numbers of natural persons. Board functions, counts and **corporate shareholders' names, KRS and REGON** are shown in full.

**Why is REGON empty for new companies?** NIP and REGON are added by the statistics and tax offices in follow-up entries, usually within days.

**How is a "new company" detected?** From the daily bulletin, the Actor checks the recent KRS numbers (the newest ~60,000 numbers) and keeps those whose `dataRejestracjiWKRS` falls in your date range.

**How long does a run take?** About 1 s per 6–8 extracts (the Actor is deliberately polite to the public API). A full day of new companies (~300–500) takes 1–2 minutes; a full day of all changes (~3,000) about 8–10 minutes.

**Is there data on weekends?** Courts rarely make entries on weekends and holidays, so those bulletins are small or empty.

### Data source and licence

Data from the **Krajowy Rejestr Sądowy** via the **Otwarte API KRS** of the Polish Ministry of Justice (Ministerstwo Sprawiedliwości), [prs.ms.gov.pl/krs/openApi](https://prs.ms.gov.pl/krs/openApi). The register is public by law (art. 8 of the KRS Act), and the API is listed on [dane.gov.pl](https://dane.gov.pl/pl/dataset/27606) under **CC0 1.0** ("dane udostępniane są w domenie publicznej"). This Actor is not affiliated with or endorsed by the Ministry of Justice. Extracts from the API are informational and are not official court extracts.

# Actor input Schema

## `mode` (type: `string`):

**New companies**: entities first registered in the KRS in the date range (fresh B2B leads). **All changes**: every entity with a new register entry on those days (board, address, capital, liquidation, ...). **Lookup**: current extract for your KRS numbers; turn on *Only new or changed* to use it as a watch list.

## `daysBack` (type: `integer`):

New companies / all changes: bulletin days from today minus N to today. Ignored when *Date from* is set. The register publishes no entries on weekends and public holidays.

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

YYYY-MM-DD (after 2021-12-08). Overrides *Last N days*. Max range 31 days.

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

YYYY-MM-DD, inclusive. Default today.

## `krsNumbers` (type: `array`):

Lookup mode: KRS numbers, with or without leading zeros, e.g. `0000019193` (PKP S.A.). No name search - the official API is keyed by KRS number.

## `registers` (type: `array`):

Which KRS register(s) to read. `P` = companies (sp. z o.o., S.A., partnerships, cooperatives...). `S` = associations and foundations. Each extra register costs one more API call per KRS number not found in the first one.

## `legalForms` (type: `array`):

Keep only these legal forms. Empty = all.

## `voivodeships` (type: `array`):

Keep only entities seated in these voivodeships. Empty = all Poland.

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

Keep only entities seated in these towns, e.g. `Warszawa`, `Kraków`, `Wrocław` (accents optional).

## `pkdCodes` (type: `array`):

Polish activity codes (PKD, NACE-based), prefix match: `62` (IT), `62.01`, `68.20.Z`, `41` (construction). Matches the main activity unless the option below is on.

## `pkdMatchAnyActivity` (type: `boolean`):

Also match secondary activities (companies often list 10+ codes).

## `minShareCapital` (type: `integer`):

Skip entities with lower registered share capital (sp. z o.o. minimum is 5,000 PLN).

## `excludeLiquidationAndBankruptcy` (type: `boolean`):

Skip entities with liquidation, bankruptcy or dissolution entries (KRS section 6).

## `includeBoardAndOwners` (type: `boolean`):

Add `board`, `supervisoryBoard`, `prokurents` and `shareholders` arrays. Note: the official API anonymises names of natural persons (e.g. `J*** K*****`); corporate shareholders are shown in full with their KRS/REGON.

## `onlyNewOrChanged` (type: `boolean`):

Monitoring: remembers results in a named key-value store. Lookup mode outputs only KRS numbers with a new register entry since the last run (with `changedFields`); bulletin modes skip entities already returned. Use with a schedule.

## `stateKey` (type: `string`):

Separate memory per monitor when you run several schedules (e.g. `clients`, `warsaw-it`).

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

Stop after this many companies. 0 = no limit (one business day has ~300 new and ~3,000 changed entities).

## Actor input object example

```json
{
  "mode": "newCompanies",
  "daysBack": 3,
  "krsNumbers": [
    "0000019193"
  ],
  "registers": [
    "P"
  ],
  "pkdMatchAnyActivity": false,
  "excludeLiquidationAndBankruptcy": false,
  "includeBoardAndOwners": true,
  "onlyNewOrChanged": false,
  "stateKey": "default",
  "maxResults": 50
}
```

# Actor output Schema

## `companies` (type: `string`):

No description

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

No description

## `summary` (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 = {
    "mode": "newCompanies",
    "daysBack": 3,
    "krsNumbers": [
        "0000019193"
    ],
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/poland-krs-monitor").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 = {
    "mode": "newCompanies",
    "daysBack": 3,
    "krsNumbers": ["0000019193"],
    "maxResults": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("gazidev/poland-krs-monitor").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 '{
  "mode": "newCompanies",
  "daysBack": 3,
  "krsNumbers": [
    "0000019193"
  ],
  "maxResults": 50
}' |
apify call gazidev/poland-krs-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gazidev/poland-krs-monitor"
        }
    }
}
```

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/hLaLVcUYIA2MFxDXa/builds/YTC6odIdGrXjNtagD/openapi.json
