Swedish Company Lookup API — Bolagsverket Made Simple

Published · 4 min read

Need to look up a Swedish company's details? Bolagsverket (the Swedish Companies Registration Office) has the data, but accessing it programmatically requires navigating OAuth2 authentication, SOAP/XML endpoints, and complex registration processes.

Apiverket gives you the same data with a single GET request.

The Problem with Bolagsverket's API

To query Bolagsverket directly, you need to:

  1. Register for API access — apply through their developer portal, wait for approval
  2. Implement OAuth2 — client credentials flow with token refresh
  3. Parse XML/SOAP responses — many endpoints still use XML, not JSON
  4. Handle rate limits and quotas — separate from your application's limits

For a simple "give me the company name for org.nr 5591234567", that's a lot of setup.

One GET Request Instead

Bolagsverket Direct

// 1. Get OAuth2 token
const token = await fetch(
  "https://api.bolagsverket.se/oauth/token",
  { method: "POST", body: new URLSearchParams({
    grant_type: "client_credentials",
    client_id: "YOUR_CLIENT_ID",
    client_secret: "YOUR_SECRET"
  })}
).then(r => r.json());

// 2. Query with token
const res = await fetch(
  "https://api.bolagsverket.se/...",
  { headers: { Authorization:
    `Bearer ${token.access_token}` }}
);

// 3. Parse XML response
// ...

Apiverket

const res = await fetch(
  "https://apiverket.se/v1/companies" +
  "/5591234567",
  {
    headers: {
      Authorization:
        "Bearer sk_live_YOUR_KEY"
    }
  }
);

const { data } = await res.json();
// data.name = "Acme AB"
// data.legal_form = "Aktiebolag"
// data.sni_codes = ["62010"]
// data.address = { ... }

No OAuth2, no XML, no registration. Apiverket handles the upstream authentication and data transformation. You get clean JSON with a single API key.

What You Get

The company endpoints return:

Available Endpoints

Endpoint Description
/v1/companies/{orgnr}Look up by organisation number
/v1/companies?q=nameSearch companies by name
/v1/vat/{vatNumber}EU VAT number validation

Try It Now

curl -H "Authorization: Bearer sk_test_demo123" \
  https://apiverket.se/v1/companies/5591234567

Need Swedish company data in your app?

Start with the test key — no signup, no OAuth2, no XML parsing.

Explore the API Docs

View pricing plans — free tier includes 200 requests/day