# Poland KRS Company Register Scraper (`nanodata/poland-krs-company-scraper`) Actor

Look up Polish companies, foundations and associations by KRS number in the official National Court Register: name, legal form, NIP, REGON, address, share capital, management board, supervisory board, partners and activity codes. Pay per company.

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

## Pricing

from $3.00 / 1,000 company scrapeds

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 Register Scraper

Read entries of the Polish National Court Register (KRS, Krajowy Rejestr Sadowy) by KRS number. Each row is the current extract of one entity: name, legal form, NIP, REGON, registered address, share capital, management board, supervisory board, partners and activity codes. You pay per entry delivered.

The data comes from the official public register of the Polish Ministry of Justice. The actor outputs what the register publishes and nothing else. No account and no API key are needed.

Data comes from [the Polish National Court Register](https://wyszukiwarka-krs.ms.gov.pl/).

### What you get

For each KRS number that has an entry the actor returns one row with:

- `krs`, `register`: the 10-digit KRS number and the register it was read from (`P` or `S`)
- `name`, `legalForm`, `nip`, `regon`: as registered
- `seat`: country, voivodeship, county, municipality and city of the seat
- `address`: street, house number, unit number, postal code, city, post office, country, and a one-line `text`
- `email`, `website`, `eDeliveryAddress`: only when the register publishes them
- `shareCapital`: `amount`, `currency`, `paidUp`, `sharesCount`, `shareValue`, `shareCurrency` where the entry has them
- `registrationDate`, `lastEntryDate`, `lastEntryNumber`, `stateAsOf`: dates as `YYYY-MM-DD`
- `inLiquidation`, `dissolved`: true when the extract shows an open liquidation or a dissolution
- `representation`: the representing body (for example the management board), the rule of representation, and its members with name and function
- `supervisoryBoard`: each supervisory body with its members
- `proxies`: holders of a commercial power of attorney (prokura), name only
- `partners`: partners of limited liability companies and partnerships, with the text of their shares
- `pkdMain`, `pkdOther`: activity codes with descriptions, for example `41.10.Z`
- `branches`: branches listed in the extract, with name and city
- `sourceUrl`, `scrapedAt`
- `raw`: the complete extract as published, only with `includeRaw`

A value the register does not show is null or an empty list. People appear exactly as the register prints them. The register itself shortens first names and surnames to the first letter followed by asterisks, and personal identification numbers are not output.

### Typical uses

- Check a Polish company by KRS number: legal form, seat, capital, who represents it
- Keep a record of management boards and supervisory boards for compliance and due diligence
- Add NIP, REGON and address to a list of KRS numbers you already hold
- Watch the date of the last entry to find companies whose data changed

### Pricing

You pay per entry delivered, plus a small fee for each run.

| Event | Name | Price |
|---|---|---|
| Run start (charged once, together with the first delivered row) | `actor-start` | $0.001 per run |
| One KRS entry | `company-result` | $0.003 per entry |

KRS numbers without an entry are skipped and not charged. A run that finds nothing is not charged. If you set a maximum cost for the run, the actor stops cleanly once the next row would go over it.

**New to Apify?** Every account gets a $5 free monthly platform credit, enough for a first test run before you pay anything.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `krsNumbers` | list | none | KRS numbers such as `0000028860`. Numbers without leading zeros are accepted |
| `rangeFrom`, `rangeTo` | numbers | none | Read every number from `rangeFrom` to `rangeTo`, at most 5000 numbers apart |
| `register` | text | `P` | `P` (register of entrepreneurs), `S` (register of associations, other social and professional organisations, foundations and public health care units) or `both` |
| `maxResults` | number | 50 | Maximum entries to deliver, up to 100,000 |
| `includeRaw` | true or false | false | Add the complete extract in `raw`. Rows become much larger |

How it works:

- Give `krsNumbers`, a range, or both. A run with neither stops with a message and charges nothing.
- The register has no search by name. To find a company by name, look up its KRS number first, for example on the website of the Ministry of Justice.
- The actor reads one extract per number, one after another and with a pause between requests. A range of 1000 numbers takes about 10 minutes.
- Many numbers in a range have no entry. They are skipped, counted in the log and never charged.
- With `register` set to `both` the actor asks register `P` first and register `S` for numbers that `P` does not have. That doubles the requests for numbers that exist in neither.
- If the register asks the actor to slow down, the actor waits 5, 15 and 45 seconds and then stops with a message. Rows read so far are delivered.
- The log shows the number of requests, so you can plan the size of a run.
- Number fields also accept numbers written as text, for example `"50"`.

#### Example: three KRS numbers

```json
{
  "krsNumbers": ["0000028860", "0000850001", "0000500000"],
  "register": "P",
  "maxResults": 20
}
```

#### Example: a range of numbers with the complete extract

```json
{
  "rangeFrom": 850000,
  "rangeTo": 850099,
  "maxResults": 100,
  "includeRaw": true
}
```

### Output sample

```json
{
  "krs": "0000850001",
  "register": "P",
  "name": "PETRA INVEST GREEN ENERGY SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ",
  "legalForm": "SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ",
  "nip": "5252828847",
  "regon": "38656552700000",
  "seat": { "country": "POLSKA", "voivodeship": "MAZOWIECKIE", "county": "WARSZAWA", "municipality": "WARSZAWA", "city": "WARSZAWA" },
  "address": { "street": "UL. NIECAŁA", "houseNumber": "7", "unitNumber": "21", "postalCode": "00-098", "city": "WARSZAWA", "postOffice": "WARSZAWA", "country": "POLSKA", "text": "UL. NIECAŁA 7/21, 00-098 WARSZAWA" },
  "email": null,
  "website": null,
  "eDeliveryAddress": null,
  "shareCapital": { "amount": 5000, "currency": "PLN", "paidUp": null, "sharesCount": null, "shareValue": null, "shareCurrency": null },
  "registrationDate": "2020-07-17",
  "lastEntryDate": "2020-07-20",
  "lastEntryNumber": 3,
  "stateAsOf": "2025-11-21",
  "inLiquidation": false,
  "dissolved": false,
  "representation": {
    "bodyName": "ZARZĄD",
    "rule": "KAŻDY CZŁONEK ZARZĄDU JEST UPRAWNIONY DO REPREZENTOWANIA SPÓŁKI SAMODZIELNIE",
    "members": [
      { "firstName": "Z****", "secondName": null, "lastName": "F*****", "secondLastName": null, "entityName": null, "function": "PREZES ZARZĄDU", "suspended": false, "shares": null }
    ]
  },
  "supervisoryBoard": [],
  "proxies": [],
  "partners": [
    { "firstName": "Z****", "secondName": null, "lastName": "F*****", "secondLastName": null, "entityName": null, "function": null, "suspended": null, "shares": "100 UDZIAŁÓW O ŁĄCZNEJ WARTOŚCI 5.000,00 ZŁ" }
  ],
  "pkdMain": { "code": "41.10.Z", "description": "REALIZACJA PROJEKTÓW BUDOWLANYCH ZWIĄZANYCH ZE WZNOSZENIEM BUDYNKÓW" },
  "pkdOther": [{ "code": "35.1", "description": "WYTWARZANIE, PRZESYŁANIE, DYSTRYBUCJA I HANDEL ENERGIĄ ELEKTRYCZNĄ" }],
  "branches": [],
  "sourceUrl": "https://api-krs.ms.gov.pl/api/krs/OdpisAktualny/0000850001?rejestr=P&format=json",
  "scrapedAt": "2026-11-12T12:00:00Z"
}
```

(`pkdOther` is shortened in this sample.)

### Limitations

- The register can only be asked by KRS number. There is no search by name, NIP or address.
- The data is the current extract. Past states of an entry and filed financial statements are not included.
- The register prints names of people in shortened form, and the actor passes them on as printed. Personal identification numbers are not output.
- Share capital and share values are numbers parsed from the printed text. Check `raw` if the register prints something unusual.
- Activity codes follow the register. A code such as `35.1` means class 35.1 without a subclass letter.
- Large entities have long extracts and take a little longer to read.
- If the register refuses every request, the run ends without an error, nothing is charged, and the run output (record OUTPUT) says status blocked. Try again later.
- The register may change its format or limit the request rate. The run then stops with a status that says so, and only delivered rows are charged.

### FAQ

**Do I need an account or a key?**
No. The actor reads the public register.

**Where does the data come from?**
From the official public register of the Polish Ministry of Justice (Krajowy Rejestr Sadowy). The actor does not add data from other sources.

**How do I find the KRS number of a company?**
The register has no search by name in this interface. Use the website of the Ministry of Justice or the number printed on the company's invoices or website, then enter it here.

**Why did I get fewer rows than `maxResults`?**
The numbers you gave hold fewer entries, or the maximum cost you set for the run was reached. The run status message says which.

**What happens with a number that has no entry?**
It is skipped, counted in the log and not charged.

**Which register should I choose?**
Most companies are in `P`. Choose `S` for associations, other social and professional organisations, foundations and public health care units. Choose `both` if you do not know.

**Can a run be restarted safely?**
Yes. Progress is saved after every batch. A restarted run continues where it stopped and does not deliver or charge the same rows twice.

**Is this affiliated with the Ministry of Justice?**
No. This is an independent tool that reads public data. Please keep your use modest and in line with the terms of the source.

### Use with AI agents (MCP)

Connect this actor to any MCP-compatible AI client, such as Claude Desktop, Cursor, VS Code, LangChain or LlamaIndex.

**MCP server URL:**

```
https://mcp.apify.com?tools=nanodata/poland-krs-company-scraper
```

**Example prompt once connected:**

> "Use `poland-krs-company-scraper` to look up Polish companies by KRS number and show legal form, address and board members. Return results as a table."

### Related Actors

- [France Company Registry Scraper](https://apify.com/nanodata/france-company-registry-scraper): Search the French business register by keyword, activity code, department, postal code and more.
- [UK Companies House Scraper](https://apify.com/santamaria-automations/uk-companies-house-scraper): Search UK Companies House for company records.
- [Kompass Scraper: B2B Company Leads, Phones & Emails](https://apify.com/santamaria-automations/kompass-scraper): Scrape company data from Kompass, a global B2B directory in 70+ countries: name, website, phone, email, address, employee count and certifications.

### Support

Found a problem or need a field added? Open an issue on the [Issues tab](https://apify.com/nanodata/poland-krs-company-scraper/issues). We usually reply within one business day. You can also email contact@nanoscrape.com.

# Actor input Schema

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

KRS numbers to read, for example 0000028860. Numbers without leading zeros are accepted. Use this or the number range below.

## `rangeFrom` (type: `integer`):

First KRS number of a range, as a number. Use together with Range to. The register has no search, so a range reads every number in it, and numbers without an entry are skipped without charge.

## `rangeTo` (type: `integer`):

Last KRS number of the range. At most 5000 numbers from Range from.

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

P is the register of entrepreneurs. S is the register of associations, other social and professional organisations, foundations and public health care units. both tries P first and then S for every number, which doubles the requests for numbers that are not in P.

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

Maximum number of entries to deliver. Default 50.

## `includeRaw` (type: `boolean`):

Add the complete register extract as published, in the field raw. Makes every row much larger. Default off.

## Actor input object example

```json
{
  "krsNumbers": [
    "0000028860",
    "0000850001",
    "0000500000"
  ],
  "register": "P",
  "maxResults": 20,
  "includeRaw": false
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

One row per KRS entry

# 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",
        "0000850001",
        "0000500000"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("nanodata/poland-krs-company-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",
        "0000850001",
        "0000500000",
    ],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("nanodata/poland-krs-company-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",
    "0000850001",
    "0000500000"
  ],
  "maxResults": 20
}' |
apify call nanodata/poland-krs-company-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nanodata/poland-krs-company-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/1hAgFlHjfvsTb7pvV/builds/xhy5ZTbbRAjZMA0Fc/openapi.json
