# Poland KRS Full Extract & Filing History Lookup (`dataspryva/poland-krs-full-extract-and-filing-history-lookup`) Actor

Look up companies, foundations, and associations in Poland's KRS (Krajowy Rejestr Sadowy) by KRS number. Get legal form, REGON/NIP, address, share capital, board members, PKD activity codes, and financial filing history from the official registry.

- **URL**: https://apify.com/dataspryva/poland-krs-full-extract-and-filing-history-lookup.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/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 Full Extract, Shareholders & Change Monitor

Look up companies, foundations, and associations in **KRS** — Poland's National Court Register (Krajowy Rejestr Sądowy), maintained by the Ministry of Justice — or monitor every entity the register changed on a given day or hour. Fetch by KRS number or by NIP/REGON, and get legal form, REGON/NIP, address, shareholders, board, share capital, PKD activity codes, financial filing notices, the complete field-change history, VAT status and bank accounts. No auth, no proxy, no cookies required.

### Data source & limitations

This actor uses two official, public, unauthenticated government APIs:

- **api-krs.ms.gov.pl** — the Ministry of Justice's KRS extract API ("odpisy"), covering current and full historical extracts plus daily and hourly change bulletins.
- **wl-api.mf.gov.pl** — the Ministry of Finance's VAT whitelist ("Biała lista podatników VAT"), used to resolve NIP/REGON to a KRS number and to add VAT status and bank accounts.

The KRS search **portal** (wyszukiwarka-krs.ms.gov.pl) and the financial-document repository (ekrs.ms.gov.pl / rdf-przegladarka.ms.gov.pl) sit behind an Incapsula WAF and reCAPTCHA; both return 403 to plain HTTP, TLS-impersonated HTTP, and headless browsers. As a result this actor supports exact KRS/NIP/REGON lookups and change monitoring — not free-text name search or financial-statement downloads. The official API does not accept names. Board-member names and PESEL numbers are partially masked by the Ministry itself, not by this actor.

### What this actor does

- **Look up by KRS number**, one or many at once — current or full historical extract.
- **Look up by NIP or REGON** — resolves the KRS number through the VAT whitelist, then fetches the extract and attaches VAT status, working address, registration/removal dates, and bank accounts. Entities without a KRS number (sole traders, civil partnerships) are returned as VAT-subject records.
- **Monitor KRS changes by date** — daily bulletin for a full day, or hourly bulletin for an hour range. Return lightweight KRS-change rows, or fetch the full company record for every changed entity.
- **Two registers, plus auto-detect** — P (Register of Entrepreneurs), S (Register of Associations, Foundations, and Public Healthcare Institutions), or `AUTO`.
- **Two extract types** — current state ("Aktualny") or the full historical extract ("Pełny"), with every past field value and every court filing entry.
- **Optional VAT enrichment** for KRS lookups — one extra request per company adds the whitelist record.
- **Empty fields are omitted** — you only ever see fields the registry actually has data for.

### Output per entity

**Common fields:** `recordType`, `krsNumber`, `name`, `legalForm`, `register`, `registerCode`, `extractType`, `extractDateTime`, `stateAsOfDate`, `sourceUrl`, `scrapedAt`.

**Identity and address:** `regon`, `nip`, `isPublicBenefitOrg`, `registrationDate`, `lastEntryNumber`, `lastEntryDate`, `lastEntryCaseSignature`, `registeringCourt`, `previousRegistration`, `operatesWithOtherEntities`, `address` (region, county, commune, city, street, house/apartment number, postal code, country, `fullAddress`, email, website, `electronicDeliveryAddress`), `branches[]`, `supervisingAuthority`.

**Ownership and governance:** `shareholders[]` (person or company name, masked identifiers, stake description, `ownsAllShares`, `active` on full extracts), `soleShareholders[]` (joint-stock companies), `capital` (share capital, target/reserve capital, paid-up capital, conditional increase, total shares, nominal value, in-kind contributions), `shareSeries[]`, `boardAuthorizedToIssueSubscriptionWarrants`, `convertibleBonds` when populated, `representationBody`, `representationMethod`, `representatives[]`, `supervisoryBoard[]`, `proxyHolders[]` (all with `active` on full extracts).

**Activity and filings:** `mainActivity`, `otherActivities[]`, `oppPaidActivities[]`, `oppUnpaidActivities[]`, `organizationPurpose`, `financialStatementFilings[]`, `consolidatedFinancialStatementFilings[]`, `firstFiscalYearEndDate`, `entityDurationPeriod`, `statuteGrantsPersonalRights`, `bondholdersHaveProfitShareRight`, `statuteAmendments[]`.

**History:** `entriesHistory[]` + `entriesHistoryCount` (every court filing entry, not a sample), `history[]` + `historyCount` (full extracts only — every field value ever recorded: `field`, `value`, `entryNumber`, `repealedByEntryNumber`, or `cleared: true`), and `dzial4` / `dzial5` / `dzial6` under their official Polish section keys when populated.

**VAT whitelist:** `vatStatus`, plus `taxRegistry` (`statusVat`, `vatRegistered`, `asOfDate`, residence/working address, registration/denial/restoration/removal dates, `hasVirtualAccounts`, `bankAccounts[]`, representatives, authorized clerks, partners).

**Change monitor:** lightweight rows use `recordType: "krsChange"`, `krsNumber`, `changeDate`, optional `changeHourFrom` / `changeHourTo`, `sourceUrl`. Detail rows are normal company records with `changeDate`, `changeSource: "bulletin"`, and the same hour fields.

**VAT subjects without KRS:** `recordType: "vatSubject"`, `name`, `nip`, `regon`, `identifierType`, `identifier`, `vatStatus`, `taxRegistry`, `address.fullAddress`, `sourceUrl`; if a KRS number exists but its extract cannot be fetched, `krsExtractUnavailable: true` is added.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | select | `byKrsNumber` | `byKrsNumber`, `byNipOrRegon`, or `krsChangesByDate` |
| `krsNumbers` | array | `["0000006865"]` | KRS numbers for `byKrsNumber` |
| `identifiers` | array | `[]` | NIP or REGON for `byNipOrRegon` |
| `register` | select | `P` | `P`, `S`, or `AUTO` |
| `extractType` | select | `Aktualny` | `Aktualny` or `Pelny` |
| `publicBenefitOrgOnly` | bool | `false` | Only emit OPP-status entities |
| `enrichWithVatRegistry` | bool | `false` | Add VAT whitelist data to KRS lookups |
| `includeBankAccounts` | bool | `true` | Include `taxRegistry.bankAccounts` |
| `vatDate` | date | — (today) | VAT status date (not in the future) |
| `changeDate` | date | — (yesterday) | Bulletin date (from 2022-03-08) |
| `hourFrom` / `hourTo` | int | — | Hourly bulletin range (0–23, from < to) |
| `includeCompanyDetails` | bool | `false` | Fetch full records for bulletin changes |
| `maxItems` | int | `20` | Hard cap (1–10,000) |

#### Example: lookup a company (current state)

```json
{
  "mode": "byKrsNumber",
  "krsNumbers": ["0000006865"],
  "register": "P",
  "extractType": "Aktualny"
}
```

#### Example: full historical extract

```json
{
  "mode": "byKrsNumber",
  "krsNumbers": ["0000003733"],
  "register": "P",
  "extractType": "Pelny"
}
```

#### Example: resolve a NIP and fetch the company

```json
{
  "mode": "byNipOrRegon",
  "identifiers": ["527-227-08-74"],
  "register": "AUTO"
}
```

#### Example: monitor one day of KRS changes with company details

```json
{
  "mode": "krsChangesByDate",
  "changeDate": "2026-12-04",
  "includeCompanyDetails": true,
  "maxItems": 100
}
```

### Use cases

- **KYB / KYC due diligence** — verify a Polish counterparty's legal status, address, board, shareholders, VAT status, and bank accounts.
- **Bulk enrichment** — feed a list of KRS numbers or NIP/REGON identifiers and get clean JSON/CSV/Excel rows.
- **Ownership research** — pull sp. z o.o. shareholders and sole shareholders of joint-stock companies, including historical holders on full extracts.
- **Change monitoring** — run daily or hourly bulletins to see exactly which entities changed, then fetch only those extracts.
- **Corporate history and M\&A** — full field-change history, court filing entries, mergers, divisions, transformations, liquidation, and bankruptcy sections.
- **Nonprofit research** — identify Public Benefit Organizations (register=S, OPP status, paid/unpaid PKD scope).

### FAQ

**What's KRS?** The Krajowy Rejestr Sądowy — Poland's National Court Register, the authoritative public record of companies, partnerships, foundations, associations, and public healthcare institutions. It is maintained by the Ministry of Justice.

**Why can't I search by company name?** The official KRS API only accepts a KRS number, and the public search portal is protected by a WAF that blocks automated access. This actor resolves NIP/REGON to KRS instead, which covers most business workflows without a name search.

**Why are board-member names masked?** The Ministry's API deliberately masks surnames, first names, and PESEL numbers (e.g. `N**********`). The full-name PDF is only available through the WAF-protected portal, so this actor cannot expose it.

**Can I download financial statements?** No. The financial-document repository is a separate reCAPTCHA-protected portal. This actor returns the official filing notices (submission date and period) that appear in the KRS extract.

**How do I know which register a company is in?** Businesses, partnerships, and sole traders are in P; foundations, associations, and most nonprofits are in S. Use `register: "AUTO"` to try both automatically.

**What's the difference between Aktualny and Pełny?** `Aktualny` is the current state. `Pełny` includes the complete field history — every prior name, address, capital amount, board composition, and filing entry — in `history[]` and `entriesHistory[]`, plus `active` flags on people and shareholders.

**Are the dates ISO?** The original registry fields keep the official DD.MM.YYYY text, and key fields also get an ISO companion (`registrationDateIso`, `lastEntryDateIso`, `stateAsOfDateIso`, `firstFiscalYearEndDateIso`). VAT whitelist and bulletin dates are ISO.

**How fresh is the data?** Real-time — every request reads live from the government APIs.

### Limitations

- **Name search is not available.** The official API accepts only KRS numbers; the WAF-protected search portal blocks automated access. Resolve a known NIP/REGON instead.
- **Board-member and shareholder personal names are masked** in the official JSON API. Full names exist only in the WAF-protected PDF portal.
- **Financial-statement files are not available.** The repository is reCAPTCHA-protected; only the filing notices from the extract are returned.
- **Bulletins start on 2022-03-08.** Earlier dates return a 400 from the official API.
- **A full extract can be large.** Complete history is returned intentionally; use `maxItems` to cap the number of entities, not the history depth.
- **`AUTO` costs two requests for numbers in the S register.** Register P is tried first.

# Actor input Schema

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

What to fetch.

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

Polish KRS registry numbers, e.g. `0000006865`. Leading zeros optional. Used by `mode=byKrsNumber`.

## `identifiers` (type: `array`):

Polish NIP (10 digits) or REGON (9 or 14 digits), with or without dashes, e.g. `5272270874` or `016231431`. Used by `mode=byNipOrRegon`; the actor resolves the KRS number through the official VAT whitelist.

## `register` (type: `string`):

Which KRS register the numbers belong to. `AUTO` tries P then S. `byNipOrRegon` and bulletin-detail lookups try the other register automatically when the first misses.

## `extractType` (type: `string`):

Current state only, or the full historical extract with every past entry and the complete field-change history.

## `publicBenefitOrgOnly` (type: `boolean`):

Only emit entities with official Public Benefit Organization (OPP) status. Mainly relevant for register=S.

## `enrichWithVatRegistry` (type: `boolean`):

For `mode=byKrsNumber`, also fetch the official VAT whitelist record (VAT status, bank accounts, working address, registration/removal dates). Adds one request per company. `byNipOrRegon` always includes it.

## `includeBankAccounts` (type: `boolean`):

Include the VAT whitelist bank-account list in `taxRegistry.bankAccounts`.

## `vatDate` (type: `string`):

Date for the VAT whitelist lookup (YYYY-MM-DD); defaults to today. Cannot be in the future.

## `changeDate` (type: `string`):

Date of the KRS change bulletin (YYYY-MM-DD); defaults to yesterday. Available from 2022-03-08 onwards. Used by `mode=krsChangesByDate`.

## `hourFrom` (type: `integer`):

Start hour for the hourly bulletin. Set both `hourFrom` and `hourTo`, or leave both empty for the full day.

## `hourTo` (type: `integer`):

End hour for the hourly bulletin; must be greater than `hourFrom`.

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

For `mode=krsChangesByDate`, fetch a full company record for every changed KRS number. Off returns lightweight KRS-change rows only (faster and much cheaper for large daily bulletins).

## `maxItems` (type: `integer`):

Hard cap on emitted records (and on KRS numbers processed in bulletin mode).

## Actor input object example

```json
{
  "mode": "byKrsNumber",
  "krsNumbers": [
    "0000006865"
  ],
  "identifiers": [],
  "register": "P",
  "extractType": "Aktualny",
  "publicBenefitOrgOnly": false,
  "enrichWithVatRegistry": false,
  "includeBankAccounts": true,
  "includeCompanyDetails": false,
  "maxItems": 3
}
```

# Actor output Schema

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

Dataset containing all scraped KRS entities.

# 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": "byKrsNumber",
    "krsNumbers": [
        "0000006865"
    ],
    "identifiers": [],
    "register": "P",
    "extractType": "Aktualny",
    "publicBenefitOrgOnly": false,
    "enrichWithVatRegistry": false,
    "includeBankAccounts": true,
    "includeCompanyDetails": false,
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/poland-krs-full-extract-and-filing-history-lookup").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": "byKrsNumber",
    "krsNumbers": ["0000006865"],
    "identifiers": [],
    "register": "P",
    "extractType": "Aktualny",
    "publicBenefitOrgOnly": False,
    "enrichWithVatRegistry": False,
    "includeBankAccounts": True,
    "includeCompanyDetails": False,
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/poland-krs-full-extract-and-filing-history-lookup").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": "byKrsNumber",
  "krsNumbers": [
    "0000006865"
  ],
  "identifiers": [],
  "register": "P",
  "extractType": "Aktualny",
  "publicBenefitOrgOnly": false,
  "enrichWithVatRegistry": false,
  "includeBankAccounts": true,
  "includeCompanyDetails": false,
  "maxItems": 3
}' |
apify call dataspryva/poland-krs-full-extract-and-filing-history-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/poland-krs-full-extract-and-filing-history-lookup"
        }
    }
}
```

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/wjCwVzcJ1VIsGOFtS/builds/XGCTBUkHeCz0B9Hba/openapi.json
