{
  "openapi": "3.0.1",
  "info": {
    "title": "European Company Registry: FR, CZ, PL, FI, EE",
    "description": "Company registry data from France (Sirene), Czech Republic (ARES), Poland (KRS), Finland (PRH) and Estonia in one schema. Search by name, look up by company number, or get new companies daily. Legal form, status, industry code, address, VAT ID.",
    "version": "0.1",
    "x-build-id": "jahDUgEvbQZ7O7LtD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maliksaid~europe-company-registers/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maliksaid-europe-company-registers",
        "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/maliksaid~europe-company-registers/runs": {
      "post": {
        "operationId": "runs-sync-maliksaid-europe-company-registers",
        "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/maliksaid~europe-company-registers/run-sync": {
      "post": {
        "operationId": "run-sync-maliksaid-europe-company-registers",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "newCompanies",
              "search",
              "lookup"
            ],
            "type": "string",
            "description": "New companies: companies registered in the last days (Poland, Finland, Estonia). Search: find companies by name and filters (France, Czech Republic, Finland, Estonia). Lookup: get companies by registry ID (all five countries).",
            "default": "newCompanies"
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Registers to read. FR = France (Sirene), CZ = Czech Republic (ARES), PL = Poland (KRS), FI = Finland (PRH YTJ), EE = Estonia (e-Business Register). Leave empty for all five.",
            "items": {
              "type": "string",
              "enum": [
                "FR",
                "CZ",
                "PL",
                "FI",
                "EE"
              ],
              "enumTitles": [
                "France",
                "Czech Republic",
                "Poland",
                "Finland",
                "Estonia"
              ]
            },
            "default": [
              "FR",
              "CZ",
              "PL",
              "FI",
              "EE"
            ]
          },
          "searchText": {
            "title": "Company name",
            "type": "string",
            "description": "Search mode. Every word must appear in the company name, for example \"bakery\" or \"Nokia\". Accents and case do not matter."
          },
          "registryIds": {
            "title": "Registry IDs",
            "type": "array",
            "description": "Lookup mode. One ID per line: French SIREN (9 digits) or SIRET (14), Czech IČO (8), Polish KRS number (10), Finnish Business ID (1234567-8) or Estonian registry code (8). Add a country prefix such as CZ:12345678 when an ID could belong to two countries.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 14,
            "type": "integer",
            "description": "New-company mode. Companies registered in the last N days, today included. At most 14. Poland takes about one minute per day.",
            "default": 3
          },
          "registeredFrom": {
            "title": "Registered on or after",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Keep companies registered on or after this date (yyyy-mm-dd). In new-company mode it sets the start of the window instead of Days back."
          },
          "registeredTo": {
            "title": "Registered on or before",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Keep companies registered on or before this date (yyyy-mm-dd)."
          },
          "industryCodePrefixes": {
            "title": "Industry code prefixes",
            "type": "array",
            "description": "Keep companies with an industry code that starts with these digits. The registers use NACE-based codes, so 62 means software and IT in every country. Dots and letters are ignored. Estonia has no industry code in its open file, so this filter leaves Estonia out.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postcodePrefixes": {
            "title": "Postcode prefixes",
            "type": "array",
            "description": "Keep companies whose registered address postcode starts with one of these, for example 75 for Paris or 00 for Helsinki.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Keep companies whose registered address is in one of these cities, for example Paris, Praha, Warszawa, Helsinki or Tallinn. Accents and case do not matter.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "legalForms": {
            "title": "Legal form codes",
            "type": "array",
            "description": "Keep only these legal forms, using the code in the legalFormCode field. Examples: 5710 (French SAS), 112 (Czech s.r.o.), SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ (Polish sp. z o.o.), OY (Finland), OÜ (Estonia).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "activeOnly": {
            "title": "Active companies only",
            "type": "boolean",
            "description": "Leave out companies that are closed, in liquidation or bankrupt. Lookup mode ignores this.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only new rows)",
            "type": "boolean",
            "description": "Return only companies that earlier monitor-mode runs with the same state key did not return. Schedule a daily new-company run with this on.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor state key",
            "type": "string",
            "description": "Name of the memory that monitor mode uses. Use a different key for each separate watch list.",
            "default": "default"
          },
          "maxItems": {
            "title": "Maximum companies",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after saving this many companies. One run saves at most 10,000. Set 0 to use that cap.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}