{
  "openapi": "3.0.1",
  "info": {
    "title": "Allabolag, SIRENE and EU Company Registry Scraper",
    "description": "Search or look up companies in official European registers: France SIRENE, Sweden Allabolag, Norway Brreg, Finland PRH, Czechia ARES, Poland KRS, Switzerland Zefix, Denmark CVR. Register number, legal form, status, address, activity code, VAT, directors, capital. No login.",
    "version": "0.1",
    "x-build-id": "n5MPn6oRPRII0UCMq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~eu-company-registry-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-eu-company-registry-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/themineworks~eu-company-registry-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-eu-company-registry-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/themineworks~eu-company-registry-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-eu-company-registry-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": {
          "country": {
            "title": "Country register",
            "enum": [
              "FR",
              "NO",
              "FI",
              "SE",
              "CZ",
              "PL",
              "CH",
              "DK"
            ],
            "type": "string",
            "description": "Which official register to read. FR France (SIRENE), NO Norway (Brreg), FI Finland (PRH), SE Sweden (Allabolag), CZ Czechia (ARES), PL Poland (KRS, lookup by number only), CH Switzerland (Zefix), DK Denmark (CVR, one best match per name). One country per run.",
            "default": "FR"
          },
          "searchQueries": {
            "title": "Company names or keywords",
            "type": "array",
            "description": "One search per line, as you would type it in the register search: a company name or a trade word, for example boulangerie, bakeri, Volvo. Each line returns up to \"Max companies per search\". Up to 200 lines.",
            "items": {
              "type": "string"
            }
          },
          "companyIds": {
            "title": "Register numbers to look up (optional)",
            "type": "array",
            "description": "Register numbers, one per line, for one full row each: SIREN or SIRET (FR), organisasjonsnummer (NO), Y-tunnus like 0112038-9 (FI), organisationsnummer (SE), ICO (CZ), KRS, NIP or REGON (PL), CHE-123.456.789 (CH), CVR (DK). Dashes and spaces are fine. Up to 5,000.",
            "items": {
              "type": "string"
            }
          },
          "activityCode": {
            "title": "Activity code (optional)",
            "type": "string",
            "description": "Only companies with this main activity code. France NAF like 10.71C (or a section letter like C), Norway NACE like 10.710 or 10.71, Finland TOL like 10710, Czechia CZ-NACE like 10710. Not offered by the Swiss, Swedish, Polish and Danish sources. Can be used without any words to list a whole trade."
          },
          "city": {
            "title": "City or postal code (optional)",
            "type": "string",
            "description": "France: postal code like 75011 or department like 69. Norway: post town like Bergen or postcode. Finland: city or postcode. Czechia: city name. Switzerland: canton code like ZH or a town name. Sweden: added to the search words."
          },
          "onlyActive": {
            "title": "Active companies only",
            "type": "boolean",
            "description": "On: closed, deleted, bankrupt and dissolved companies are left out of searches. Lookups by number always return the company whatever its status.",
            "default": true
          },
          "includeDetails": {
            "title": "Read the full register entry (directors, capital, purpose)",
            "type": "boolean",
            "description": "On: where a search result lacks the board or capital, the company register entry is read too (Norway roles, Czech public register extract, Swiss firm page with address and purpose, Allabolag company page with board, capital and VAT status). France, Finland, Poland and Denmark rows are complete either way. Same price either way.",
            "default": true
          },
          "maxItems": {
            "title": "Max companies per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most companies to return for each search line, 1 to 10,000. Example: 500.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}