# Brreg Norwegian Companies Scraper (`anyxsolutions/brreg-companies-scraper`) Actor

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.

- **URL**: https://apify.com/anyxsolutions/brreg-companies-scraper.md
- **Developed by:** [Anyx Solutions](https://apify.com/anyxsolutions) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

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/running/actors-in-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

![banner](https://anyx.solutions/banners/brreg-companies-scraper.png)

## Brreg Norwegian Companies Scraper

**Norwegian company data from the Brønnøysund Register Centre (organisation numbers, industry codes, employees, addresses, contacts, VAT and bankruptcy status) as clean JSON.**

Get company records for any business in Norway's Central Coordinating Register for Legal Entities
(Enhetsregisteret): the organisation number, name and form of organisation, NACE industry codes,
number of employees, business and postal addresses, website, email and phone, founding and
registration dates, VAT and Business Register status, bankruptcy, liquidation and compulsory
dissolution flags, share capital, stated purpose and previous names. Optionally add each company's
sub-units (branches and workplaces) and its roles: CEO, board, auditor and accountant. Search by
company name, look up organisation numbers, paste virksomhet.brreg.no company or search URLs, or
list every company that matches filters such as industry code, municipality, postcode, form of
organisation, headcount and registration date. The data is the official open data of
Brønnøysundregistrene, updated daily. There is no login, no API key and no proxy to set up. Built
for B2B lead generation, KYC and supplier checks, credit and risk monitoring, and CRM enrichment.

### ⚡ Quick start

```json
{
  "startUrls": [
    {
      "url": "https://virksomhet.brreg.no/nb/oppslag/enheter?naeringskode=62.100&kommunenummer=0301"
    }
  ],
  "maxItems": 5
}
```

Or list companies by filters alone, for example every active limited company in Bergen with at
least 50 employees, with board and CEO:

```json
{
  "municipalityNumbers": ["4601"],
  "organisationForms": ["AS"],
  "minEmployees": 50,
  "status": "active",
  "includeRoles": true,
  "maxItems": 100
}
```

### 🧩 Input

| Field                 | Type    | Required | Default                      | Description                                                                                                                                                                                                                                                      |
| --------------------- | ------- | -------- | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `startUrls`           | array   | no       | —                            | Brønnøysund register URLs: company pages (`https://virksomhet.brreg.no/nb/oppslag/enheter/923609016`), sub-unit pages (`…/oppslag/underenheter/<number>`, which return the parent company), or company search pages from virksomhet.brreg.no with their filters. |
| `searchTerms`         | array   | no       | —                            | Company names to search for, such as `Equinor` or `kiwi`. Matches anywhere in the registered name.                                                                                                                                                               |
| `organisationNumbers` | array   | no       | —                            | Organisation numbers to fetch directly, such as `923609016`. Spaces and the `NO…MVA` VAT form are accepted; a sub-unit's number returns its parent company.                                                                                                      |
| `naceCodes`           | array   | no       | —                            | Industry codes (NACE, SN2025), such as `62.100` or `47.11`. Matches any of a company's codes; a shorter code matches every code under it.                                                                                                                        |
| `municipalityNumbers` | array   | no       | —                            | Municipality numbers (4 digits) of the business or postal address, such as `0301` (Oslo) or `4601` (Bergen).                                                                                                                                                     |
| `postalCodes`         | array   | no       | —                            | Postcodes (4 digits) of the business address, such as `0150`.                                                                                                                                                                                                    |
| `organisationForms`   | array   | no       | —                            | Organisation forms by code, such as `AS`, `ASA`, `ENK`, `NUF` or `FLI`.                                                                                                                                                                                          |
| `minEmployees`        | integer | no       | —                            | Minimum employees: 0, 1, or 5 and up.                                                                                                                                                                                                                            |
| `maxEmployees`        | integer | no       | —                            | Maximum employees: 0, 4, or 5 and up.                                                                                                                                                                                                                            |
| `registeredFrom`      | string  | no       | —                            | Registered from: only companies registered in the register on or after this date (YYYY-MM-DD).                                                                                                                                                                   |
| `registeredTo`        | string  | no       | —                            | Registered until: only companies registered on or before this date.                                                                                                                                                                                              |
| `foundedFrom`         | string  | no       | —                            | Founded from: only companies founded on or after this date.                                                                                                                                                                                                      |
| `foundedTo`           | string  | no       | —                            | Founded until: only companies founded on or before this date.                                                                                                                                                                                                    |
| `vatRegistered`       | string  | no       | —                            | VAT registered: `true` for VAT-registered companies only, `false` for the others.                                                                                                                                                                                |
| `status`              | string  | no       | —                            | Company status: `active` (not bankrupt or being wound up), `bankrupt`, `liquidation` or `compulsoryDissolution`. Leave empty for all.                                                                                                                            |
| `includeSubUnits`     | boolean | no       | `false`                      | Include sub-units: each company's branches and workplaces, up to 1,000 per company. One extra request per company.                                                                                                                                               |
| `includeRoles`        | boolean | no       | `false`                      | Include roles: CEO, chair, board members, auditor, accountant and other registered roles. One extra request per company.                                                                                                                                         |
| `maxItems`            | integer | no       | —                            | Maximum companies per company name or search URL. The input form starts at 5; leave it empty for every match (up to 10,000 per search). Organisation numbers and company URLs always return one company each.                                                    |
| `proxyConfiguration`  | object  | no       | `{ "useApifyProxy": false }` | Proxy settings. The register needs no proxy.                                                                                                                                                                                                                     |

Give at least one URL, company name or organisation number, or set a filter on its own: with
filters and no names, the Actor lists every company that matches them. The filters apply to
company names and filter-only listings; a search URL keeps the filters written in it.

### 📤 Output

Each company (main entity) is one dataset row. Dates are ISO 8601. Code descriptions (industry,
organisation form, sector, roles) are the register's own Norwegian texts.

#### Fields

| Field                          | Type    | Description                                                                                                                                                                                                                           |
| ------------------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `organisationNumber`           | string  | The 9-digit organisation number.                                                                                                                                                                                                      |
| `name`                         | string  | Registered name.                                                                                                                                                                                                                      |
| `organisationFormCode`         | string  | Organisation form code, such as `AS` or `ENK`.                                                                                                                                                                                        |
| `organisationForm`             | string  | Organisation form, such as "Aksjeselskap".                                                                                                                                                                                            |
| `naceCode`                     | string  | Main industry code (NACE/SN2025).                                                                                                                                                                                                     |
| `naceDescription`              | string  | Main industry description.                                                                                                                                                                                                            |
| `naceCodes`                    | array   | All industry codes, main first: `code`, `description`.                                                                                                                                                                                |
| `sectorCode`                   | string  | Institutional sector code.                                                                                                                                                                                                            |
| `sector`                       | string  | Institutional sector, such as "Private aksjeselskaper mv.".                                                                                                                                                                           |
| `employees`                    | number  | Number of employees. Null when 0 to 4 are registered: the register keeps small headcounts private.                                                                                                                                    |
| `hasRegisteredEmployees`       | boolean | Whether the company has registered employees.                                                                                                                                                                                         |
| `website`                      | string  | Website, as registered.                                                                                                                                                                                                               |
| `email`                        | string  | Email address, when registered.                                                                                                                                                                                                       |
| `phone`                        | string  | Phone number, when registered.                                                                                                                                                                                                        |
| `mobile`                       | string  | Mobile number, when registered.                                                                                                                                                                                                       |
| `address`                      | string  | Business address on one line (postal address when there is none).                                                                                                                                                                     |
| `postalCode`                   | string  | Postcode of that address.                                                                                                                                                                                                             |
| `city`                         | string  | Postal town of that address.                                                                                                                                                                                                          |
| `municipality`                 | string  | Municipality of that address.                                                                                                                                                                                                         |
| `municipalityNumber`           | string  | 4-digit municipality number.                                                                                                                                                                                                          |
| `countryCode`                  | string  | Country code of that address.                                                                                                                                                                                                         |
| `businessAddress`              | object  | Business address: `street`, `postalCode`, `city`, `municipality`, `municipalityNumber`, `country`, `countryCode`.                                                                                                                     |
| `postalAddress`                | object  | Postal address, same shape.                                                                                                                                                                                                           |
| `foundedDate`                  | string  | Date the company was founded.                                                                                                                                                                                                         |
| `registeredDate`               | string  | Date it entered the Central Coordinating Register.                                                                                                                                                                                    |
| `businessRegisterDate`         | string  | Date it entered the Register of Business Enterprises.                                                                                                                                                                                 |
| `vatRegisteredDate`            | string  | Date it entered the VAT Register.                                                                                                                                                                                                     |
| `isVatRegistered`              | boolean | Whether it is registered for VAT.                                                                                                                                                                                                     |
| `isInBusinessRegister`         | boolean | Whether it is in the Register of Business Enterprises.                                                                                                                                                                                |
| `isInNonProfitRegister`        | boolean | Whether it is in the Register of Non-Profit Organisations.                                                                                                                                                                            |
| `isInFoundationRegister`       | boolean | Whether it is in the Register of Foundations.                                                                                                                                                                                         |
| `isBankrupt`                   | boolean | Whether it is bankrupt.                                                                                                                                                                                                               |
| `bankruptcyDate`               | string  | Date of the bankruptcy ruling.                                                                                                                                                                                                        |
| `isUnderLiquidation`           | boolean | Whether it is being liquidated.                                                                                                                                                                                                       |
| `liquidationDate`              | string  | Date the liquidation was registered.                                                                                                                                                                                                  |
| `isUnderCompulsoryDissolution` | boolean | Whether it is under compulsory liquidation or dissolution.                                                                                                                                                                            |
| `compulsoryDissolutionDate`    | string  | Earliest compulsory-dissolution date registered.                                                                                                                                                                                      |
| `reconstructionDate`           | string  | Date reconstruction proceedings were registered.                                                                                                                                                                                      |
| `isInGroup`                    | boolean | Whether it is part of a corporate group.                                                                                                                                                                                              |
| `parentOrganisationNumber`     | string  | Superior entity, for public-sector bodies.                                                                                                                                                                                            |
| `shareCapital`                 | number  | Share capital.                                                                                                                                                                                                                        |
| `shareCapitalCurrency`         | string  | Currency of the share capital.                                                                                                                                                                                                        |
| `lastAnnualAccountsYear`       | number  | Year of the last annual accounts filed.                                                                                                                                                                                               |
| `purpose`                      | string  | Purpose from the articles of association.                                                                                                                                                                                             |
| `activity`                     | string  | Registered description of the activity.                                                                                                                                                                                               |
| `previousNames`                | array   | Earlier names: `name`, `from`, `to`.                                                                                                                                                                                                  |
| `subUnitsCount`                | number  | Number of sub-units. Null unless sub-units are included.                                                                                                                                                                              |
| `subUnits`                     | array   | Sub-units: `organisationNumber`, `name`, `naceCode`, `naceDescription`, `employees`, `address`, `postalCode`, `city`, `municipality`, `startDate`, `closureDate`, `url`. Null unless included.                                        |
| `roles`                        | array   | Roles: `group`, `role`, `roleCode`, `type` (`person` or `entity`), `name`, `firstName`, `lastName`, `birthYear` (year only; the full birth date is left out), `organisationNumber` (for an entity), `resigned`. Null unless included. |
| `searchTerm`                   | string  | The company name that found the company; null for lookups and filter-only listings.                                                                                                                                                   |
| `url`                          | string  | The company's page on virksomhet.brreg.no.                                                                                                                                                                                            |

<details><summary>Example output</summary>

```json
{
  "organisationNumber": "923609016",
  "name": "EQUINOR ASA",
  "organisationFormCode": "ASA",
  "organisationForm": "Allmennaksjeselskap",
  "naceCode": "06.100",
  "naceDescription": "Utvinning av råolje",
  "naceCodes": [
    {
      "code": "06.100",
      "description": "Utvinning av råolje"
    },
    {
      "code": "06.200",
      "description": "Utvinning av naturgass"
    },
    {
      "code": "19.200",
      "description": "Produksjon av raffinerte petroleumsprodukter og fossile brenselsprodukter"
    }
  ],
  "sectorCode": "1120",
  "sector": "Statlig eide aksjeselskaper mv.",
  "employees": 21231,
  "hasRegisteredEmployees": true,
  "website": "www.equinor.com",
  "email": null,
  "phone": "51 99 00 00",
  "mobile": null,
  "address": "Forusbeen 50, 4035 STAVANGER",
  "postalCode": "4035",
  "city": "STAVANGER",
  "municipality": "STAVANGER",
  "municipalityNumber": "1103",
  "countryCode": "NO",
  "businessAddress": {
    "street": "Forusbeen 50",
    "postalCode": "4035",
    "city": "STAVANGER",
    "municipality": "STAVANGER",
    "municipalityNumber": "1103",
    "country": "Norge",
    "countryCode": "NO"
  },
  "postalAddress": {
    "street": "Postboks 8500",
    "postalCode": "4035",
    "city": "STAVANGER",
    "municipality": "STAVANGER",
    "municipalityNumber": "1103",
    "country": "Norge",
    "countryCode": "NO"
  },
  "foundedDate": "1972-09-18",
  "registeredDate": "1995-03-12",
  "businessRegisterDate": "1988-04-28",
  "vatRegisteredDate": "1989-07-01",
  "isVatRegistered": true,
  "isInBusinessRegister": true,
  "isInNonProfitRegister": false,
  "isInFoundationRegister": false,
  "isBankrupt": false,
  "bankruptcyDate": null,
  "isUnderLiquidation": false,
  "liquidationDate": null,
  "isUnderCompulsoryDissolution": false,
  "compulsoryDissolutionDate": null,
  "reconstructionDate": null,
  "isInGroup": true,
  "parentOrganisationNumber": null,
  "shareCapital": 5976872600,
  "shareCapitalCurrency": "NOK",
  "lastAnnualAccountsYear": 2025,
  "purpose": "Å utvikle, produsere og markedsføre ulike former for energi, avledede produkter og tjenester, samt annen virksomhet. Virksomheten kan også drives gjennom deltakelse i eller i samarbeid med andre selskaper.",
  "activity": "Selv, eller gjennom deltakelse i eller sammen med andre selskaper å utvikle, produsere og markedsføre ulike former for energi, avledede produkter og tjenester, samt annen virksomhet. Utleie av bygg og anlegg.",
  "previousNames": [
    {
      "name": "STATOIL ASA",
      "from": "2009-11-02T07:56:24",
      "to": "2018-05-16T07:05:45"
    }
  ],
  "subUnitsCount": 35,
  "subUnits": [
    {
      "organisationNumber": "973861883",
      "name": "EQUINOR ASA AVD CCB SOTRA",
      "naceCode": "06.100",
      "naceDescription": "Utvinning av råolje",
      "employees": 39,
      "address": null,
      "postalCode": "5347",
      "city": "ÅGOTNES",
      "municipality": "ØYGARDEN",
      "startDate": null,
      "closureDate": null,
      "url": "https://virksomhet.brreg.no/nb/oppslag/underenheter/973861883"
    }
  ],
  "roles": [
    {
      "group": "Daglig leder",
      "role": "Daglig leder",
      "roleCode": "DAGL",
      "type": "person",
      "name": "Anders Opedal",
      "firstName": "Anders",
      "lastName": "Opedal",
      "birthYear": 1968,
      "organisationNumber": null,
      "resigned": false
    },
    {
      "group": "Revisor",
      "role": "Revisor",
      "roleCode": "REVI",
      "type": "entity",
      "name": "ERNST & YOUNG AS",
      "firstName": null,
      "lastName": null,
      "birthYear": null,
      "organisationNumber": "976389387",
      "resigned": false
    }
  ],
  "searchTerm": null,
  "url": "https://virksomhet.brreg.no/nb/oppslag/enheter/923609016"
}
```

</details>

### 💡 Use cases

- **B2B lead generation.** List every company in an industry and municipality, with employees, website, email and phone, and the CEO and board when you need a named contact.
- **New-company monitoring.** Pull every company registered since a date, by industry or region, to reach new businesses first.
- **KYC and supplier checks.** Confirm an organisation number, legal form, VAT status, roles and bankruptcy or liquidation status before you sign or pay.
- **Credit and risk.** Track bankruptcies, liquidations and compulsory dissolutions across a portfolio or an industry.
- **CRM enrichment.** Add industry codes, headcount, addresses and sub-units to a list of organisation numbers.

### ❓ FAQ

- **Where does the data come from?** From Brønnøysundregistrene (the Brønnøysund Register Centre), which publishes the Central Coordinating Register for Legal Entities as open data under the Norwegian Licence for Open Government Data (NLOD) 2.0. It is updated daily. Credit "Brønnøysundregistrene" when you reuse it.
- **Do I need an API key, an account or a proxy?** No.
- **How many results can one search return?** The register serves at most 10,000 companies per search. For a bigger slice, split the search by municipality, industry code, organisation form or registration date; the log says when a search hits the limit.
- **How fast is it?** One request returns up to 1,000 companies, so plain searches are fast. Sub-units and roles each cost one more request per company; the Actor keeps to about 4 requests a second.
- **Why is the number of employees empty?** The register only publishes headcounts of 5 and up. A company with 1 to 4 employees shows `hasRegisteredEmployees: true` and no number, and the employee filters cannot select that range.
- **Why does a company outside my municipality appear?** The municipality filter matches the business address or the postal address, so a company with a postbox in the municipality is included.
- **Can I search sub-units?** Paste a sub-unit page or its organisation number and the Actor returns the parent company; set `includeSubUnits` to list every sub-unit of each company.
- **Are roles complete?** Roles are the ones registered in the Central Coordinating Register: CEO, chair, board members, deputies, auditor, accountant, contact person and others. Personal identity numbers are not part of the open data.

### 🔗 More scrapers by Anyx

- [Google Maps Email Extractor](https://apify.com/anyxsolutions/google-maps-email-extractor)
- [Yellow Pages Scraper](https://apify.com/anyxsolutions/yellowpages-scraper)
- [Trustpilot Scraper](https://apify.com/anyxsolutions/trustpilot-scraper)
- [LinkedIn Jobs Scraper](https://apify.com/anyxsolutions/linkedin-jobs-scraper)

### 🤝 Anyx Solutions

We build custom scrapers and data-extraction pipelines.

- Email: tantosthor@gmail.com

# Actor input Schema

## `startUrls` (type: `array`):

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.

## `searchTerms` (type: `array`):

Company names to search for, for example Equinor or kiwi. Matches anywhere in the registered name.

## `organisationNumbers` (type: `array`):

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.

## `naceCodes` (type: `array`):

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.

## `municipalityNumbers` (type: `array`):

Only companies whose business or postal address is in these municipalities, as 4-digit numbers, for example 0301 (Oslo), 4601 (Bergen) or 5001 (Trondheim).

## `postalCodes` (type: `array`):

Only companies whose business address has one of these 4-digit postcodes, for example 0150 or 5003.

## `organisationForms` (type: `array`):

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).

## `minEmployees` (type: `integer`):

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` (type: `integer`):

Only companies with at most this many employees, for example 249. Use 0, 4, or 5 and up.

## `registeredFrom` (type: `string`):

Only companies registered in the Central Coordinating Register on or after this date, for example 2026-01-01. Useful for finding new companies.

## `registeredTo` (type: `string`):

Only companies registered on or before this date, for example 2026-06-30.

## `foundedFrom` (type: `string`):

Only companies founded on or after this date, for example 2020-01-01.

## `foundedTo` (type: `string`):

Only companies founded on or before this date, for example 2010-12-31.

## `vatRegistered` (type: `string`):

Only companies registered for VAT, or only those that are not. Leave empty for both.

## `status` (type: `string`):

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` (type: `boolean`):

Add each company's sub-units (underenheter: branches, shops and other workplaces) with their addresses, industry and headcount. Costs one extra request per company.

## `includeRoles` (type: `boolean`):

Add each company's roles: CEO, board members, chair, auditor, accountant and other registered roles, people and companies. Costs one extra request per company.

## `maxItems` (type: `integer`):

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` (type: `object`):

Proxy settings. The Brønnøysund register is public and needs no proxy.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://virksomhet.brreg.no/nb/oppslag/enheter?naeringskode=62.100&kommunenummer=0301"
    }
  ],
  "includeSubUnits": false,
  "includeRoles": false,
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "startUrls": [
        {
            "url": "https://virksomhet.brreg.no/nb/oppslag/enheter?naeringskode=62.100&kommunenummer=0301"
        }
    ],
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("anyxsolutions/brreg-companies-scraper").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 = {
    "startUrls": [{ "url": "https://virksomhet.brreg.no/nb/oppslag/enheter?naeringskode=62.100&kommunenummer=0301" }],
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("anyxsolutions/brreg-companies-scraper").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 '{
  "startUrls": [
    {
      "url": "https://virksomhet.brreg.no/nb/oppslag/enheter?naeringskode=62.100&kommunenummer=0301"
    }
  ],
  "maxItems": 5
}' |
apify call anyxsolutions/brreg-companies-scraper --silent --output-dataset

```

## MCP server setup

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

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/yKkDVr1qKTAGPPqbp/builds/bU0BHwySSLB00KEIQ/openapi.json
