# KRS Rejestr Poland Scraper - Polish Company Registry API (`kamerozkan/poland-krs-rejestr-scraper`) Actor

Extract Polish company data from KRS Rejestr (api-krs.ms.gov.pl): NIP, REGON, legal form, address, share capital, PKD codes, management, financial filing dates and daily KRS Biuletyn updates. Fast HTTP JSON, no proxy or API key.

- **URL**: https://apify.com/kamerozkan/poland-krs-rejestr-scraper.md
- **Developed by:** [Kamer Ozkan](https://apify.com/kamerozkan) (community)
- **Categories:** Lead generation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.40 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## KRS Rejestr Poland Scraper - Polish Company Registry API

**KRS Rejestr Poland Scraper** is a fast, plain-HTTP JSON extractor for the official Polish National Court Register (`api-krs.ms.gov.pl`): look up companies by KRS number or pull daily `KRS Biuletyn` updates (`Odpis Aktualny` and `Odpis Pelny`) with NIP, REGON, address, share capital, PKD codes, governance bodies, and financial filing dates.

### What does KRS Rejestr Poland Scraper do?

It reads public company and association records directly from the Polish Ministry of Justice Open API (`api-krs.ms.gov.pl`) over plain HTTP JSON without a browser, proxy setup, or API key. You can look up specific 10-digit (or shorter, auto-padded) KRS numbers across both the Entrepreneurs Register (`RejP`) and Associations & Foundations Register (`RejS`), or monitor daily changes via the official **KRS Biuletyn** (`biuletynDate`).

Built-in **Only new KRS companies (watch mode)** remembers previously delivered KRS numbers in a named Apify Key-Value Store so scheduled daily Biuletyn runs deliver and bill only newly seen entities.

### Who is it for?

- **KYB, AML, and compliance teams:** verify Polish counterparties with official NIP, REGON, legal form, court registration date, share capital, representation rules, and liquidation or insolvency flags.
- **B2B sales and lead generation teams:** pull newly registered or updated Polish companies daily from `KRS Biuletyn` with primary PKD industry classification, city, voivodeship, official email, and website.
- **Financial and credit analysts:** track annual financial statement filing dates (`latestFinancialFiling`), mergers/splits (`hasMergerOrSplit`), and optional full entry history (`Odpis Pelny`).
- **Automation and AI agent builders:** run sub-5-second company lookups in **n8n**, **Make**, or via **Apify MCP**.

### What data can you get?

| Field | Description / Example |
|---|---|
| `krsNumber`, `register`, `registerCode` | 10-digit KRS number (`"0000004549"`), register (`"P"` or `"S"`), code (`"RejP"` / `"RejS"`) |
| `name`, `legalForm`, `isOpp` | Registered company name, legal form (`"SPOLKA AKCYJNA"`), public benefit flag |
| `nip`, `regon` | Polish tax ID (`"7130005784"`) and statistical ID (`"43030921000000"`) |
| `registrationDate`, `lastEntryDate`, `lastEntryNumber`, `court` | Registration date, latest entry date/number, and competent registry court |
| `voivodeship`, `county`, `municipality`, `city`, `street`, `postalCode`, `fullAddress` | Registered seat and full street address |
| `email`, `website`, `eDeliveryAddress` | Official company email, website, and e-Doreczenia (`BAE`) address when published |
| `shareCapital`, `shareCapitalCurrency`, `paidUpCapital`, `totalShares` | Share capital (`170067950`, `"PLN"`), paid-up capital, and share count |
| `primaryPkd`, `pkdCodes` | Primary and secondary PKD industry codes and descriptions |
| `boardName`, `representationMethod`, `boardMembersCount`, `boardMembers` | Management board, representation rules, and role list |
| `supervisoryBoardCount`, `supervisoryBoard`, `proxiesCount`, `proxies` | Supervisory board members and authorized proxies (`prokurenci`) |
| `branchesCount`, `financialFilingsCount`, `latestFinancialFiling` | Number of branches and annual financial filing mentions (`filedAt`, `period`) |
| `hasMergerOrSplit`, `hasLiquidationOrInsolvency` | Boolean flags for mergers/splits (`dzial6`) or insolvency/liquidation notices |
| `historyEntriesCount`, `historicalNames`, `recentHistory` | Included when `includeFullHistory` is enabled (`Odpis Pelny`) |
| `source`, `apiUrl`, `scrapedAt` | Source tag (`"direct"` or `"biuletyn:YYYY-MM-DD"`), canonical API URL, UTC timestamp |

Note: Poland's public KRS Open API (`api-krs.ms.gov.pl`) masks personal names and PESEL identifiers of individuals on board and supervisory lists for privacy. Only official corporate registry records and company-published business contact fields are returned.

### How much does it cost?

You pay only for delivered company records (`company` event): **$8.00 per 1,000 companies** ($0.008 per company) on the Free plan, with Apify Store plan discounts automatically applied:

- **Free:** $8.00 per 1,000 companies ($0.008 / company)
- **Bronze:** $7.20 per 1,000 companies ($0.0072 / company)
- **Silver:** $6.80 per 1,000 companies ($0.0068 / company)
- **Gold and above:** $6.40 per 1,000 companies ($0.0064 / company)

**Worked example:** Looking up 1,000 Polish companies by KRS number or via the daily KRS Biuletyn costs 1,000 x $0.008 = **$8.00** on the Free plan (or **$6.40** on Gold). Invalid inputs, non-existent KRS numbers, or watch-mode runs with zero new companies finish cleanly with **$0.00** charged. Set `maxItems` or a maximum run charge to cap spending.

### How to use it

1. Click **Try for free**.
2. Enter one or more KRS numbers in **KRS numbers** (for example `0000028860` or `4549`), or leave it empty and set **Daily Biuletyn date** (for example `latest` or `2026-11-20`).
3. Keep **KRS register** on `AUTO` to query Entrepreneurs (`P`) first and fall back to Associations (`S`), or restrict to `P` or `S`.
4. Optionally enable **Include full entry history (`Odpis Pelny`)** or **Only new KRS companies (watch mode)**.
5. Set **Max companies** (default `50`, prefill `10`) and click **Start**.

### Input example

```json
{
  "krsNumbers": [
    "0000028860",
    "0000004549",
    "0000009125"
  ],
  "register": "AUTO",
  "includeFullHistory": false,
  "maxItems": 10
}
```

### Output example

Real record from our QA run on 2026-11-21 (`0000004549`, `biuletyn:2026-11-20`):

```json
{
  "krsNumber": "0000004549",
  "register": "P",
  "registerCode": "RejP",
  "name": "LUBELSKI WĘGIEL \"BOGDANKA\" SPÓŁKA AKCYJNA",
  "legalForm": "SPÓŁKA AKCYJNA",
  "nip": "7130005784",
  "regon": "43030921000000",
  "isOpp": false,
  "registrationDate": "26.03.2001",
  "lastEntryDate": "20.11.2026",
  "lastEntryNumber": 208,
  "city": "BOGDANKA",
  "voivodeship": "LUBELSKIE",
  "postalCode": "21-013",
  "country": "POLSKA",
  "website": "WWW.LW.COM.PL",
  "shareCapital": 170067950,
  "shareCapitalCurrency": "PLN",
  "primaryPkd": "05.10.Z - WYDOBYWANIE WĘGLA KAMIENNEGO",
  "boardMembersCount": 4,
  "supervisoryBoardCount": 8,
  "hasMergerOrSplit": false,
  "hasLiquidationOrInsolvency": false,
  "source": "biuletyn:2026-11-20",
  "apiUrl": "https://api-krs.ms.gov.pl/api/krs/OdpisAktualny/0000004549?rejestr=P&format=json"
}
```

### Integrations and API

Run it from Python, Node.js, or cURL with `apify-client`, schedule daily Biuletyn runs in Apify, or connect to **n8n**, **Make**, **Zapier**, **Google Sheets**, and **Apify MCP**:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("kamerozkan/poland-krs-rejestr-scraper").call(run_input={
    "krsNumbers": ["0000028860", "0000004549"],
    "register": "AUTO",
    "maxItems": 10,
})
for company in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(company["krsNumber"], company["name"], company["nip"])
```

- **n8n & Make:** Use the Apify **Run an Actor** node with `kamerozkan/poland-krs-rejestr-scraper` or POST directly to `https://api.apify.com/v2/acts/kamerozkan~poland-krs-rejestr-scraper/run-sync-get-dataset-items`.
- **AI Agents (Apify MCP):** Connect via `@apify/actors-mcp-server --actors kamerozkan/poland-krs-rejestr-scraper`. The prefill input finishes in under 5 seconds with clean JSON output.

### FAQ

**Can I pass KRS numbers without leading zeros?**
Yes. Values such as `28860` or `627` are automatically zero-padded to 10 digits (`0000028860`, `0000000627`).

**Why are some board member names masked with asterisks?**
The official Polish Ministry of Justice Open API (`api-krs.ms.gov.pl`) masks personal names and PESEL numbers in public JSON extracts to comply with Polish and EU privacy rules.

**What happens if I pass an invalid KRS number, an unknown KRS number, or if the KRS API is under maintenance?**
Bad inputs, 404/204 KRS numbers, or temporary KRS API maintenance (`Przerwa techniczna`) end cleanly as `SUCCEEDED` with a descriptive status message and `OUTPUT` record, and **nothing is charged** when zero companies are delivered.

**Is it legal to collect this data?**
It reads official public data published by the Polish Ministry of Justice Open API (`api-krs.ms.gov.pl`). You are responsible for how you use the data, including compliance with GDPR and local regulations.

### Support and feedback

- Found a bug or missing a field? Open an issue on the **Issues** tab of this Actor. We reply within
  48 hours and ship most fixes within a few days.
- Have an idea for a feature? Issues are the fastest way to get it built.
- If the Actor saves you time, a short review on this page helps other users find it.

# Actor input Schema

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

Polish KRS numbers (up to 10 digits, automatically zero-padded, e.g. 0000028860 or 28860). Leave empty when using Daily Biuletyn date.

## `biuletynDate` (type: `string`):

Fetch companies registered or updated on a given date from the official KRS Biuletyn (YYYY-MM-DD, or 'latest' for the most recent available day).

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

Which Polish KRS register to query: AUTO tries Entrepreneurs (RejP) first and falls back to Associations/Foundations (RejS) on 404.

## `includeFullHistory` (type: `boolean`):

Also fetch Odpis Pelny to include historical company names, total entry count, and the 10 most recent register entries.

## `includeRawData` (type: `boolean`):

Attach the full raw 'odpis' JSON object returned by api-krs.ms.gov.pl to each dataset item.

## `onlyNew` (type: `boolean`):

Remember delivered KRS numbers across runs in a named Key-Value Store and output only companies not seen in previous runs.

## `watchStoreName` (type: `string`):

Named Apify Key-Value Store used to persist seen KRS numbers when watch mode is enabled.

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

Stop after delivering this many Polish KRS company records. You are charged per delivered company record, so this also caps run cost.

## Actor input object example

```json
{
  "krsNumbers": [
    "0000028860",
    "0000004549",
    "0000009125"
  ],
  "biuletynDate": "",
  "register": "AUTO",
  "includeFullHistory": false,
  "includeRawData": false,
  "onlyNew": false,
  "watchStoreName": "poland-krs-seen",
  "maxItems": 10
}
```

# Actor output Schema

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

One row per Polish KRS company record in the default dataset.

# 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 = {
    "krsNumbers": [
        "0000028860",
        "0000004549",
        "0000009125"
    ],
    "register": "AUTO",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("kamerozkan/poland-krs-rejestr-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 = {
    "krsNumbers": [
        "0000028860",
        "0000004549",
        "0000009125",
    ],
    "register": "AUTO",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("kamerozkan/poland-krs-rejestr-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 '{
  "krsNumbers": [
    "0000028860",
    "0000004549",
    "0000009125"
  ],
  "register": "AUTO",
  "maxItems": 10
}' |
apify call kamerozkan/poland-krs-rejestr-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kamerozkan/poland-krs-rejestr-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/KKlxTVFnuhkuraqdQ/builds/oHwkWRRdr2d9TtN7y/openapi.json
