{
  "openapi": "3.0.1",
  "info": {
    "title": "Company Registry Scraper: France + Norway, New Companies",
    "description": "Search the official company registers of France (SIRENE) and Norway (Brønnøysund) in one format: ID, name, legal form, status, registration date, industry, employees, address, VAT. Filter by keyword, industry, location and date, or get only new companies. Official open data, no proxies.",
    "version": "1.0",
    "x-build-id": "4NHYsTKouCzZ9TAJy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/clearfeed~company-registry-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-clearfeed-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/clearfeed~company-registry-scraper/runs": {
      "post": {
        "operationId": "runs-sync-clearfeed-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/clearfeed~company-registry-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-clearfeed-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": {
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Company registers to search. FR = France (SIRENE, INSEE), NO = Norway (Enhetsregisteret, Brønnøysund).",
            "items": {
              "type": "string",
              "enum": [
                "FR",
                "NO"
              ],
              "enumTitles": [
                "France (SIRENE)",
                "Norway (Brreg)"
              ]
            },
            "default": [
              "FR",
              "NO"
            ]
          },
          "query": {
            "title": "Company name or keyword",
            "type": "string",
            "description": "Words in the company name (both countries). In France the search also covers addresses and trade names. Leave empty to list companies by the filters below only. France needs at least 3 characters or another filter."
          },
          "industryCodes": {
            "title": "Industry codes",
            "type": "array",
            "description": "France: NAF codes like `62.01Z` (a prefix like `62` or `62.01` covers all sub-codes). Norway: NACE / SN2025 codes like `62.100` (prefixes like `62` work too). Each code is applied to the country whose format it matches, so you can mix them. Note: Norway switched to SN2025 in 2025, e.g. software development is `62.100` (old `62.010`).",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "France: 5-digit postal codes (e.g. `75008`). Norway: 4-digit postal codes (e.g. `0150`). A country with none of its own codes here is skipped.",
            "items": {
              "type": "string"
            }
          },
          "municipalityCodes": {
            "title": "Municipality codes",
            "type": "array",
            "description": "France: 5-character INSEE commune code (e.g. `75056` Paris, `69123` Lyon). Norway: 4-digit kommunenummer (e.g. `0301` Oslo, `4601` Bergen).",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "French departments",
            "type": "array",
            "description": "France only: department codes, e.g. `75` (Paris), `69` (Rhône), `2A`. Norway is skipped when only this location filter is set.",
            "items": {
              "type": "string"
            }
          },
          "registeredAfter": {
            "title": "Registered on or after",
            "type": "string",
            "description": "Return only companies registered on or after this date (YYYY-MM-DD). Norway: date of registration in Enhetsregisteret, filtered at the source, newest first. France: company creation date; the French API cannot filter by date, so the Actor reads up to 10,000 matches and keeps the new ones. Combine with an industry code or department for full coverage."
          },
          "registeredWithinDays": {
            "title": "Registered within last N days",
            "minimum": 1,
            "type": "integer",
            "description": "Alternative to the date above for scheduled runs: only companies registered in the last N days. Overrides \"Registered on or after\"."
          },
          "onlyActive": {
            "title": "Only active companies",
            "type": "boolean",
            "description": "Skip companies that are closed, deleted, bankrupt or in liquidation.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new companies since last run",
            "type": "boolean",
            "description": "Remember companies returned by earlier runs with the same filters and return only ones not seen before. Ideal for scheduled lead feeds and alerts.",
            "default": false
          },
          "maxItems": {
            "title": "Max companies",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of companies in total. The limit is shared between the selected countries; if one country has fewer matches, the rest goes to the next.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}