# Poland KRS Financial Statements Scraper (`regdata/poland-krs-financial-scraper`) Actor

Extract official financial statements from the Polish National Court Register (Krajowy Rejestr Sadowy - KRS). This Actor scrapes annual financial reports (sprawozdania finansowe) directly from the official eKRS portal (ekrs.ms.gov.pl).

- **URL**: https://apify.com/regdata/poland-krs-financial-scraper.md
- **Developed by:** [regdata](https://apify.com/regdata) (community)
- **Categories:** Business, Lead generation, Automation
- **Stats:** 32 total users, 10 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 financial statements

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Poland KRS Financial Statements Scraper (eKRS) | Sprawozdania finansowe z KRS

Extract official financial statements - balance sheets, income statements, assets, equity, revenue, and net profit - from Poland's National Court Register. Provide a KRS or NIP number and get structured financial data in seconds.

### Quick Start

Click **Try it** and paste this input:

```json
{
  "krs": "0000023302"
}
````

### Sample Output

```json
{
  "krs": "0000024785",
  "companyName": "CASTORAMA POLSKA SPOLKA Z OGRANICZONA ODPOWIEDZIALNOSCIA",
  "year": 2025,
  "fileFormat": "xml",
  "financials": {
    "totalAssets": 7703597,
    "equity": 6188642,
    "revenue": 9221810,
    "netProfit": 134309
  },
  "success": true
}
```

### Pricing

| Volume | Cost |
|--------|------|
| 1 company | $0.008 |
| 100 companies | ~$0.81 |
| 1,000 companies | ~$8.01 |
| 10,000 companies | ~$80.01 |

Start cost per run: **$0.005**. Free Apify credits ($5) = ~625 companies at no cost. No charge on failure - if no statement is found, you pay nothing.

### Features

- **NIP to KRS lookup** - provide a Tax ID and get financial data automatically
- **Direct KRS lookup** - faster when you already have the KRS number
- **Parsed financials** - key metrics (assets, equity, revenue, profit) extracted automatically
- **Multiple formats** - supports XML (Polish standards), XHTML/iXBRL (IFRS), detects PDF
- **Raw file output** - complete official file content for custom processing
- **Rate limiting protection** - built-in retry logic with exponential backoff
- **Proxy support** - optional Apify Proxy for high-volume runs

### Related Actors

- [KRS Board Members Scraper](https://apify.com/regdata/krs-fullnames-scraper) - get full non-anonymized director names for the same company
- [CRBR Beneficial Owners Scraper](https://apify.com/regdata/crbr-beneficial-owners-scraper) - verify UBO declarations for KYC/AML compliance
- [KRZ Debtor Registry Scraper](https://apify.com/regdata/krz-debtor-scraper) - check bankruptcy and restructuring proceedings

### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `nip` | string | No\* | Polish Tax ID (NIP). Auto-resolves to KRS if provided |
| `krs` | string | No\* | KRS number. Will be padded to 10 digits if shorter |
| `proxyConfiguration` | object | No | Apify Proxy config. Residential proxy recommended for bulk runs |

\*At least one of `nip` or `krs` must be provided.

### Output Fields

| Field | Description |
|-------|-------------|
| `nip` | NIP used for lookup (if provided) |
| `krs` | KRS number (10 digits) |
| `companyName` | Full legal company name from KRS |
| `year` | Financial year of the statement |
| `fileName` | Original filename from eKRS |
| `fileFormat` | File format: `xml`, `xhtml`, or `pdf` |
| `rawXml` | Complete raw file content (XML/XHTML). `null` for PDF |
| `financials` | Parsed financial metrics (see below). `null` for PDF |
| `success` | Whether extraction was successful |

#### Parsed Financial Metrics

**Balance Sheet:** `totalAssets`, `fixedAssets`, `currentAssets`, `cashAndEquivalents`, `equity`, `shareCapital`, `longTermLiabilities`, `shortTermLiabilities`

**Income Statement:** `revenue`, `operatingProfit`, `grossProfit`, `netProfit`

### Use Cases

- **Due Diligence** - check financial health of potential partners, vendors, or acquisition targets
- **Credit Risk** - assess company solvency before extending credit
- **Investment Research** - analyze financial performance of Polish companies
- **Competitive Intelligence** - compare financials across industry peers
- **KYC/AML** - verify financial standing as part of compliance workflows

### Data Source & Compliance

- **KRS Search**: https://wyszukiwarka-krs.ms.gov.pl/
- **Financial Documents**: https://rdf-przegladarka.ms.gov.pl/
- **Legal basis**: Polish Commercial Companies Code, Polish Accounting Act, Freedom of Information Act
- All data is publicly available under Polish law. Companies registered in KRS are legally required to publish annual financial statements.

> **Updated March 2026**: Fully rewritten for the new Angular eKRS portal at `rdf-przegladarka.ms.gov.pl`.

### Polish Business Data Suite

This actor is part of the **Polish Business Data Suite** - 9 actors covering the full Polish company intelligence stack. No subscriptions, no minimum commitment - pay only for what you use.

| Registry | Actor | What it does |
|----------|-------|-------------|
| **eKRS** | [Financial Statements](https://apify.com/regdata/poland-krs-financial-scraper) | Balance sheets, income statements |
| **KRS** | [Board Members](https://apify.com/regdata/krs-fullnames-scraper) | Full non-anonymized director names |
| **KRZ** | [Debtor Registry](https://apify.com/regdata/krz-debtor-scraper) | Bankruptcy, restructuring, enforcement |
| **KNF** | [Financial Supervision](https://apify.com/regdata/knf-registry-scraper) | 75,000+ regulated financial entities |
| **MSiG** | [Court Gazette](https://apify.com/regdata/msig-scraper) | Court announcements since 2001 |
| **EKW** | [Land Registry](https://apify.com/regdata/ekw-ksiegi-wieczyste-scraper) | Property ownership, mortgages, restrictions |
| **CRBR** | [Beneficial Owners](https://apify.com/regdata/crbr-beneficial-owners-scraper) | UBO verification by NIP/KRS |
| **UOKiK** | [Abusive Clauses](https://apify.com/regdata/uokik-clauses-scraper) | 7,500+ banned contract clauses |
| **BDO** | [Waste Registry](https://apify.com/regdata/bdo-waste-registry-scraper) | 674,000+ waste management entities |

> **Full suite**: [apify.com/regdata](https://apify.com/regdata)

### Informacje po polsku

#### Czym jest ten aktor?

Ten aktor pobiera oficjalne **sprawozdania finansowe** z Krajowego Rejestru Sadowego (KRS) - bilans, rachunek zyskow i strat, aktywa, kapital wlasny, przychody i zysk netto. Wystarczy podac numer KRS lub NIP, a aktor automatycznie znajdzie i pobierze najnowsze roczne sprawozdanie finansowe z portalu eKRS (rdf-przegladarka.ms.gov.pl). Dane sa parsowane z plikow XML (Polska Rachunkowosc) i XHTML/iXBRL (MSSF/IFRS) do ustrukturyzowanego JSON.

#### Dla kogo?

Narzedzie jest przeznaczone dla **analitykow ryzyka kredytowego** oceniajacych wyplacalnosc kontrahentow, **funduszy inwestycyjnych** analizujacych wyniki finansowe spolek, **dzialow compliance** weryfikujacych kondycje finansowa partnerow biznesowych, **kancelarii prawnych** prowadzacych due diligence, oraz **firm consultingowych** porownujacych dane finansowe w branzach.

#### Jak zaczac?

Podaj numer KRS lub NIP i uruchom aktora. Uzyj KRS bezposrednio dla szybszych wynikow. Dla duzych partii zapytan zalecane jest uzycie proxy rezydencjalnych. Brak subskrypcji - placisz tylko za faktyczne uzycie. Brak oplat za nieudane proby - jesli sprawozdanie nie zostanie znalezione, nie ponosisz kosztow.

### Limitations

- **PDF files cannot be parsed** for structured financial data (~10-15% of filings)
- **Only the latest financial statement** is returned - historical statements are not yet supported
- **XHTML/iXBRL parsing is partial** - raw content always available via `rawXml` for custom processing
- **Processing time**: 15-60 seconds per company
- **NIP lookup adds time**: additional 5-15 seconds for NIP-to-KRS resolution
- **Some companies have no statements**: newly registered or exempt micro-entities

***

### Sprawozdania finansowe z KRS - dane finansowe online

Automatyczne pobieranie sprawozdań finansowych z portalu eKRS (ekrs.ms.gov.pl). Bilans, rachunek zysków i strat, aktywa, pasywa, przychody i zysk netto - wszystko w formacie JSON. Wyszukiwanie po numerze KRS lub NIP. Idealne dla analityków finansowych, firm audytorskich i systemów due diligence. Jedyny programistyczny dostep do danych finansowych z KRS bez potrzeby recznego logowania do portalu.

# Actor input Schema

## `nip` (type: `string`):

Polish Tax Identification Number (NIP). If provided without KRS, the actor will first look up KRS from wyszukiwarka-krs.ms.gov.pl

## `krs` (type: `string`):

Polish National Court Register (KRS) number. Will be padded to 10 digits if shorter. If not provided, will be looked up by NIP.

## `proxyConfiguration` (type: `object`):

Use Apify Proxy (residential recommended) to avoid IP-based rate limiting. Leave empty for direct connection — works fine for single queries.

## Actor input object example

```json
{
  "krs": "0000023302"
}
```

# Actor output Schema

## `financialStatements` (type: `string`):

Company financial data including KRS, NIP, year, total assets, equity, revenue, net profit, and raw XML/XHTML content.

# 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 = {
    "krs": "0000023302"
};

// Run the Actor and wait for it to finish
const run = await client.actor("regdata/poland-krs-financial-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 = { "krs": "0000023302" }

# Run the Actor and wait for it to finish
run = client.actor("regdata/poland-krs-financial-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "krs": "0000023302"
}' |
apify call regdata/poland-krs-financial-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=regdata/poland-krs-financial-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Poland KRS Financial Statements Scraper",
        "description": "Extract official financial statements from the Polish National Court Register (Krajowy Rejestr Sadowy - KRS). This Actor scrapes annual financial reports (sprawozdania finansowe) directly from the official eKRS portal (ekrs.ms.gov.pl).",
        "version": "1.0",
        "x-build-id": "TnCTYSsJEWF0Zq3af"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/regdata~poland-krs-financial-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-regdata-poland-krs-financial-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/regdata~poland-krs-financial-scraper/runs": {
            "post": {
                "operationId": "runs-sync-regdata-poland-krs-financial-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/regdata~poland-krs-financial-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-regdata-poland-krs-financial-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "nip": {
                        "title": "NIP Number",
                        "type": "string",
                        "description": "Polish Tax Identification Number (NIP). If provided without KRS, the actor will first look up KRS from wyszukiwarka-krs.ms.gov.pl"
                    },
                    "krs": {
                        "title": "KRS Number",
                        "type": "string",
                        "description": "Polish National Court Register (KRS) number. Will be padded to 10 digits if shorter. If not provided, will be looked up by NIP."
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Use Apify Proxy (residential recommended) to avoid IP-based rate limiting. Leave empty for direct connection — works fine for single queries."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
