{
  "openapi": "3.0.1",
  "info": {
    "title": "Brreg Norwegian Companies Scraper",
    "description": "Search Norway's Brønnøysund company register by name, organisation number or URL, or by industry, municipality, legal form and size. Get NACE codes, employees, addresses, website, email, phone, VAT, bankruptcy flags, share capital, and optional sub-units and roles. Official NLOD open data.",
    "version": "1.0",
    "x-build-id": "bU0BHwySSLB00KEIQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/anyxsolutions~brreg-companies-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-anyxsolutions-brreg-companies-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/anyxsolutions~brreg-companies-scraper/runs": {
      "post": {
        "operationId": "runs-sync-anyxsolutions-brreg-companies-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/anyxsolutions~brreg-companies-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-anyxsolutions-brreg-companies-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": {
          "startUrls": {
            "title": "Brønnøysund register URLs",
            "type": "array",
            "description": "Company pages such as https://virksomhet.brreg.no/nb/oppslag/enheter/923609016, sub-unit pages (…/oppslag/underenheter/<number>, which return the parent company), or company search pages copied from virksomhet.brreg.no with their filters.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchTerms": {
            "title": "Company names",
            "type": "array",
            "description": "Company names to search for, for example Equinor or kiwi. Matches anywhere in the registered name.",
            "items": {
              "type": "string"
            }
          },
          "organisationNumbers": {
            "title": "Organisation numbers",
            "type": "array",
            "description": "9-digit organisation numbers to fetch directly, for example 923609016. Spaces and the NO…MVA VAT form are accepted. A sub-unit's number returns its parent company.",
            "items": {
              "type": "string"
            }
          },
          "naceCodes": {
            "title": "Industry codes (NACE)",
            "type": "array",
            "description": "Only companies with one of these Norwegian standard industrial codes (SN2025/NACE) among their codes, for example 62.100 (computer programming) or 47.11 (grocery retail). A shorter code matches every code under it, for example 62.",
            "items": {
              "type": "string"
            }
          },
          "municipalityNumbers": {
            "title": "Municipality numbers",
            "type": "array",
            "description": "Only companies whose business or postal address is in these municipalities, as 4-digit numbers, for example 0301 (Oslo), 4601 (Bergen) or 5001 (Trondheim).",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postcodes",
            "type": "array",
            "description": "Only companies whose business address has one of these 4-digit postcodes, for example 0150 or 5003.",
            "items": {
              "type": "string"
            }
          },
          "organisationForms": {
            "title": "Organisation forms",
            "type": "array",
            "description": "Only these forms of organisation, by code, for example AS (private limited company), ASA (public limited company), ENK (sole proprietorship), NUF (foreign branch) or FLI (association).",
            "items": {
              "type": "string"
            }
          },
          "minEmployees": {
            "title": "Minimum employees",
            "minimum": 0,
            "type": "integer",
            "description": "Only companies with at least this many employees, for example 50. Use 0, 1, or 5 and up: the register keeps headcounts between 1 and 4 private."
          },
          "maxEmployees": {
            "title": "Maximum employees",
            "minimum": 0,
            "type": "integer",
            "description": "Only companies with at most this many employees, for example 249. Use 0, 4, or 5 and up."
          },
          "registeredFrom": {
            "title": "Registered from",
            "type": "string",
            "description": "Only companies registered in the Central Coordinating Register on or after this date, for example 2026-01-01. Useful for finding new companies."
          },
          "registeredTo": {
            "title": "Registered until",
            "type": "string",
            "description": "Only companies registered on or before this date, for example 2026-06-30."
          },
          "foundedFrom": {
            "title": "Founded from",
            "type": "string",
            "description": "Only companies founded on or after this date, for example 2020-01-01."
          },
          "foundedTo": {
            "title": "Founded until",
            "type": "string",
            "description": "Only companies founded on or before this date, for example 2010-12-31."
          },
          "vatRegistered": {
            "title": "VAT registered",
            "enum": [
              "true",
              "false"
            ],
            "type": "string",
            "description": "Only companies registered for VAT, or only those that are not. Leave empty for both."
          },
          "status": {
            "title": "Company status",
            "enum": [
              "active",
              "bankrupt",
              "liquidation",
              "compulsoryDissolution"
            ],
            "type": "string",
            "description": "Only active companies (not bankrupt or being wound up), or only companies that are bankrupt, in liquidation or under compulsory dissolution. Leave empty for all."
          },
          "includeSubUnits": {
            "title": "Include sub-units",
            "type": "boolean",
            "description": "Add each company's sub-units (underenheter: branches, shops and other workplaces) with their addresses, industry and headcount. Costs one extra request per company.",
            "default": false
          },
          "includeRoles": {
            "title": "Include roles",
            "type": "boolean",
            "description": "Add each company's roles: CEO, board members, chair, auditor, accountant and other registered roles, people and companies. Costs one extra request per company.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum companies per search",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of companies to return per company name or search URL. Leave empty to get every match, up to the register's 10,000 per search. Organisation numbers and company URLs always return one company each."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. The Brønnøysund register is public and needs no proxy.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}