{
  "openapi": "3.0.1",
  "info": {
    "title": "Norway Company Registry API: Enhetsregisteret (Unofficial)",
    "description": "Search Norwegian companies in Enhetsregisteret, the Norway company register, by NACE code, municipality, postcode or legal form, or look up organisasjonsnummer (org number): status, employees, address. NLOD open data, no API key. No contact data or roles. Not affiliated with Brønnøysundregistrene.",
    "version": "0.1",
    "x-build-id": "mUMWjtv4wDE6OMWNc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/graylabs~norway-companies/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-graylabs-norway-companies",
        "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/graylabs~norway-companies/runs": {
      "post": {
        "operationId": "runs-sync-graylabs-norway-companies",
        "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/graylabs~norway-companies/run-sync": {
      "post": {
        "operationId": "run-sync-graylabs-norway-companies",
        "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": {
          "naceCodes": {
            "title": "Industry codes (NACE / SN)",
            "type": "array",
            "description": "Optional. Næringskode prefixes in the registry's current standard (SN 2025, based on NACE), e.g. 62.100 (computer programming), 62 (all of division 62) or 56.1. Matches main or secondary industry.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "municipalityNumbers": {
            "title": "Municipalities (kommunenummer)",
            "type": "array",
            "description": "Optional. 4-digit municipality numbers of the business address, e.g. 0301 (Oslo), 4601 (Bergen), 5001 (Trondheim). Each municipality is searched separately (the source returns at most 10,000 units per search).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postcodes": {
            "title": "Postcodes",
            "type": "array",
            "description": "Optional. 4-digit postcodes of the business address, e.g. 0150.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "organisationForms": {
            "title": "Organisation forms",
            "type": "array",
            "description": "Optional. Organisasjonsform codes such as AS (private limited company), ASA, NUF (foreign branch), SA (cooperative), STI (foundation), FLI (association). Default: every form except sole proprietorships and other single-person forms (ENK, PERS, BO, KBO, TVAM, IKJP), which are never available.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "name": {
            "title": "Company name",
            "type": "string",
            "description": "Optional. Words in the registered name, e.g. 'eiendom'. Only the organisation's own name is searched."
          },
          "organisationNumbers": {
            "title": "Organisation numbers",
            "type": "array",
            "description": "Optional. Look up specific organisations by 9-digit organisasjonsnummer (up to 2,000). Other filters are ignored in this mode, except status.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "registeredFrom": {
            "title": "Registered from",
            "type": "string",
            "description": "Optional. Earliest registration date in Enhetsregisteret (YYYY-MM-DD). Use it with sort = newest to follow new companies."
          },
          "registeredTo": {
            "title": "Registered to",
            "type": "string",
            "description": "Optional. Latest registration date in Enhetsregisteret (YYYY-MM-DD)."
          },
          "foundedFrom": {
            "title": "Founded from",
            "type": "string",
            "description": "Optional. Earliest foundation date (stiftelsesdato, YYYY-MM-DD)."
          },
          "foundedTo": {
            "title": "Founded to",
            "type": "string",
            "description": "Optional. Latest foundation date (YYYY-MM-DD)."
          },
          "minEmployees": {
            "title": "Minimum employees",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Registered number of employees, at least this many. The registry accepts 0, 1 or a number above 4."
          },
          "vatRegistered": {
            "title": "VAT registered",
            "enum": [
              "any",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Filter on registration in the VAT register (Merverdiavgiftsregisteret).",
            "default": "any"
          },
          "status": {
            "title": "Status",
            "enum": [
              "active",
              "any"
            ],
            "type": "string",
            "description": "Active (default): leave out units that are bankrupt, being wound up or under compulsory dissolution. Any: include them.",
            "default": "active"
          },
          "sort": {
            "title": "Order",
            "enum": [
              "newest",
              "organisationNumber",
              "employees"
            ],
            "type": "string",
            "description": "Newest registrations first (default), by organisation number, or by number of employees (largest first).",
            "default": "newest"
          },
          "addressDetail": {
            "title": "Address detail",
            "enum": [
              "full",
              "municipality"
            ],
            "type": "string",
            "description": "Full (default): business street address for companies and other legal persons. Municipality: postcode, town and municipality only, for every row.",
            "default": "full"
          },
          "personNamedCompanies": {
            "title": "Companies named after a person",
            "enum": [
              "flag",
              "exclude"
            ],
            "type": "string",
            "description": "Some companies are named after a person (e.g. 'OLA NORDMANN AS'). Flag (default): keep them with nameResemblesIndividual = true and without street address. Exclude: leave them out.",
            "default": "flag"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after saving this many companies (each saved company is one charged result).",
            "default": 100
          },
          "maxRequests": {
            "title": "Max requests",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Safety cap on requests to the source (each returns up to 100 units).",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}