Article type: How-to guide (one task: list the limited companies registered in Norway in the last 7 days, filtered by industry code, in a CSV)
Prerequisites: Python 3.9 or later with
requests(pip install requests). No API key or account: the Brønnøysund Register Centre's open data API is free. An Apify account only if you use the hosted version at the end.Tested on: 24 November 2026, against the live Enhetsregisteret API.
Norway's company register has a free JSON API with no key, and a short Python script can use it to list every limited company (aksjeselskap, AS) registered last week in the industry you care about. If you sell to new businesses, track start-ups in one sector or keep a market map up to date, that's the weekly question: which new companies registered, in my industry, and where are they? This guide answers it with the Enhetsregisteret API from the Brønnøysund Register Centre and saves the list as a CSV.
All the data in this post comes from one endpoint:
GET https://data.brreg.no/enhetsregisteret/api/enheter
with filters as query parameters, for example organisasjonsform=AS (legal form), fraRegistreringsdatoEnhetsregisteret=2026-11-16 and tilRegistreringsdatoEnhetsregisteret=2026-11-22 (registration date range). It returns a page of units under _embedded.enheter and a page object with totalElements and totalPages. No key, no login. The data is open under the Norwegian Licence for Open Government Data (NLOD 2.0).
How do I list new Norwegian companies by industry code with the Enhetsregisteret API?
Save this as norway_new_companies.py and run python norway_new_companies.py (IT programming and consultancy, codes starting 62) or pass another prefix, for example python norway_new_companies.py 41 for construction of buildings:
import csv
import sys
import time
from collections import Counter
from datetime import date, timedelta
import requests
INDUSTRY = sys.argv[1] if len(sys.argv) > 1 else "62" # SN2025 code prefix: 62 = IT programming and consultancy
DAYS = 7
API = "https://data.brreg.no/enhetsregisteret/api/enheter"
UA = "norway-new-companies-tutorial/1.0 (python-requests)"
session = requests.Session()
session.headers.update({"User-Agent": UA, "Accept": "application/json"})
# 1. robots.txt first. data.brreg.no closes the connection instead of answering, so there are no rules to read.
try:
robots = session.get("https://data.brreg.no/robots.txt", timeout=30)
print(f"robots.txt: HTTP {robots.status_code}")
except requests.ConnectionError:
print("robots.txt: no answer (connection closed), so no rules to follow")
# 2. Every limited company (AS) registered in the last DAYS full days. One read; the industry filter is local.
until = date.today() - timedelta(days=1)
since = until - timedelta(days=DAYS - 1)
params = {"organisasjonsform": "AS", "fraRegistreringsdatoEnhetsregisteret": since.isoformat(),
"tilRegistreringsdatoEnhetsregisteret": until.isoformat(), "size": 1000}
units, page = [], 0
while True:
r = session.get(API, params={**params, "page": page}, timeout=60)
r.raise_for_status()
data = r.json()
units += data.get("_embedded", {}).get("enheter", [])
page += 1
if page >= data["page"]["totalPages"]:
break
if 1000 * (page + 1) > 10_000: # the API refuses size * (page + 1) above 10,000
sys.exit("more than 10,000 results: use a shorter date range")
time.sleep(1)
print(f"{len(units)} limited companies (AS) registered {since} to {until}")
def codes(u):
"""Up to three industry codes per company; '00.000' means 'not stated'."""
return [u[k]["kode"] for k in ("naeringskode1", "naeringskode2", "naeringskode3")
if k in u and u[k]["kode"] != "00.000"]
# 3. Keep the companies with an industry code starting INDUSTRY, newest first.
rows = []
for u in units:
found = [c for c in codes(u) if c.startswith(INDUSTRY)]
if not found:
continue
addr = u.get("forretningsadresse") or u.get("postadresse") or {}
rows.append({
"registered": u["registreringsdatoEnhetsregisteret"],
"org_number": u["organisasjonsnummer"],
"name": u["navn"],
"industry_code": found[0],
"industry": next(u[k]["beskrivelse"] for k in ("naeringskode1", "naeringskode2", "naeringskode3")
if k in u and u[k]["kode"] == found[0]),
"municipality": addr.get("kommune", ""),
"postcode": addr.get("postnummer", ""),
"founded": u.get("stiftelsesdato", ""),
"vat_registered": u["registrertIMvaregisteret"],
"url": f"https://virksomhet.brreg.no/nb/oppslag/enheter/{u['organisasjonsnummer']}",
})
rows.sort(key=lambda r: (r["registered"], r["org_number"]), reverse=True)
out = f"norway_new_as_{INDUSTRY}_{until}.csv"
with open(out, "w", newline="", encoding="utf-8") as f:
w = csv.DictWriter(f, fieldnames=list(rows[0]))
w.writeheader()
w.writerows(rows)
print(f" {sum(not codes(u) for u in units)} have no industry code yet (missing or 00.000 'not stated')")
print(f"wrote {len(rows)} with an industry code starting {INDUSTRY} to {out}")
for code, n in Counter(r["industry_code"] for r in rows).most_common():
print(f" {code} {n:>4}")
print(" top municipalities:", ", ".join(f"{m} {n}" for m, n in Counter(r["municipality"] for r in rows).most_common(3)))
print(f" registered for VAT: {sum(r['vat_registered'] for r in rows)}")
Output on 24 November 2026 (it took about 3 seconds):
robots.txt: HTTP 200
523 limited companies (AS) registered 2026-11-16 to 2026-11-22
323 have no industry code yet (missing or 00.000 'not stated')
wrote 26 with an industry code starting 62 to norway_new_as_62_2026-11-22.csv
62.100 20
62.200 6
top municipalities: OSLO 5, HARAM 1, ULLENSAKER 1
registered for VAT: 1
Some rows from norway_new_as_62_2026-11-22.csv (names, org numbers and links left out):
registered,industry_code,municipality,postcode,founded,vat_registered
2026-11-20,62.100,HARAM,6264,2026-11-12,False
2026-11-20,62.100,OSLO,0484,2026-11-09,False
2026-11-20,62.100,ULLENSAKER,2050,2026-11-11,False
2026-11-20,62.200,VOSS,5705,2026-11-09,False
62.100 is computer programming and 62.200 is IT consultancy and running IT systems. Only 1 of the 26 was in the VAT register yet, which is normal for a company a few days old.
Why it's built this way:
-
Filter the legal form on the server, the industry on your side.
organisasjonsform=ASbrings the week down to one page of 523. The industry filter runs locally so the script can count the companies that have no code yet (the "no industry code yet" line), which a server-side filter would hide. -
All three industry codes. A company can have up to three (
naeringskode1tonaeringskode3). The script matches any of them, so a company whose second activity is programming is kept. - Full days only. The window ends yesterday, so a run on any day of the week covers seven complete days.
-
No
sortparameter. See gotcha 4.
What should I check before I trust the list?
-
A week of new units isn't a week of new companies. Without the
organisasjonsformfilter the same seven days returned 2,002 units: 895 sole proprietorships (ENK, a person trading in their own name), 523 limited companies, 164 "other legal persons" (ANNA), 126 associations (FLI), 103 foreign entities (UTLA, 17 with a Swedish business address), 109 bankruptcy estates (KBO, "konkursbo") and 27 condominium associations (ESEK). Filter on the legal form you mean. - Many new companies have no industry code yet. 323 of the 523 limited companies had no code or the code 00.000 ("not stated"). It isn't only the newest week: of the AS companies registered 12 to 18 October, 360 of 752 (48%) still had none on 24 November, and 235 of 699 (34%) from 11 to 17 May. An industry filter will always undercount, so report the blanks next to the matches.
-
The codes changed to SN2025.
naeringskode=62.010, a code from the older SN2007 standard that you'll still see in older guides, returns 0 units, even for a week in November 2024. The same week has 24 under 62.100. The API'snaeringskodefilter matches by prefix, sonaeringskode=62returned 60 units of every legal form this week, the same 60 that a local prefix match finds. -
The Enhetsregisteret API's date sort isn't stable between pages. Many units share a registration date, and when you sort with
sort=registreringsdatoEnhetsregisteret,descthe API doesn't keep the same order inside a date from one page to the next. Walking all 2,002 units of the week 100 at a time with that sort returned 315 repeats on 24 November; at 1,000 a page, 69 repeats. The default order andsort=organisasjonsnummer,ascreturned 0 repeats. -
One query reads at most 10,000 units.
page=100withsize=100returned HTTP 400 ("size * (page+1) kan ikke overstige 10_000"). Since 1 January 2026 there are 87,049 new units in total, so split long ranges by month or legal form. - Weekends are almost empty. Registrations by day were 416 on Monday 16 November, 302 on Tuesday 17 November, 396 on Wednesday 18 November, 382 on Thursday 19 November, 402 on Friday 20 November, 57 on Saturday 21 November and 47 on Sunday 22 November. Compare weeks, not days.
- Some units carry a phone number or email address. 171 of this week's 2,002 did. The script doesn't copy them; if you change it, remember they can belong to a person.
To change the task, pass another prefix (41 construction of buildings, 56 restaurants, bars and catering), or change organisasjonsform to ENK for sole proprietorships (people, so handle with care).
The hosted version (Disclosure: we built this)
We built an Apify Actor, European Company Registry API, that reads Norway's register and others in one schema. Its newCompanies mode lists companies registered in Norway, Finland and Ireland in the last N days (registeredWithinDays, up to 366) or between two dates (registeredSince and registeredUntil). Two optional filters do this post's job: legalFormCodes keeps only the legal forms you list, and activityCodePrefixes keeps a company if any of its industry codes starts with a prefix you give. Norwegian rows list every industry code the register gives the company (activityCodes, current SN2025 codes) as well as the first one, the legal form code, the VAT ID when the company is in the VAT register, and a link to the official record.
For Norway it leaves some units out by default, and doesn't charge for them. Sole traders and natural persons are always skipped. Bankruptcy estates (KBO), associations (FLI) and foreign entities (NUF and UTLA) are left out too unless you set includeOtherNorwegianEntities. Other forms, such as ANNA and ESEK, still come back unless you set legalFormCodes. Each run's SUMMARY record checks that rows returned plus rows skipped equals records read. Phone numbers and email addresses are never put in rows, and monitor mode returns only companies it hasn't returned before.
In a free local run of this input on 24 November 2026 (not on the Apify platform), it read the same 523 limited companies and returned the same 26 as the script, 20 under 62.100 and 6 under 62.200. It left out 497 with no matching code, free of charge:
{
"mode": "newCompanies",
"countries": ["NO"],
"registeredSince": "2026-11-16",
"registeredUntil": "2026-11-22",
"legalFormCodes": ["AS"],
"activityCodePrefixes": ["62"],
"maxResults": 0,
"maxResultsPerCountry": 0
}
Without the two filters, the same week returned 731 rows out of 2,002 units read. It left out 1,271: 895 sole proprietorships, 141 foreign entities, 126 associations and 109 bankruptcy estates.
What it doesn't do: the industry filter can't find companies that have no code yet (323 of the 523 this week). registeredWithinDays counts back from the time of the run, so on 15 November a value of 7 covered 8 to 15 November; give two dates for whole weeks. In monitor mode it reads at most 5,000 records per country per run. It's pay per event; prices on the Actor's Pricing tab.
European Company Registry API on Apify
Data: Enhetsregisteret, Brønnøysund Register Centre, read 24 November 2026, under the Norwegian Licence for Open Government Data (NLOD 2.0). This post and the Actor are not affiliated with or endorsed by the Brønnøysund Register Centre.
Your Evenings
Top comments (0)