{
  "openapi": "3.0.1",
  "info": {
    "title": "CEE Company Registry: CZ ARES, SK RPO, PL KRS",
    "description": "Look up and bulk-export company data from official Czech (ARES), Slovak (RPO) and Polish (KRS) registries in one unified JSON schema. ID, VAT, legal form, address, NACE, capital, status. No personal data.",
    "version": "1.0",
    "x-build-id": "r19OXWHWU1c7oqlcK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/czee-data~cee-company-registry/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-czee-data-cee-company-registry",
        "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/czee-data~cee-company-registry/runs": {
      "post": {
        "operationId": "runs-sync-czee-data-cee-company-registry",
        "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/czee-data~cee-company-registry/run-sync": {
      "post": {
        "operationId": "run-sync-czee-data-cee-company-registry",
        "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": {
          "companyIds": {
            "title": "Company IDs to look up",
            "type": "array",
            "description": "Registration numbers to enrich. Prefix with the country code, e.g. <code>CZ:27082440</code> (IČO), <code>SK:31322832</code> (IČO), <code>PL:0000019193</code> (KRS number). IDs without a prefix use the Default country. VAT-style IDs like <code>CZ27082440</code> also work.",
            "items": {
              "type": "string"
            }
          },
          "defaultCountry": {
            "title": "Default country for IDs without prefix",
            "enum": [
              "CZ",
              "SK",
              "PL"
            ],
            "type": "string",
            "description": "Used when an ID has no CZ/SK/PL prefix.",
            "default": "CZ"
          },
          "searchQueries": {
            "title": "Search by company name",
            "type": "array",
            "description": "Company names or name fragments, e.g. <code>kofola</code>. Searched in the countries selected below. Czech filters (NACE, legal form, municipality) are applied to Czech name searches too.",
            "items": {
              "type": "string"
            }
          },
          "searchCountries": {
            "title": "Countries for name search",
            "type": "array",
            "description": "Name search is available for CZ (ARES) and SK (RPO). The Polish KRS API supports lookup by KRS number only.",
            "items": {
              "type": "string",
              "enum": [
                "CZ",
                "SK"
              ],
              "enumTitles": [
                "Czechia (ARES)",
                "Slovakia (RPO)"
              ]
            },
            "default": [
              "CZ",
              "SK"
            ]
          },
          "czNaceCodes": {
            "title": "CZ: NACE activity codes",
            "type": "array",
            "description": "Bulk export Czech companies by economic activity (CZ-NACE 2025 codes as used by ARES). Sub-codes are included automatically, e.g. <code>62</code> = all IT/software companies, <code>47</code> = retail incl. e-shops, <code>68</code> = real estate, <code>41</code>–<code>43</code> = construction, <code>56</code> = restaurants, <code>69</code> = legal & accounting, <code>73</code> = advertising. Works alone (no name needed) for lead lists.",
            "items": {
              "type": "string"
            }
          },
          "czLegalForms": {
            "title": "CZ: legal form codes",
            "type": "array",
            "description": "ARES legal form codes, e.g. <code>112</code> = s.r.o. (LLC), <code>121</code> = a.s. (joint-stock), <code>141</code> = o.p.s., <code>706</code> = spolek.",
            "items": {
              "type": "string"
            }
          },
          "czMunicipalityCode": {
            "title": "CZ: municipality code (kód obce)",
            "minimum": 1,
            "type": "integer",
            "description": "Official RÚIAN municipality code, e.g. <code>554782</code> = Praha, <code>582786</code> = Brno, <code>554821</code> = Ostrava, <code>554791</code> = Plzeň."
          },
          "czAddressText": {
            "title": "CZ: address text",
            "type": "string",
            "description": "Free-text address filter (street, part of a city…). Prefer the municipality code for whole cities."
          },
          "skMunicipality": {
            "title": "SK: municipality (for name search)",
            "type": "string",
            "description": "Optional Slovak municipality to narrow name search, e.g. <code>Bratislava</code>, <code>Košice</code>."
          },
          "activeOnly": {
            "title": "Only active companies (searches)",
            "type": "boolean",
            "description": "Skip dissolved / deleted companies in search results. Direct ID lookups always return the record with its status.",
            "default": true
          },
          "excludeNaturalPersons": {
            "title": "Exclude sole traders (natural persons)",
            "type": "boolean",
            "description": "Skip self-employed individuals (e.g. Czech 'Fyzická osoba podnikající'). Recommended for GDPR compliance – their record is personal data. Statutory bodies, owners and shareholders are never included either way.",
            "default": true
          },
          "enrichCzCommercialRegister": {
            "title": "CZ: add commercial register details",
            "type": "boolean",
            "description": "For Czech companies, also fetch registered capital, court file number (spisová značka) and business activities from the Commercial Register (one extra request per company).",
            "default": false
          },
          "skFetchDetails": {
            "title": "SK: fetch full detail",
            "type": "boolean",
            "description": "Fetch legal form, main activity (SK NACE), capital and activities for each Slovak company (one extra request per company).",
            "default": true
          },
          "maxResults": {
            "title": "Max companies",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many companies are saved. 0 = no limit.",
            "default": 100
          },
          "includeRawData": {
            "title": "Include raw registry response",
            "type": "boolean",
            "description": "Attach the original registry JSON under <code>raw</code> (larger output; may contain names of statutory persons from the source).",
            "default": false
          },
          "requestIntervalMs": {
            "title": "Delay between requests (ms)",
            "minimum": 100,
            "maximum": 10000,
            "type": "integer",
            "description": "Minimum delay between requests to the same registry. Keeps the run polite towards public servers.",
            "default": 250
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed – the registries are public APIs. Use only if your network is blocked.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}