{
  "data": {
    "id": "XGCTBUkHeCz0B9Hba",
    "actId": "wjCwVzcJ1VIsGOFtS",
    "userId": "zq8lKbpLzTjGDayPC",
    "startedAt": "2026-12-05T22:49:01.479Z",
    "finishedAt": "2026-12-05T22:49:04.883Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "inputSchema": "{\n  \"title\": \"Poland KRS Company Registry Scraper Input\",\n  \"description\": \"Fetch official KRS extracts by KRS number or by NIP/REGON, or monitor daily/hourly KRS change bulletins. No auth, no proxy, no cookies.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to fetch.\",\n      \"editor\": \"select\",\n      \"sectionCaption\": \"Mode & inputs\",\n      \"enum\": [\n        \"byKrsNumber\",\n        \"byNipOrRegon\",\n        \"krsChangesByDate\"\n      ],\n      \"enumTitles\": [\n        \"Look up companies by KRS number\",\n        \"Look up by NIP or REGON (resolves KRS + VAT whitelist)\",\n        \"Monitor KRS changes by date (daily/hourly bulletin)\"\n      ],\n      \"default\": \"byKrsNumber\",\n      \"prefill\": \"byKrsNumber\"\n    },\n    \"krsNumbers\": {\n      \"title\": \"KRS numbers\",\n      \"type\": \"array\",\n      \"description\": \"Polish KRS registry numbers, e.g. `0000006865`. Leading zeros optional. Used by `mode=byKrsNumber`.\",\n      \"editor\": \"stringList\",\n      \"default\": [\n        \"0000006865\"\n      ],\n      \"prefill\": [\n        \"0000006865\"\n      ]\n    },\n    \"identifiers\": {\n      \"title\": \"NIP / REGON identifiers\",\n      \"type\": \"array\",\n      \"description\": \"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.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"register\": {\n      \"title\": \"Register\",\n      \"type\": \"string\",\n      \"description\": \"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.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"P\",\n        \"S\",\n        \"AUTO\"\n      ],\n      \"enumTitles\": [\n        \"P — Register of Entrepreneurs (companies, sole traders, partnerships)\",\n        \"S — Register of Associations, Other Social & Professional Organizations, Foundations, and Public Healthcare Institutions\",\n        \"Auto-detect — try P first, then S\"\n      ],\n      \"default\": \"P\",\n      \"prefill\": \"P\"\n    },\n    \"extractType\": {\n      \"title\": \"Extract type\",\n      \"type\": \"string\",\n      \"description\": \"Current state only, or the full historical extract with every past entry and the complete field-change history.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"Aktualny\",\n        \"Pelny\"\n      ],\n      \"enumTitles\": [\n        \"Current extract (present state only)\",\n        \"Full extract (complete history, incl. deregistered entries)\"\n      ],\n      \"default\": \"Aktualny\",\n      \"prefill\": \"Aktualny\"\n    },\n    \"publicBenefitOrgOnly\": {\n      \"title\": \"Public benefit organizations only\",\n      \"type\": \"boolean\",\n      \"description\": \"Only emit entities with official Public Benefit Organization (OPP) status. Mainly relevant for register=S.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"enrichWithVatRegistry\": {\n      \"title\": \"Enrich with VAT whitelist\",\n      \"type\": \"boolean\",\n      \"description\": \"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.\",\n      \"editor\": \"checkbox\",\n      \"sectionCaption\": \"VAT whitelist enrichment\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"includeBankAccounts\": {\n      \"title\": \"Include bank accounts\",\n      \"type\": \"boolean\",\n      \"description\": \"Include the VAT whitelist bank-account list in `taxRegistry.bankAccounts`.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"vatDate\": {\n      \"title\": \"VAT status date\",\n      \"type\": \"string\",\n      \"description\": \"Date for the VAT whitelist lookup (YYYY-MM-DD); defaults to today. Cannot be in the future.\",\n      \"editor\": \"datepicker\"\n    },\n    \"changeDate\": {\n      \"title\": \"Change date\",\n      \"type\": \"string\",\n      \"description\": \"Date of the KRS change bulletin (YYYY-MM-DD); defaults to yesterday. Available from 2022-03-08 onwards. Used by `mode=krsChangesByDate`.\",\n      \"editor\": \"datepicker\",\n      \"sectionCaption\": \"KRS change monitor\"\n    },\n    \"hourFrom\": {\n      \"title\": \"Hour from (0–23)\",\n      \"type\": \"integer\",\n      \"description\": \"Start hour for the hourly bulletin. Set both `hourFrom` and `hourTo`, or leave both empty for the full day.\",\n      \"minimum\": 0,\n      \"maximum\": 23\n    },\n    \"hourTo\": {\n      \"title\": \"Hour to (0–23)\",\n      \"type\": \"integer\",\n      \"description\": \"End hour for the hourly bulletin; must be greater than `hourFrom`.\",\n      \"minimum\": 0,\n      \"maximum\": 23\n    },\n    \"includeCompanyDetails\": {\n      \"title\": \"Include company details\",\n      \"type\": \"boolean\",\n      \"description\": \"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).\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"maxItems\": {\n      \"title\": \"Max items\",\n      \"type\": \"integer\",\n      \"description\": \"Hard cap on emitted records (and on KRS numbers processed in bulletin mode).\",\n      \"sectionCaption\": \"Limits\",\n      \"minimum\": 1,\n      \"maximum\": 10000,\n      \"default\": 20,\n      \"prefill\": 3\n    }\n  },\n  \"required\": [\n    \"mode\"\n  ]\n}",
    "readme": "# Poland KRS Full Extract, Shareholders & Change Monitor\n\nLook 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.\n\n## Data source & limitations\n\nThis actor uses two official, public, unauthenticated government APIs:\n\n- **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.\n- **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.\n\nThe 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.\n\n## What this actor does\n\n- **Look up by KRS number**, one or many at once — current or full historical extract.\n- **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.\n- **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.\n- **Two registers, plus auto-detect** — P (Register of Entrepreneurs), S (Register of Associations, Foundations, and Public Healthcare Institutions), or `AUTO`.\n- **Two extract types** — current state (\"Aktualny\") or the full historical extract (\"Pełny\"), with every past field value and every court filing entry.\n- **Optional VAT enrichment** for KRS lookups — one extra request per company adds the whitelist record.\n- **Empty fields are omitted** — you only ever see fields the registry actually has data for.\n\n## Output per entity\n\n**Common fields:** `recordType`, `krsNumber`, `name`, `legalForm`, `register`, `registerCode`, `extractType`, `extractDateTime`, `stateAsOfDate`, `sourceUrl`, `scrapedAt`.\n\n**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`.\n\n**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).\n\n**Activity and filings:** `mainActivity`, `otherActivities[]`, `oppPaidActivities[]`, `oppUnpaidActivities[]`, `organizationPurpose`, `financialStatementFilings[]`, `consolidatedFinancialStatementFilings[]`, `firstFiscalYearEndDate`, `entityDurationPeriod`, `statuteGrantsPersonalRights`, `bondholdersHaveProfitShareRight`, `statuteAmendments[]`.\n\n**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.\n\n**VAT whitelist:** `vatStatus`, plus `taxRegistry` (`statusVat`, `vatRegistered`, `asOfDate`, residence/working address, registration/denial/restoration/removal dates, `hasVirtualAccounts`, `bankAccounts[]`, representatives, authorized clerks, partners).\n\n**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.\n\n**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.\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | select | `byKrsNumber` | `byKrsNumber`, `byNipOrRegon`, or `krsChangesByDate` |\n| `krsNumbers` | array | `[\"0000006865\"]` | KRS numbers for `byKrsNumber` |\n| `identifiers` | array | `[]` | NIP or REGON for `byNipOrRegon` |\n| `register` | select | `P` | `P`, `S`, or `AUTO` |\n| `extractType` | select | `Aktualny` | `Aktualny` or `Pelny` |\n| `publicBenefitOrgOnly` | bool | `false` | Only emit OPP-status entities |\n| `enrichWithVatRegistry` | bool | `false` | Add VAT whitelist data to KRS lookups |\n| `includeBankAccounts` | bool | `true` | Include `taxRegistry.bankAccounts` |\n| `vatDate` | date | — (today) | VAT status date (not in the future) |\n| `changeDate` | date | — (yesterday) | Bulletin date (from 2022-03-08) |\n| `hourFrom` / `hourTo` | int | — | Hourly bulletin range (0–23, from < to) |\n| `includeCompanyDetails` | bool | `false` | Fetch full records for bulletin changes |\n| `maxItems` | int | `20` | Hard cap (1–10,000) |\n\n### Example: lookup a company (current state)\n\n```json\n{\n  \"mode\": \"byKrsNumber\",\n  \"krsNumbers\": [\"0000006865\"],\n  \"register\": \"P\",\n  \"extractType\": \"Aktualny\"\n}\n```\n\n### Example: full historical extract\n\n```json\n{\n  \"mode\": \"byKrsNumber\",\n  \"krsNumbers\": [\"0000003733\"],\n  \"register\": \"P\",\n  \"extractType\": \"Pelny\"\n}\n```\n\n### Example: resolve a NIP and fetch the company\n\n```json\n{\n  \"mode\": \"byNipOrRegon\",\n  \"identifiers\": [\"527-227-08-74\"],\n  \"register\": \"AUTO\"\n}\n```\n\n### Example: monitor one day of KRS changes with company details\n\n```json\n{\n  \"mode\": \"krsChangesByDate\",\n  \"changeDate\": \"2026-12-04\",\n  \"includeCompanyDetails\": true,\n  \"maxItems\": 100\n}\n```\n\n## Use cases\n\n- **KYB / KYC due diligence** — verify a Polish counterparty's legal status, address, board, shareholders, VAT status, and bank accounts.\n- **Bulk enrichment** — feed a list of KRS numbers or NIP/REGON identifiers and get clean JSON/CSV/Excel rows.\n- **Ownership research** — pull sp. z o.o. shareholders and sole shareholders of joint-stock companies, including historical holders on full extracts.\n- **Change monitoring** — run daily or hourly bulletins to see exactly which entities changed, then fetch only those extracts.\n- **Corporate history and M&A** — full field-change history, court filing entries, mergers, divisions, transformations, liquidation, and bankruptcy sections.\n- **Nonprofit research** — identify Public Benefit Organizations (register=S, OPP status, paid/unpaid PKD scope).\n\n## FAQ\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**How fresh is the data?** Real-time — every request reads live from the government APIs.\n\n## Limitations\n\n- **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.\n- **Board-member and shareholder personal names are masked** in the official JSON API. Full names exist only in the WAF-protected PDF portal.\n- **Financial-statement files are not available.** The repository is reCAPTCHA-protected; only the filing notices from the extract are returned.\n- **Bulletins start on 2022-03-08.** Earlier dates return a 400 from the official API.\n- **A full extract can be large.** Complete history is returned intentionally; use `maxItems` to cap the number of entities, not the history depth.\n- **`AUTO` costs two requests for numbers in the S register.** Register P is tried first.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "poland-krs-full-extract-and-filing-history-lookup",
      "title": "Poland KRS Full Extract, Shareholders & Change Monitor",
      "description": "Look up Polish KRS companies by NIP, REGON or KRS. Get full extracts, shareholders, management, filing history, VAT status, addresses, PKD codes and change monitoring.",
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# Poland KRS Full Extract, Shareholders & Change Monitor\n\nLook 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.\n\n## Data source & limitations\n\nThis actor uses two official, public, unauthenticated government APIs:\n\n- **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.\n- **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.\n\nThe 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.\n\n## What this actor does\n\n- **Look up by KRS number**, one or many at once — current or full historical extract.\n- **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.\n- **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.\n- **Two registers, plus auto-detect** — P (Register of Entrepreneurs), S (Register of Associations, Foundations, and Public Healthcare Institutions), or `AUTO`.\n- **Two extract types** — current state (\"Aktualny\") or the full historical extract (\"Pełny\"), with every past field value and every court filing entry.\n- **Optional VAT enrichment** for KRS lookups — one extra request per company adds the whitelist record.\n- **Empty fields are omitted** — you only ever see fields the registry actually has data for.\n\n## Output per entity\n\n**Common fields:** `recordType`, `krsNumber`, `name`, `legalForm`, `register`, `registerCode`, `extractType`, `extractDateTime`, `stateAsOfDate`, `sourceUrl`, `scrapedAt`.\n\n**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`.\n\n**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).\n\n**Activity and filings:** `mainActivity`, `otherActivities[]`, `oppPaidActivities[]`, `oppUnpaidActivities[]`, `organizationPurpose`, `financialStatementFilings[]`, `consolidatedFinancialStatementFilings[]`, `firstFiscalYearEndDate`, `entityDurationPeriod`, `statuteGrantsPersonalRights`, `bondholdersHaveProfitShareRight`, `statuteAmendments[]`.\n\n**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.\n\n**VAT whitelist:** `vatStatus`, plus `taxRegistry` (`statusVat`, `vatRegistered`, `asOfDate`, residence/working address, registration/denial/restoration/removal dates, `hasVirtualAccounts`, `bankAccounts[]`, representatives, authorized clerks, partners).\n\n**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.\n\n**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.\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | select | `byKrsNumber` | `byKrsNumber`, `byNipOrRegon`, or `krsChangesByDate` |\n| `krsNumbers` | array | `[\"0000006865\"]` | KRS numbers for `byKrsNumber` |\n| `identifiers` | array | `[]` | NIP or REGON for `byNipOrRegon` |\n| `register` | select | `P` | `P`, `S`, or `AUTO` |\n| `extractType` | select | `Aktualny` | `Aktualny` or `Pelny` |\n| `publicBenefitOrgOnly` | bool | `false` | Only emit OPP-status entities |\n| `enrichWithVatRegistry` | bool | `false` | Add VAT whitelist data to KRS lookups |\n| `includeBankAccounts` | bool | `true` | Include `taxRegistry.bankAccounts` |\n| `vatDate` | date | — (today) | VAT status date (not in the future) |\n| `changeDate` | date | — (yesterday) | Bulletin date (from 2022-03-08) |\n| `hourFrom` / `hourTo` | int | — | Hourly bulletin range (0–23, from < to) |\n| `includeCompanyDetails` | bool | `false` | Fetch full records for bulletin changes |\n| `maxItems` | int | `20` | Hard cap (1–10,000) |\n\n### Example: lookup a company (current state)\n\n```json\n{\n  \"mode\": \"byKrsNumber\",\n  \"krsNumbers\": [\"0000006865\"],\n  \"register\": \"P\",\n  \"extractType\": \"Aktualny\"\n}\n```\n\n### Example: full historical extract\n\n```json\n{\n  \"mode\": \"byKrsNumber\",\n  \"krsNumbers\": [\"0000003733\"],\n  \"register\": \"P\",\n  \"extractType\": \"Pelny\"\n}\n```\n\n### Example: resolve a NIP and fetch the company\n\n```json\n{\n  \"mode\": \"byNipOrRegon\",\n  \"identifiers\": [\"527-227-08-74\"],\n  \"register\": \"AUTO\"\n}\n```\n\n### Example: monitor one day of KRS changes with company details\n\n```json\n{\n  \"mode\": \"krsChangesByDate\",\n  \"changeDate\": \"2026-12-04\",\n  \"includeCompanyDetails\": true,\n  \"maxItems\": 100\n}\n```\n\n## Use cases\n\n- **KYB / KYC due diligence** — verify a Polish counterparty's legal status, address, board, shareholders, VAT status, and bank accounts.\n- **Bulk enrichment** — feed a list of KRS numbers or NIP/REGON identifiers and get clean JSON/CSV/Excel rows.\n- **Ownership research** — pull sp. z o.o. shareholders and sole shareholders of joint-stock companies, including historical holders on full extracts.\n- **Change monitoring** — run daily or hourly bulletins to see exactly which entities changed, then fetch only those extracts.\n- **Corporate history and M&A** — full field-change history, court filing entries, mergers, divisions, transformations, liquidation, and bankruptcy sections.\n- **Nonprofit research** — identify Public Benefit Organizations (register=S, OPP status, paid/unpaid PKD scope).\n\n## FAQ\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**How fresh is the data?** Real-time — every request reads live from the government APIs.\n\n## Limitations\n\n- **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.\n- **Board-member and shareholder personal names are masked** in the official JSON API. Full names exist only in the WAF-protected PDF portal.\n- **Financial-statement files are not available.** The repository is reCAPTCHA-protected; only the filing notices from the extract are returned.\n- **Bulletins start on 2022-03-08.** Earlier dates return a 400 from the official API.\n- **A full extract can be large.** Complete history is returned intentionally; use `maxItems` to cap the number of entities, not the history depth.\n- **`AUTO` costs two requests for numbers in the S register.** Register P is tried first.\n",
      "input": {
        "title": "Poland KRS Company Registry Scraper Input",
        "description": "Fetch official KRS extracts by KRS number or by NIP/REGON, or monitor daily/hourly KRS change bulletins. No auth, no proxy, no cookies.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to fetch.",
            "editor": "select",
            "sectionCaption": "Mode & inputs",
            "enum": [
              "byKrsNumber",
              "byNipOrRegon",
              "krsChangesByDate"
            ],
            "enumTitles": [
              "Look up companies by KRS number",
              "Look up by NIP or REGON (resolves KRS + VAT whitelist)",
              "Monitor KRS changes by date (daily/hourly bulletin)"
            ],
            "default": "byKrsNumber",
            "prefill": "byKrsNumber"
          },
          "krsNumbers": {
            "title": "KRS numbers",
            "type": "array",
            "description": "Polish KRS registry numbers, e.g. `0000006865`. Leading zeros optional. Used by `mode=byKrsNumber`.",
            "editor": "stringList",
            "default": [
              "0000006865"
            ],
            "prefill": [
              "0000006865"
            ]
          },
          "identifiers": {
            "title": "NIP / REGON identifiers",
            "type": "array",
            "description": "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.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "register": {
            "title": "Register",
            "type": "string",
            "description": "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.",
            "editor": "select",
            "enum": [
              "P",
              "S",
              "AUTO"
            ],
            "enumTitles": [
              "P — Register of Entrepreneurs (companies, sole traders, partnerships)",
              "S — Register of Associations, Other Social & Professional Organizations, Foundations, and Public Healthcare Institutions",
              "Auto-detect — try P first, then S"
            ],
            "default": "P",
            "prefill": "P"
          },
          "extractType": {
            "title": "Extract type",
            "type": "string",
            "description": "Current state only, or the full historical extract with every past entry and the complete field-change history.",
            "editor": "select",
            "enum": [
              "Aktualny",
              "Pelny"
            ],
            "enumTitles": [
              "Current extract (present state only)",
              "Full extract (complete history, incl. deregistered entries)"
            ],
            "default": "Aktualny",
            "prefill": "Aktualny"
          },
          "publicBenefitOrgOnly": {
            "title": "Public benefit organizations only",
            "type": "boolean",
            "description": "Only emit entities with official Public Benefit Organization (OPP) status. Mainly relevant for register=S.",
            "default": false,
            "prefill": false
          },
          "enrichWithVatRegistry": {
            "title": "Enrich with VAT whitelist",
            "type": "boolean",
            "description": "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.",
            "editor": "checkbox",
            "sectionCaption": "VAT whitelist enrichment",
            "default": false,
            "prefill": false
          },
          "includeBankAccounts": {
            "title": "Include bank accounts",
            "type": "boolean",
            "description": "Include the VAT whitelist bank-account list in `taxRegistry.bankAccounts`.",
            "default": true,
            "prefill": true
          },
          "vatDate": {
            "title": "VAT status date",
            "type": "string",
            "description": "Date for the VAT whitelist lookup (YYYY-MM-DD); defaults to today. Cannot be in the future.",
            "editor": "datepicker"
          },
          "changeDate": {
            "title": "Change date",
            "type": "string",
            "description": "Date of the KRS change bulletin (YYYY-MM-DD); defaults to yesterday. Available from 2022-03-08 onwards. Used by `mode=krsChangesByDate`.",
            "editor": "datepicker",
            "sectionCaption": "KRS change monitor"
          },
          "hourFrom": {
            "title": "Hour from (0–23)",
            "type": "integer",
            "description": "Start hour for the hourly bulletin. Set both `hourFrom` and `hourTo`, or leave both empty for the full day.",
            "minimum": 0,
            "maximum": 23
          },
          "hourTo": {
            "title": "Hour to (0–23)",
            "type": "integer",
            "description": "End hour for the hourly bulletin; must be greater than `hourFrom`.",
            "minimum": 0,
            "maximum": 23
          },
          "includeCompanyDetails": {
            "title": "Include company details",
            "type": "boolean",
            "description": "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).",
            "default": false,
            "prefill": false
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Hard cap on emitted records (and on KRS numbers processed in bulletin mode).",
            "sectionCaption": "Limits",
            "minimum": 1,
            "maximum": 10000,
            "default": 20,
            "prefill": 3
          }
        },
        "required": [
          "mode"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Poland KRS Full Extract, Shareholders & Change Monitor Output",
        "description": "Polish companies, foundations, associations, NIP/REGON VAT subjects and KRS change rows — legal form, REGON/NIP, address, shareholders, capital, board, PKD codes, filing and field history, VAT status.",
        "properties": {
          "companies": {
            "type": "string",
            "title": "KRS entities",
            "description": "Dataset containing all scraped KRS entities.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "KRS records",
              "transformation": {
                "fields": [
                  "recordType",
                  "name",
                  "krsNumber",
                  "legalForm",
                  "register",
                  "nip",
                  "regon",
                  "vatStatus",
                  "changeDate",
                  "sourceUrl"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.2",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    }
  }
}