{
  "openapi": "3.0.1",
  "info": {
    "title": "Norway Company Registry Scraper — Brreg Leads",
    "description": "Scrape brreg.no (Enhetsregisteret) — Norway's official company registry. Get org number, industry, email, phone, website, address, employees, bankruptcy status & director leads. Filter by name, legal form, industry, municipality & more. No login, no API key.",
    "version": "1.0",
    "x-build-id": "VXQfdUn9kk1JFg7ay"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/logiover~brreg-norway-company-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-logiover-brreg-norway-company-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/logiover~brreg-norway-company-scraper/runs": {
      "post": {
        "operationId": "runs-sync-logiover-brreg-norway-company-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/logiover~brreg-norway-company-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-logiover-brreg-norway-company-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": {
          "query": {
            "title": "Search query (company name)",
            "type": "string",
            "description": "Free-text company name search, mapped to the API's `navn` param. Leave empty to use the more specific filters below. Example: \"marketing\", \"consulting\", \"AS Bygg\"."
          },
          "organisasjonsform": {
            "title": "Legal form (organisasjonsform)",
            "type": "string",
            "description": "Restrict to a legal form code, e.g. AS (limited company), ASA (public limited), ENK (sole proprietorship), ANS, DA, NUF, SA. Leave empty for all."
          },
          "naeringskode": {
            "title": "Industry / NACE code",
            "type": "string",
            "description": "Filter by industry (NACE / næringskode), e.g. 73.110 (advertising agencies), 62.010 (software), 70.220 (business consulting). Leave empty for all industries."
          },
          "kommunenummer": {
            "title": "Municipality code (kommunenummer)",
            "type": "string",
            "description": "Filter by municipality code, e.g. 0301 = Oslo, 4601 = Bergen, 5001 = Trondheim. Leave empty for the whole country."
          },
          "postnummer": {
            "title": "Postcode (postnummer)",
            "type": "string",
            "description": "Filter by business-address postcode, e.g. 0150 (Oslo centre)."
          },
          "fraAntallAnsatte": {
            "title": "Min employees",
            "minimum": 0,
            "type": "integer",
            "description": "Only companies with at least this many registered employees."
          },
          "tilAntallAnsatte": {
            "title": "Max employees",
            "minimum": 0,
            "type": "integer",
            "description": "Only companies with at most this many registered employees."
          },
          "konkurs": {
            "title": "Bankruptcy filter",
            "enum": [
              "any",
              "false",
              "true"
            ],
            "type": "string",
            "description": "Filter by bankruptcy status: 'any' (default), 'false' (only solvent companies — best for leads), 'true' (only bankrupt).",
            "default": "any"
          },
          "registrertIMvaregisteret": {
            "title": "VAT-registered filter",
            "enum": [
              "any",
              "true",
              "false"
            ],
            "type": "string",
            "description": "Filter by VAT-register (MVA) status: 'any', 'true' (only VAT-registered — usually active, trading businesses), 'false'.",
            "default": "any"
          },
          "fraRegistreringsdatoEnhetsregisteret": {
            "title": "Registered from (date)",
            "type": "string",
            "description": "Only companies registered on/after this date (YYYY-MM-DD). Great for finding newly founded companies."
          },
          "tilRegistreringsdatoEnhetsregisteret": {
            "title": "Registered to (date)",
            "type": "string",
            "description": "Only companies registered on/before this date (YYYY-MM-DD)."
          },
          "sektorkode": {
            "title": "Institutional sector code",
            "type": "string",
            "description": "Filter by institutional sector code (sektorkode), e.g. 2100 (private non-financial corporations)."
          },
          "extraParams": {
            "title": "Extra raw query params",
            "type": "object",
            "description": "Escape hatch: any other Enhetsregisteret query param as key/value, e.g. {\"frivilligRegistrertIMvaregisteret\":\"true\"}. Merged into the request as-is."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many companies. 0 = unlimited (note: the API hard-caps deep pagination at ~10,000 results per query — narrow your filters to get more).",
            "default": 200
          },
          "includeRoles": {
            "title": "Include directors / roles (CEO & chair)",
            "type": "boolean",
            "description": "Also fetch each company's board & management roles and add CEO (daglig leder) and chair (styreleder) names — director leads. Adds one extra request per company, so it's slower. Default off.",
            "default": false
          },
          "rolesConcurrency": {
            "title": "Roles fetch concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many role lookups to run in parallel when 'Include directors / roles' is on.",
            "default": 6
          },
          "useProxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Route requests through Apify Proxy (datacenter by default). The brreg API is open, so you can turn this off to go direct, but keeping proxy on is stable and recommended.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy settings. Datacenter is plenty for the open brreg API.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}