DEV Community

SpellzCode
SpellzCode

Posted on Edited on

Every new Swedish company from the last 30 days as a spreadsheet, from Bolagsverket's open data

About 4,500 to 6,000 companies are registered in Sweden every month. If you sell accounting, banking, insurance, payments, web design or office space, those first weeks are when a new company picks its suppliers. Sites like Allabolag show the data one company at a time; this post shows how to get the whole list from the official source instead, what is in it, and what is not.

Disclosure: SpellzCode, the brand behind this account, makes a paid tool that does this (linked at the end). Everything before that section works without it.

The source: Bolagsverket and SCB open data

The Swedish Companies Registration Office (Bolagsverket) and Statistics Sweden (SCB) publish their company registers as open data under the EU high-value datasets rules ("värdefulla datamängder"). That means:

  • free to download and free to reuse commercially
  • a weekly bulk file, not a live API
  • every registered company: name, organisationsnummer, legal form, registration date, status, SNI industry codes, the business description from the articles of association, and postal address

What it does not contain: phone numbers, e-mail addresses, websites, board members, owners or financial figures. Sole traders (enskild firma) are left out of the company file too.

Freshness: the part people get wrong

A new registration reaches the weekly file roughly one to two weeks after it happened. So "registered in the last 7 days" will look nearly empty. Use 30 days or more and run it weekly, keeping the rows you have not seen before.

Industry codes (SNI) are assigned by SCB some weeks after registration. Of companies registered in the last six weeks, only about one in four has a code yet. For brand-new companies, filter on city, postcode or words in the name or business description instead of SNI.

Checking an organisationsnummer

If you merge this list with your CRM, validate the numbers first. A Swedish organisationsnummer is ten digits with a Luhn check digit, and the third digit is 2 or higher for companies (lower means a personal number).

function isSwedishOrgNr(input) {
  const d = input.replace(/\D/g, '').slice(-10);
  if (d.length !== 10 || Number(d[2]) < 2) return false;
  let sum = 0;
  for (let i = 0; i < 10; i++) {
    let n = Number(d[i]) * (i % 2 === 0 ? 2 : 1);
    sum += n > 9 ? n - 9 : n;
  }
  return sum % 10 === 0;
}

isSwedishOrgNr('556703-7485'); // true (Spotify AB)
Enter fullscreen mode Exit fullscreen mode

The VAT number is then SE + the ten digits + 01.

Useful SNI prefixes

Prefix Industry
62 IT services and consulting
47 Retail
56.1 Restaurants
43 Specialised construction (electricians, plumbers, painters)
68 Real estate
69.2 Accounting and bookkeeping
86 Health care

A company can have several codes; match if any of them starts with your prefix.

Doing it yourself vs. using a tool

Doing it yourself means downloading the weekly files from Bolagsverket and SCB, joining them on organisationsnummer, parsing the addresses and codes, and re-running each week. It is a few hours of work and then a small job to maintain.

If you would rather not, our Apify actor Sweden New Companies & Company Lists does the join and filtering and returns rows like this:

{
  "companyId": "556703-7485",
  "vatNumber": "SE556703748501",
  "name": "Spotify AB",
  "legalFormCode": "AB",
  "registered": "2006-05-10",
  "industryCodes": [{ "code": "60.100" }],
  "businessDescription": "Bolaget har till föremål för sin verksamhet att ...",
  "address": { "street": "Regeringsgatan 19", "postcode": "11153", "city": "STOCKHOLM" },
  "dataAsOf": "2026-11-09"
}
Enter fullscreen mode Exit fullscreen mode

Calling it from Node:

// npm i apify-client
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('spellzcode/sweden-new-companies-leads').call({
  registeredLastDays: 30,
  legalForms: ['AB'],
  cities: ['Göteborg'],
  maxResults: 1000,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'new limited companies in Göteborg');
Enter fullscreen mode Exit fullscreen mode

It costs $3 per 1,000 companies, and Apify's free $5 monthly credit covers about 1,600. Without code: open the actor page, set the filters, run, and export CSV or Excel. To get a weekly feed, schedule it in Apify and send new rows to a sheet or CRM.

Marketing rules still apply

Company data is not personal data in itself, but for one-person companies the line blurs: an e-mail to the owner of a tiny company can count as marketing to an individual. SCB also keeps an advertising block list (reklamspärr) that is not in the open data. Check the rules for your channel before you send anything.

Links

Top comments (0)