{
  "openapi": "3.0.1",
  "info": {
    "title": "Norway Company Search - Org Number Lookup & B2B Leads (Brreg)",
    "description": "Norwegian company data from the official Brreg open data API: org number or name lookup, or B2B lead lists by NACE code, municipality, size and new registrations, with email, phone, website, address and roles. $1 per 1,000 companies; not found free.",
    "version": "0.1",
    "x-build-id": "XVkVjRj1ghIYPkWxm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tinyrex~norway-company-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tinyrex-norway-company-search",
        "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/tinyrex~norway-company-search/runs": {
      "post": {
        "operationId": "runs-sync-tinyrex-norway-company-search",
        "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/tinyrex~norway-company-search/run-sync": {
      "post": {
        "operationId": "run-sync-tinyrex-norway-company-search",
        "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": {
          "companies": {
            "title": "Org numbers or company names",
            "type": "array",
            "description": "One per line: a Norwegian organisation number (9 digits; spaces and NO...MVA are fine) for an exact lookup, or a company name for the best match. Invalid numbers and names with no match are free.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerName": {
            "title": "Results per company name",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "How many matches to return for each company name. Org number lookups always return one company.",
            "default": 1
          },
          "preferLargest": {
            "title": "Prefer the largest company for names",
            "type": "boolean",
            "description": "Rank name matches by number of employees, so \"Telenor\" returns the big Telenor companies first instead of a small one with the same word in its name.",
            "default": true
          },
          "searchName": {
            "title": "Name contains (B2B list)",
            "type": "string",
            "description": "Optional word the company name must contain. Combine with the filters below, or use the filters alone."
          },
          "naceCodes": {
            "title": "NACE industry codes",
            "type": "array",
            "description": "Norwegian SN2025 / NACE codes or prefixes, e.g. 62 (IT services), 62.100 (programming), 56 (restaurants), 43.210 (electricians).",
            "items": {
              "type": "string"
            }
          },
          "municipalities": {
            "title": "Municipalities",
            "type": "array",
            "description": "Municipality names or 4-digit numbers, e.g. Oslo, Bergen, Trondheim, 0301.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "4-digit postal codes of the business address, e.g. 0150.",
            "items": {
              "type": "string"
            }
          },
          "legalForms": {
            "title": "Legal forms",
            "type": "array",
            "description": "Organisation form.",
            "items": {
              "type": "string",
              "enum": [
                "AS",
                "ASA",
                "ENK",
                "NUF",
                "DA",
                "ANS",
                "SA",
                "STI",
                "FLI",
                "BA",
                "KS"
              ],
              "enumTitles": [
                "AS (private limited company)",
                "ASA (public limited company)",
                "ENK (sole proprietorship)",
                "NUF (foreign branch)",
                "DA (partnership, shared liability)",
                "ANS (general partnership)",
                "SA (cooperative)",
                "STI (foundation)",
                "FLI (association)",
                "BA (limited liability company)",
                "KS (limited partnership)"
              ]
            }
          },
          "minEmployees": {
            "title": "Min employees",
            "minimum": 0,
            "type": "integer",
            "description": "Only companies with at least this many registered employees."
          },
          "maxEmployees": {
            "title": "Max employees",
            "minimum": 0,
            "type": "integer",
            "description": "Only companies with at most this many registered employees."
          },
          "registeredFrom": {
            "title": "Registered from (new companies)",
            "type": "string",
            "description": "Only companies registered in Enhetsregisteret on or after this date (YYYY-MM-DD). Great for fresh-company lead lists."
          },
          "registeredTo": {
            "title": "Registered to",
            "type": "string",
            "description": "Only companies registered on or before this date (YYYY-MM-DD)."
          },
          "vatRegisteredOnly": {
            "title": "VAT-registered only",
            "type": "boolean",
            "description": "Only companies in the VAT register (Merverdiavgiftsregisteret).",
            "default": false
          },
          "withEmailOnly": {
            "title": "Only companies with an email address",
            "type": "boolean",
            "description": "Skip list results without a registered email (skipped rows are not charged).",
            "default": false
          },
          "sortByEmployees": {
            "title": "Largest companies first",
            "type": "boolean",
            "description": "Sort the list by number of employees (largest first).",
            "default": true
          },
          "maxResults": {
            "title": "Max companies from the list search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap for the filtered search (the register API serves at most 10,000 per search; split by municipality to get more).",
            "default": 100
          },
          "activeOnly": {
            "title": "Active companies only",
            "type": "boolean",
            "description": "Skip bankrupt companies and companies under liquidation or forced dissolution (in name lookups and list searches).",
            "default": true
          },
          "includeRoles": {
            "title": "Include roles (CEO, board, auditor)",
            "type": "boolean",
            "description": "Current CEO, chair, board members, auditor and accountant from the register: names and roles only, no birth dates. One extra request per company, so runs are slower.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}