Search Firmasett by industry code and county, then enrich the hits. For plumbing companies in Rogaland with the manager's e-mail, the search is bransje=43.221&fylke=Rogaland&har_dl_epost=ja. The search returns the companies with org number and the managing director's name; the enrichment returns the e-mail address with source and grade A–E.
The work has three steps: count (free), search (search hits), enrich (enrichments). All calls need a key in Authorization: Bearer fs_…; see For AI agents for how to get a free one. Example values below are fictional.
1. Find the industry code
The bransje filter is a NACE code prefix. GET /v1/bransjer (free) lists the two-digit codes with the number of companies and how many managing directors have e-mail and mobile, plus the county names:
curl -s https://firmasett.no/v1/bransjer -H "Authorization: Bearer fs_…"
resultat is {bransjer: [{kode, bransje, antall, med_dl_epost, med_dl_mobil}], fylker: [...]}. The more detailed codes, with counts per county, are on the industry pages. Plumbing is 43.221 (Rørleggerarbeid). A shorter prefix widens the search: 43.22 also includes ventilation and heat pump work, and several prefixes can be combined with commas.
2. Count first
curl -s "https://firmasett.no/v1/selskaper/sok?bransje=43.221&fylke=Rogaland&har_dl_epost=ja&antall_kun=ja" \
-H "Authorization: Bearer fs_…"
{"status": "ok", "resultat": {"total": 120, "treff": [], "antall_kun": true}, "meta": {"…": "…", "belastet": {}}}
antall_kun=ja returns only the total and does not use quota. Use it to see how large the list is before you fetch it.
3. Fetch the list
curl -s "https://firmasett.no/v1/selskaper/sok?bransje=43.221&fylke=Rogaland&har_dl_epost=ja&sorter=omsetning&antall=100&side=1" \
-H "Authorization: Bearer fs_…"
{"status": "ok",
"resultat": {"total": 120, "side": 1, "antall": 100,
"treff": [{"orgnr": "999999999", "navn": "Eksempel Rør AS", "bransje_kode": "43.221", "bransje": "Rørleggerarbeid",
"ansatte": "12", "stiftet": "2008-03-01", "fylke": "Rogaland", "kommune": "Stavanger",
"omsetning": 18500000, "kundetype": "begge", "hjemmeside": "eksempelror.no",
"utestaende_anslag": 1500000, "kunder_anslag": 400, "daglig_leder": "Kari Eksempel",
"har_dl_epost": true, "har_dl_mobil": true, "har_dl_linkedin": false, "kan_sms": true}]},
"meta": {"…": "…", "belastet": {"sok": 100}}}
antall is hits per page (1–100, default 25) and side is the page number. Repeat with side=2 and so on until you have total hits. Useful filters for a list like this:
| Filter | Meaning |
|---|---|
bransje |
NACE code prefix, several separated by commas |
fylke, kommune |
County (several separated by commas), municipality |
ansatte_min, ansatte_maks |
Number of employees |
omsetning_min, omsetning_maks |
Revenue in NOK from the latest accounts |
har_dl_epost, har_dl_mobil, har_dl_linkedin |
ja / nei: the managing director has e-mail, mobile, LinkedIn |
kundetype |
B2B, B2C, begge (both), offentlig (public sector) |
sorter |
omsetning (default without q), ansatte, utestaende, kunder, fakturaer, nyeste, navn |
Every filter is listed in the documentation (in Norwegian). Search returns active companies unless you send status. Holding companies and debt collection companies are always left out of search. The register does not state the number of employees below five, so use ansatte_min when you only want operating companies of some size.
4. Enrich to get the e-mail
A search hit only says that an e-mail exists. Send the org numbers, up to 100 per call, to get the address:
curl -s -X POST https://firmasett.no/v1/selskaper/berik \
-H "Authorization: Bearer fs_…" -H "Content-Type: application/json" \
-d '{"orgnrs": ["999999999", "999999998"]}'
resultat is {antall, funnet, resultater: [{orgnr, status, selskap, regnskap, anslag, signaler, roller, daglig_leder}]}. The e-mail is in daglig_leder:
{"navn": "Kari Eksempel", "tittel": "Daglig leder",
"epost": "[email protected]", "epost_kilde": "navn i adressen", "epost_grad": "A", "epost_sikkerhet": "høy", "epost_alternativer": 0,
"har_mobil": true, "mobil": "tilgjengelig", "mobil_grad": "A", "kan_sms": true}
The mobile number shows as tilgjengelig (available). Fetch it per company with POST /v1/telefon/finn and {"orgnr": "…"}, one phone credit per number delivered.
MCP tool calls
With the MCP server connected, an assistant can be asked in plain language ("Find plumbing companies in Rogaland and give me the managing director's e-mail"). The tool calls behind it are:
{"name": "sok_selskaper", "arguments": {"bransje": "43.221", "fylke": "Rogaland", "har_dl_epost": "ja", "antall_kun": "ja"}}
{"name": "sok_selskaper", "arguments": {"bransje": "43.221", "fylke": "Rogaland", "har_dl_epost": "ja", "antall": 100}}
{"name": "berik_selskaper", "arguments": {"orgnrs": ["999999999", "999999998"]}}
CLI
firmasett sok --bransje 43.221 --fylke Rogaland --har-dl-epost ja --antall-kun ja
firmasett sok --bransje 43.221 --fylke Rogaland --har-dl-epost ja --alle --ut plumbers.csv
firmasett berik-fil plumbers.csv --ut plumbers-enriched.csv
The first command counts, the second writes all hits to a CSV file, and the third enriches each org number and adds columns with an fs_ prefix, among them fs_daglig_leder, fs_dl_epost and fs_dl_epost_grad. Progress is saved after every batch of 100, so the same command continues where it stopped. See the CLI page.
Limits and cost
| Step | Costs |
|---|---|
antall_kun=ja, GET /v1/bransjer |
nothing |
| Search | 1 search hit per hit delivered |
| Enrichment | 1 enrichment per company found |
| Mobile number | 1 phone credit per number delivered (NOK 1,50) |
A list of 120 companies with e-mail therefore uses 120 search hits and 120 enrichments. The free plan gives 100 search hits and 1 000 enrichments in total. Paid plans start at NOK 290 a month and have quotas per rolling 5-hour window; when the quota is used, the API answers HTTP 429 with Retry-After in seconds. The limits per plan are on the pricing page.
The contact details are for the managing director. For what you may use them for under Norwegian law, see compliance.