{
  "openapi": "3.0.1",
  "info": {
    "title": "Poland KRS Company Register Scraper - New Polish Companies",
    "description": "Poland KRS company register scraper and API: new Polish companies registered each day and companies with fresh KRS entries, by voivodeship, town, legal form and PKD code. One row per company: KRS, NIP, REGON, address, website, e-mail, PKD, capital. Daily new-company feed, no login. $0.75 per 1,000.",
    "version": "1.0",
    "x-build-id": "uS2fZybgi6X8BuinE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~poland-krs-company-register/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-poland-krs-company-register",
        "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/rel8ble~poland-krs-company-register/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-poland-krs-company-register",
        "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/rel8ble~poland-krs-company-register/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-poland-krs-company-register",
        "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": {
          "days": {
            "title": "Bulletin days",
            "minimum": 1,
            "maximum": 31,
            "type": "integer",
            "description": "Read the KRS bulletins of the last N working days (Mon-Fri, today excluded because its bulletin is still filling; weekend days after them are included). Each weekday lists about 3,000 entities with a new register entry, of which about 150-250 are new registrations. Ignored when a date window is set.",
            "default": 1
          },
          "dateFrom": {
            "title": "Bulletin from",
            "type": "string",
            "description": "YYYY-MM-DD. Read every bulletin from this day (max 62 days back from \"Bulletin to\")."
          },
          "dateTo": {
            "title": "Bulletin to",
            "type": "string",
            "description": "YYYY-MM-DD, default today."
          },
          "newOnly": {
            "title": "New registrations only",
            "type": "boolean",
            "description": "On: keep only entities first registered in the KRS inside the bulletin window (new-company leads). Off: every entity with any new entry (address, board, capital changes ...).",
            "default": true
          },
          "krsNumbers": {
            "title": "KRS numbers",
            "type": "array",
            "description": "Look up exact entities by KRS number, e.g. \"0000019193\" or \"19193\". When set, bulletins are not read.",
            "items": {
              "type": "string"
            }
          },
          "registers": {
            "title": "Registers",
            "type": "array",
            "description": "P = companies (register of entrepreneurs). S = associations, foundations and public health care institutions.",
            "items": {
              "type": "string",
              "enum": [
                "P",
                "S"
              ],
              "enumTitles": [
                "P - Register of entrepreneurs (companies)",
                "S - Associations and foundations"
              ]
            },
            "default": [
              "P"
            ]
          },
          "legalForms": {
            "title": "Legal forms",
            "type": "array",
            "description": "Keep only these legal forms. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "SPZOO",
                "SA",
                "PSA",
                "SJ",
                "SK",
                "SKA",
                "SP",
                "SPOLDZIELNIA",
                "ODDZIAL",
                "PP",
                "FUNDACJA",
                "STOWARZYSZENIE",
                "OTHER"
              ],
              "enumTitles": [
                "SPZOO - Sp. z o.o. - limited liability company",
                "SA - S.A. - joint-stock company",
                "PSA - P.S.A. - simple joint-stock company",
                "SJ - Sp.j. - general partnership",
                "SK - Sp.k. - limited partnership",
                "SKA - S.K.A. - limited joint-stock partnership",
                "SP - Sp.p. - professional partnership",
                "SPOLDZIELNIA - Cooperative",
                "ODDZIAL - Branch of a foreign company",
                "PP - State-owned enterprise",
                "FUNDACJA - Foundation",
                "STOWARZYSZENIE - Association",
                "OTHER - Any other form (unions, SP ZOZ, chambers, EEIG ...)"
              ]
            }
          },
          "voivodeships": {
            "title": "Voivodeships",
            "type": "array",
            "description": "Keep only companies seated in these provinces.",
            "items": {
              "type": "string",
              "enum": [
                "DOLNOŚLĄSKIE",
                "KUJAWSKO-POMORSKIE",
                "LUBELSKIE",
                "LUBUSKIE",
                "ŁÓDZKIE",
                "MAŁOPOLSKIE",
                "MAZOWIECKIE",
                "OPOLSKIE",
                "PODKARPACKIE",
                "PODLASKIE",
                "POMORSKIE",
                "ŚLĄSKIE",
                "ŚWIĘTOKRZYSKIE",
                "WARMIŃSKO-MAZURSKIE",
                "WIELKOPOLSKIE",
                "ZACHODNIOPOMORSKIE"
              ],
              "enumTitles": [
                "DOLNOŚLĄSKIE (Lower Silesian)",
                "KUJAWSKO-POMORSKIE (Kuyavian-Pomeranian)",
                "LUBELSKIE (Lublin)",
                "LUBUSKIE (Lubusz)",
                "ŁÓDZKIE (Łódź)",
                "MAŁOPOLSKIE (Lesser Poland)",
                "MAZOWIECKIE (Masovian)",
                "OPOLSKIE (Opole)",
                "PODKARPACKIE (Subcarpathian)",
                "PODLASKIE (Podlaskie)",
                "POMORSKIE (Pomeranian)",
                "ŚLĄSKIE (Silesian)",
                "ŚWIĘTOKRZYSKIE (Holy Cross)",
                "WARMIŃSKO-MAZURSKIE (Warmian-Masurian)",
                "WIELKOPOLSKIE (Greater Poland)",
                "ZACHODNIOPOMORSKIE (West Pomeranian)"
              ]
            }
          },
          "towns": {
            "title": "Towns",
            "type": "array",
            "description": "Town, municipality or post office of the registered address, e.g. \"Warszawa\", \"Kraków\", \"Wrocław\". Accents optional.",
            "items": {
              "type": "string"
            }
          },
          "pkdCodes": {
            "title": "PKD codes",
            "type": "array",
            "description": "Activity code prefixes (PKD 2007 = NACE Rev. 2), e.g. \"62\" (IT), \"62.01\", \"41.20.Z\" (construction), \"68\" (real estate).",
            "items": {
              "type": "string"
            }
          },
          "pkdMainOnly": {
            "title": "Match main activity only",
            "type": "boolean",
            "description": "On: PKD codes match the main activity. Off: any filed activity.",
            "default": true
          },
          "nameWords": {
            "title": "Name words",
            "type": "array",
            "description": "Keep names containing any of these words, e.g. \"SOFTWARE\", \"LOGISTICS\", \"BUD\". Accents optional.",
            "items": {
              "type": "string"
            }
          },
          "requireWebsite": {
            "title": "Must have a website",
            "type": "boolean",
            "description": "Keep only companies that filed a website.",
            "default": false
          },
          "requireEmail": {
            "title": "Must have an e-mail",
            "type": "boolean",
            "description": "Keep only companies that filed an e-mail address.",
            "default": false
          },
          "minShareCapital": {
            "title": "Min share capital (PLN)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep companies with at least this share capital. 0 = no limit.",
            "default": 0
          },
          "activeOnly": {
            "title": "Active only",
            "type": "boolean",
            "description": "On: entities in liquidation, bankruptcy, restructuring or suspended are left out.",
            "default": true
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Rows to save. 0 = everything that matches. You pay per row saved, so start small.",
            "default": 100
          },
          "maxRequestRetries": {
            "title": "Max retries",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Retries per failed request.",
            "default": 5
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}