# Allabolag Scraper - Swedish Company Data and Officers (`neverempty/allabolag-scraper`) Actor

Bulk lookup of Swedish companies on Allabolag by name, search words, organisation number or page URL: address, industry, revenue, profit, employees, founding year, status and officers with roles. No start fee, you pay per company returned.

- **URL**: https://apify.com/neverempty/allabolag-scraper.md
- **Developed by:** [NeverEmpty](https://apify.com/neverempty) (community)
- **Categories:** Lead generation, Automation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.29 / 1,000 company returneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Allabolag Scraper - Swedish Company Data (Org Numbers, Financials, Officers)

**Look up Swedish companies on Allabolag in one run** by organisation number, company name, allabolag.se page URL or search words, and get one clean row per company: organisation number, address, industry, revenue, profit, employees, founding year, status, officers with their roles, and the phone number and website the company publishes. Built for sales teams, analysts and anyone who needs Swedish company data in a spreadsheet or CRM.

- **Mix any input.** Put organisation numbers (`556393-8298`), company page URLs, search page URLs and plain names in the same list. Each company comes back once, in a fixed shape, so a CRM sync, a lead list or an n8n / Make / Zapier flow can read it without special cases.
- **Search the way you do on Allabolag.** Add search words (`frisör`, `bygg Göteborg`), pick the order (revenue, employees) and a county, and page through the results up to the limit you set. Keep **Open each company page** on for the full row, or turn it off for a fast list.
- **The right company or none.** If no company matches the number or name you gave, you get a free `not-found` row instead of a different company with a similar name.
- **No start fee.** You pay per company row returned. Rows that say why a company was not returned (not found, duplicate, invalid input, sole trader, limit reached, could not be read) are free.
- **Same shape every run.** Schedule the same input daily or weekly and compare the rows.

### How to use it

1. Paste your companies into **Companies**, one per line: `5563938298`, an allabolag.se URL or a name such as `Swedish Lorry Parts`.
2. Or add **Search queries** and set **Results per search**, **Sort search results by** and **County**.
3. Run it, then export the dataset as JSON, CSV or Excel, or connect it to Google Sheets, Slack, n8n, Make or Zapier through Apify integrations.

The input is plain JSON when you call it from your own code:

```json
{
  "companies": ["5563938298", "Swedish Lorry Parts"],
  "searchQueries": ["frisör"],
  "sortBy": "revenueDesc",
  "county": "Stockholm",
  "maxResultsPerSearch": 100
}
```

### What you get

One row per company. A full row (values shortened):

```json
{
  "status": "ok",
  "input": "5563938298",
  "orgnr": "556393-8298",
  "companyName": "Swedish Lorry Parts AB",
  "companyStatus": "active",
  "industry": "Entreprenadmaskiner",
  "addressText": "Fågelviksvägen 9, 145 53 Norsborg",
  "revenueTsek": 258426,
  "profitTsek": -10452,
  "employees": 58,
  "foundationYear": 1990,
  "phone": "08 55597800",
  "website": "http://www.slp.se",
  "officers": [
    { "name": "Stefan Bertil Backman", "role": "Extern verkställande direktör", "group": "Management" }
  ],
  "financials": [ { "year": 2025, "revenueTsek": 258426, "netProfitTsek": 16 } ],
  "allabolagUrl": "https://www.allabolag.se/5563938298",
  "detailLevel": "full",
  "checkedAt": "2026-11-15T12:00:00.000Z"
}
```

A row without a company is free and says why:

```json
{ "status": "not-found", "input": "5599999999", "note": "Allabolag has no company page that matches this input. This row is not charged." }
```

Main fields: `orgnr`, `companyName`, `legalName`, `companyStatus`, `companyType`, `industry`, `industries`, `addressText`, `address`, `postalAddress`, `county`, `municipality`, `coordinates`, `phone`, `email`, `website`, `revenueTsek`, `profitTsek`, `netProfitTsek`, `employees`, `accountsPeriod`, `foundationYear`, `registrationDate`, `shareCapitalSek`, `vatRegistered`, `employerRegistered`, `parentCompany`, `companiesInGroup`, `officers`, `signatoryRules`, `financials` (by year), `keywords`, `allabolagUrl`. Amounts ending in `Tsek` are thousands of SEK.

### Pricing

You pay per company row returned (event `company-returned`). There is no start fee. Free rows that explain why an input gave no company are not charged. Set a maximum total charge on the run to cap your spend: the run stops at the cap and says so in a free row.

### Questions and problems

If something does not work as you expect, send a message through the Issues tab of this Actor.

### Limitations

- Sole traders (enskild firma) are listed under a personal identity number. They are not looked up or returned; a free row says so.
- Officers are returned with name and role only.
- Phone, e-mail and website are returned only when the company page publishes them.
- Figures come from the company's latest annual report that Allabolag shows, so a new company may have none.
- Allabolag sometimes answers slowly or declines a request. The Actor asks again from other IP addresses; an item that still cannot be read comes back as a free `unreadable` row.
- A company page can show no figure for a year the company did not file.
- The Actor reads public pages only. It is not affiliated with Allabolag.

# Actor input Schema

## `companies` (type: `array`):

One company per line: an organisation number (556393-8298 or 5563938298), an allabolag.se company page URL, a search page URL, or a company name. Mix them freely. Each company comes back as one row. Leave Companies and Search queries empty to read one example company.

## `searchQueries` (type: `array`):

Optional. Words you would type into the Allabolag search box, for example frisör or bygg Göteborg. Every company found is returned as a row, up to Results per search.

## `maxResultsPerSearch` (type: `integer`):

How many companies to return for each search query (1 to 10000, 25 per search page).

## `sortBy` (type: `string`):

Order of the companies found by each search query.

## `county` (type: `string`):

Only companies in this county for the search queries. Use the county (län) name, for example Stockholm or Västra Götaland.

## `fetchDetails` (type: `boolean`):

On: every company found by a search query gets the full row (officers, financial years, group, registrations). Off: the row has what the search list shows and the run is much faster.

## `maxCompanies` (type: `integer`):

Safety limit on how many companies one run looks up (inputs plus search results).

## Actor input object example

```json
{
  "companies": [
    "5563938298",
    "https://www.allabolag.se/foretag/swedish-lorry-parts-ab/norsborg/entreprenadmaskiner/2K0MI9MI5YE25",
    "Swedish Lorry Parts"
  ],
  "maxResultsPerSearch": 25,
  "sortBy": "relevance",
  "fetchDetails": true,
  "maxCompanies": 1000
}
```

# Actor output Schema

## `results` (type: `string`):

One row per Swedish company: organisation number, name, status, address, industry, revenue, profit, employees, founding year, phone and website as published, officers with roles, financial figures by year and the Allabolag link. An input that matches no company, a duplicate, a sole trader, a page that could not be read or a run that hit its limit comes back as a free row that says why.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "companies": [
        "5563938298",
        "https://www.allabolag.se/foretag/swedish-lorry-parts-ab/norsborg/entreprenadmaskiner/2K0MI9MI5YE25",
        "Swedish Lorry Parts"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("neverempty/allabolag-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "companies": [
        "5563938298",
        "https://www.allabolag.se/foretag/swedish-lorry-parts-ab/norsborg/entreprenadmaskiner/2K0MI9MI5YE25",
        "Swedish Lorry Parts",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("neverempty/allabolag-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "companies": [
    "5563938298",
    "https://www.allabolag.se/foretag/swedish-lorry-parts-ab/norsborg/entreprenadmaskiner/2K0MI9MI5YE25",
    "Swedish Lorry Parts"
  ]
}' |
apify call neverempty/allabolag-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neverempty/allabolag-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/KpIKt6zpl7WIzNJ76/builds/ClNz9LYa6OtbT0FwK/openapi.json
