# Norway Brreg Companies Open Data Register Scraper (`plainkitbin/norway-brreg-companies`) Actor

Fetch Norwegian company records from the public Brreg Enhetsregisteret open API as structured JSON rows. Company-level facts only. Not affiliated with Brønnøysundregistrene (Brreg) Enhetsregisteret Open API.

- **URL**: https://apify.com/plainkitbin/norway-brreg-companies.md
- **Developed by:** [PlainKit bin](https://apify.com/plainkitbin) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.48 / 1,000 brreg company records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Norway Brreg Open Data Company Register Scraper

### Introduction

Sales teams, market researchers, credit and compliance analysts and data engineers who need Norway Brreg open data as clean rows can run this Actor instead of writing their own client. It reads the Norwegian company register (Enhetsregisteret) through the public Brreg open API and returns one JSON row per company: organisation number, name, legal form, industry code, business address town and municipality, number of employees, registration and founding dates, and status flags such as bankruptcy or winding-up.

Typical uses:

- Build a list of Norwegian limited companies in one industry and municipality, for example all restaurants registered in Oslo.
- Watch newly registered companies by running the Actor with a registration date window.
- Enrich your own customer or supplier list with the organisation number, legal form and industry code.
- Check whether a company is flagged as bankrupt or under winding-up before you sign a contract.

One run returns up to the row limit you set, at most 1,000 company rows. The Actor reads only company-level facts. It never returns sole traders, e-mail addresses, phone numbers or street addresses (the postal code and town of the business address are returned), because those can identify a private person.

This Actor is not affiliated with Brønnøysundregistrene (Brreg) Enhetsregisteret Open API. The data comes from the public Enhetsregisteret open data service of Brønnøysundregistrene under the Norwegian Licence for Open Government Data (NLOD 2.0). The Actor only uses what that service returns on the day of the run.

### Input and output examples

#### Example input

```json
{
  "search": "kaffe",
  "organisasjonsform": ["AS"],
  "registered_from": "2024-01-01",
  "max_items": 5
}
```

#### Example output

```json
{
  "organisasjonsnummer": "938576998",
  "navn": "BKL KAFFE AS",
  "organisasjonsform_kode": "AS",
  "organisasjonsform_beskrivelse": "Aksjeselskap",
  "naeringskode_kode": "10.830",
  "naeringskode_beskrivelse": "Bearbeiding av te og kaffe",
  "kommune": "OSLO",
  "kommunenummer": "0301",
  "postnummer": "1155",
  "poststed": "OSLO",
  "land": "Norge",
  "antall_ansatte": null,
  "registreringsdato_enhetsregisteret": "2026-09-28",
  "stiftelsesdato": "2026-09-22",
  "siste_innsendte_aarsregnskap": "",
  "registrert_i_foretaksregisteret": true,
  "registrert_i_mvaregisteret": false,
  "konkurs": false,
  "under_avvikling": false,
  "under_tvangsavvikling_eller_tvangsopplosning": false
}
```

Field values are copied from the API response. A field the API does not return for a company is an empty string, or `null` for the number of employees and for the yes/no flags.

If the API refuses a request (HTTP 401, 403 or 429), the run ends with one extra row that holds only a `reason_code` such as `API_REFUSED_HTTP_429`. That row is not charged.

### Pricing

The price is **$0.005** per delivered company row on the `FREE` tier of Apify Pay-Per-Event (event name: `brreg-company`).

- FREE: $0.005 per row
- BRONZE: $0.0045 per row
- SILVER: $0.004 per row
- GOLD: $0.003484 per row
- PLATINUM: $0.003484 per row
- DIAMOND: $0.003334 per row

Each row is pushed to the dataset first and charged right after the push. A refused charge or a reached spending limit stops the run. Failed requests push nothing and charge nothing. If the platform restarts a run, rows that are already in the dataset are recognised by their organisation number and are never pushed or charged twice.

### Tutorial

1. Open the Actor and leave the prefilled input, or type a word of the company name in `search`.
2. Optionally narrow the result with a legal form such as `AS`, an industry code such as `62` or `56.110`, a four-digit municipality number such as `0301`, or a registration date window.
3. Set `max_items` to the number of rows you want. Start with 10 to see the shape of the data.
4. Start the run and open the dataset. Export it as JSON, CSV or Excel, or read it through the Apify API.

The Actor asks the API for pages of up to 100 companies and stops at the row limit, at the last page, or at a page cap that follows from the row limit. The Brreg API serves at most 10,000 results for one query, so split very large lists by municipality or industry code.

### Actor recommendations

Use the organisation number as the key when you join these rows with your own tables or with other registers. Run the Actor on a schedule with a moving `registered_from` date to collect new companies every week. For other public registers and datasets, see the other data Actors of the same publisher.

### FAQ and support

**Which companies are returned?** Companies with a company-level legal form: limited companies (AS, ASA), cooperatives (SA), foundations (STI), associations (FLI), inter-municipal companies (IKS), municipalities, county authorities and a few similar forms. Sole traders and partnerships are not offered, because their names and data can identify a person.

**Why are there no phone numbers, e-mail addresses or street lines?** They can belong to a private person. The Actor leaves them out on purpose.

**How current is the data?** The API answers with the state of the register at the time of the request. Changes can take time to reach the register.

**Can the Actor see everything in Enhetsregisteret?** No. It returns the fields listed above for the legal forms listed above, up to the row limit.

**Data licence.** Data from Brønnøysundregistrene, used under the Norwegian Licence for Open Government Data (NLOD 2.0). The licence does not cover personal data without a legal basis, which is why this Actor outputs company-level facts only.

**Support.** Open an issue on the Actor page with your input and the run link.

### Configuration

| Field | Type | Description | Default |
| --- | --- | --- | --- |
| `search` | String | Words searched in the company name. | `""` |
| `organisasjonsform` | Array of strings | Legal form codes: AS, ASA, SA, STI, FLI, IKS, KF, KOMM, FYLK, STAT, SE, BRL. Empty means all of them. | `[]` |
| `naeringskode` | String | Industry code, for example `62` or `62.100`. | `""` |
| `kommunenummer` | String | Four-digit municipality number of the business address. | `""` |
| `registered_from` | String | Earliest registration date, `YYYY-MM-DD`. | `""` |
| `registered_to` | String | Latest registration date, `YYYY-MM-DD`. | `""` |
| `max_items` | Integer (1-1000) | Maximum number of company rows. | `10` |

### Use as an MCP Tool (AI Agents)

AI agents and MCP clients (such as Claude Desktop or Cursor) can invoke `plainkitbin/norway-brreg-companies` directly via `@apify/actors-mcp-server` over `stdio`:

```bash
APIFY_TOKEN=<YOUR_APIFY_TOKEN> npx -y @apify/actors-mcp-server --actors plainkitbin/norway-brreg-companies
```

Hosted (Streamable HTTP): connect to `https://mcp.apify.com?tools=plainkitbin/norway-brreg-companies` using OAuth or the header `Authorization: Bearer <YOUR_APIFY_TOKEN>`.

Example MCP client configuration (`mcpServers`):

```json
{
  "mcpServers": {
    "norway-brreg-companies": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "plainkitbin/norway-brreg-companies"
      ],
      "env": {
        "APIFY_TOKEN": "<YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

Example JSON tool call matching `.actor/input_schema.json`:

```json
{
  "search": "kaffe",
  "organisasjonsform": [
    "AS"
  ],
  "registered_from": "2024-01-01",
  "max_items": 5
}
```

Catalog and registry: browse all Actors at [PlainKitBin](https://plainkitbin.com/) or discover the multi-Actor server `com.plainkitbin/public-data-actors` in the MCP Registry.

# Actor input Schema

## `search` (type: `string`):

Words searched in the company name (Brreg parameter navn). Leave empty to list companies without a name filter.

## `organisasjonsform` (type: `array`):

Brreg legal form codes to include, for example AS (limited company) or ASA. Only company-level forms are offered; sole traders are never returned. Leave empty for all offered forms.

## `naeringskode` (type: `string`):

Industry code of the main activity, for example 62 or 62.100. Leave empty for all industries.

## `kommunenummer` (type: `string`):

Four-digit municipality number of the business address, for example 0301 for Oslo. Leave empty for all municipalities.

## `registered_from` (type: `string`):

Only companies registered in Enhetsregisteret on or after this date (format: YYYY-MM-DD).

## `registered_to` (type: `string`):

Only companies registered in Enhetsregisteret on or before this date (format: YYYY-MM-DD).

## `max_items` (type: `integer`):

Maximum number of company rows to output (prefilled default 10).

## Actor input object example

```json
{
  "search": "kaffe",
  "organisasjonsform": [
    "AS"
  ],
  "naeringskode": "",
  "kommunenummer": "",
  "registered_from": "",
  "registered_to": "",
  "max_items": 10
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset items produced by this run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "search": "kaffe",
    "organisasjonsform": [
        "AS"
    ],
    "naeringskode": "",
    "kommunenummer": "",
    "registered_from": "",
    "registered_to": "",
    "max_items": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainkitbin/norway-brreg-companies").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "search": "kaffe",
    "organisasjonsform": ["AS"],
    "naeringskode": "",
    "kommunenummer": "",
    "registered_from": "",
    "registered_to": "",
    "max_items": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("plainkitbin/norway-brreg-companies").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "search": "kaffe",
  "organisasjonsform": [
    "AS"
  ],
  "naeringskode": "",
  "kommunenummer": "",
  "registered_from": "",
  "registered_to": "",
  "max_items": 10
}' |
apify call plainkitbin/norway-brreg-companies --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plainkitbin/norway-brreg-companies"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/t21TT28ia9P0v0IWu/builds/fdLtN2ezerk88OUgt/openapi.json
