Skip to content

Latest commit

 

History

History
75 lines (57 loc) · 2.86 KB

File metadata and controls

75 lines (57 loc) · 2.86 KB

API / curl — Brreg Norway Company Registry Scraper

Call the Brreg Norway Company Registry Scraper Actor over the Apify REST API. These are client-side examples against the public Apify API — no scraping code runs on your side.

Get your API token from Apify Console → Settings → Integrations and replace <YOUR_TOKEN> below.

Run and get companies in one call (run-sync)

curl -X POST "https://api.apify.com/v2/acts/logiover~brreg-norway-company-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "naeringskode": "73.110",
    "kommunenummer": "0301",
    "konkurs": "false",
    "maxResults": 1000
  }'

The response body is a JSON array of company items. Pipe it into jq:

curl -s -X POST "https://api.apify.com/v2/acts/logiover~brreg-norway-company-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "naeringskode": "62.010", "konkurs": "false", "maxResults": 200 }' \
| jq '.[] | {orgNumber, name, email, phone, website, municipality}'

Get results as CSV

curl -X POST "https://api.apify.com/v2/acts/logiover~brreg-norway-company-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>&format=csv" \
  -H "Content-Type: application/json" \
  -d '{ "naeringskode": "69.201", "registrertIMvaregisteret": "true", "maxResults": 2000 }' \
  -o norway_companies.csv

Enrich with CEO / chair names

curl -X POST "https://api.apify.com/v2/acts/logiover~brreg-norway-company-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "naeringskode": "62.010",
    "includeRoles": true,
    "rolesConcurrency": 6,
    "maxResults": 500
  }'

Start an async run, then fetch items later

Start the run:

curl -X POST "https://api.apify.com/v2/acts/logiover~brreg-norway-company-scraper/runs?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "fraRegistreringsdatoEnhetsregisteret": "2026-04-01", "organisasjonsform": "AS", "maxResults": 5000 }'

Note the data.defaultDatasetId from the response, then fetch items when the run finishes:

curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<YOUR_TOKEN>&format=json"

Notes

  • Endpoint Actor ID uses a tilde: logiover~brreg-norway-company-scraper.
  • run-sync-get-dataset-items is best for smaller pulls; use the async run + dataset fetch for large jobs.
  • Supported format values include json, csv, xlsx, html, xml, jsonl.
  • Deep pagination is capped at ~10,000 records per query — split large segments by municipality or date.
  • Full API reference: https://docs.apify.com/api/v2

▶️ Actor: https://apify.com/logiover/brreg-norway-company-scraper