# Allabolag Scraper: Swedish Company Data, Revenue & Contacts (`zaiq/allabolag-scraper`) Actor

Swedish companies from Allabolag.se for any search, company name or org number: org number, industry, municipality, address, website, phone and email, revenue, profit after financial items, employees and accounts period. Sole traders and people are never returned. $1.60 per 1,000 companies.

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

## Pricing

from $1.28 / 1,000 companies

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, revenue and business contacts

Search **Allabolag.se** the way its own search box does (an **industry word**, a **company name** or an **org number**) or paste a list of **org numbers**, and get **one row per Swedish company**: **org number, industry, municipality and county, visiting and postal address, website, phone and email, revenue, profit after financial items, employees and the accounts period**. No login.

**Companies only, never people:** sole traders (whose org number is a personal identity number) are skipped, board members, executives and contact persons are never returned, and a company under Swedish marketing protection (reklamspärr) keeps its row without phone and email.

**Tested on Allabolag's own search:** one run of two industry searches and two org-number lookups returned 62 companies, with industry on every row, phone on 58, revenue on 61 and employees on 58. **$1.60 per 1,000 companies**; searches with no companies cost nothing.

### What you get

| Field | What it holds |
|---|---|
| The company | `orgNumber`, `name`, `legalName`, `unitType` (MAIN or a branch), `status`, `description`, `url` |
| Industry | `industry`, `industryCode`, `industries` |
| Where | `municipality`, `county`, `visitingAddress`, `postalAddress` |
| Contacts | `website`, `phone`, `email` (left empty under marketing protection), `marketingProtection` |
| Size | `revenueTSEK` and `revenueSEK`, `profitAfterFinancialItemsTSEK` and `profitAfterFinancialItemsSEK` (resultat efter finansnetto), `employees`, `accountsPeriod` |
| Where it came from | `searchTerm` and `rank`, or `lookedUp` |

### What people use it for

- **B2B lead lists:** every accounting firm, IT consultancy or builder in a county, with revenue and contacts
- **Market sizing:** how many companies an industry has and how big they are
- **Enrichment:** add revenue, employees and industry to a list of org numbers
- **Sales targeting:** filter by revenue and employees before you call or email
- **AI agents:** let a model find Swedish companies by industry and size

### How to use it

1. Type one or more **searches** (industry words or company names) or paste **org numbers**.
2. Set **companies per search**.
3. Click **Start** and export the rows as JSON, CSV or Excel.

### Input

| Field | Example | Notes |
|---|---|---|
| Searches | `bygg` | One per line: an industry, a company name or an org number |
| Org numbers | `556123-4567` | One per line, with or without the dash |
| Companies per search | `100` | Up to 10,000 |

### Output

Each result is one row in the run's dataset (download it as JSON, CSV, Excel, XML or HTML, or read it through the API). An example row (values shortened):

```json
{
  "orgNumber": "559999-9999",
  "name": "Exempel Konsult AB",
  "legalName": "Exempel Konsult AB",
  "unitType": "MAIN",
  "status": null,
  "statusRemarks": null,
  "industry": "Datakonsulter",
  "industryCode": "10002043",
  "industries": [
    "Datakonsulter"
  ],
  "municipality": "Malmö",
  "county": "Skåne",
  "visitingAddress": "Exempelgatan 1, 211 19 Malmö",
  "postalAddress": "Exempelgatan 1, 211 19 Malmö",
  "website": "https://www.example.se",
  "phone": "040-000 00 00",
  "email": "info@example.se",
  "marketingProtection": false,
  "revenueTSEK": 12765,
  "revenueSEK": 12765000,
  "profitAfterFinancialItemsTSEK": 49,
  "profitAfterFinancialItemsSEK": 49000,
  "employees": 10,
  "accountsPeriod": "2025-12",
  "description": null,
  "url": "https://www.allabolag.se/5599999999",
  "searchTerm": "datakonsult",
  "rank": 1,
  "scrapedAt": "2026-11-19T14:37:31Z"
}
```

A record named `SUMMARY` in the run's key-value store lists every search with its company count and the total Allabolag shows for it, every org number that was not found, how many sole traders were skipped, how many companies are under marketing protection, how many companies were charged and how much traffic the run used.

### Pricing

- **$0.0016 per company from a search** ($1.60 per 1,000; $1.44 on Silver and $1.28 on Gold and higher plans)
- **$0.003 per org number looked up** (each lookup reads a whole Allabolag page for one company)
- Searches with no companies, skipped sole traders and org numbers that are not found cost nothing
- Apify's start fee is $0.00005 per run

What typical jobs cost at the list price:

| Job | Cost |
|---|---|
| 1,000 companies from searches | $1.60 |
| Every company Allabolag shows for one industry search (up to 10,000) | $16.00 |
| 500 org numbers looked up | $1.50 |
| 10 industry searches of 100 companies each | $1.60 |

On Apify's Scale and Business plans the per-event prices are lower (Store discounts). Set **Maximum cost per run** and the Actor stops cleanly when it is reached: you never pay more than that.

### Tips

- Search an industry word (redovisning, datakonsult, bygg) to build a list; search a company name to find its org number.
- Revenue (omsättning) and profit after financial items (resultat efter finansnetto) are in thousands of SEK in the TSEK columns and in SEK in the SEK columns.
- Paste an allabolag.se company link and it is looked up like an org number.

### Use it through the API

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("zaiq/allabolag-scraper").call(run_input={"searches": ["redovisning"], "maxCompaniesPerSearch": 100})
for row in client.dataset(run.default_dataset_id).iterate_items():
    print(row)
```

**JavaScript**

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('zaiq/allabolag-scraper').call({"searches": ["redovisning"], "maxCompaniesPerSearch": 100});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**HTTP (one call, results back)**

```bash
curl -X POST 'https://api.apify.com/v2/acts/zaiq~allabolag-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"searches": ["redovisning"], "maxCompaniesPerSearch": 100}'
```

### Integrations and schedules

- **Schedules:** run it every hour, day or week from the Apify Console (Schedules) and keep a history of results.
- **Make, Zapier, n8n, Google Sheets, Slack, Airtable:** connect it through Apify's integrations, or send each finished run to a **webhook**.
- **Datasets:** results stay in the run's dataset; export them or read them by API whenever you need them.

### Use it with AI agents (MCP)

Add Apify's MCP server with this Actor already pinned (`https://mcp.apify.com?tools=zaiq/allabolag-scraper`) to Claude, ChatGPT, Cursor, VS Code or any MCP client. The agent can find this Actor and run it for you: ask it for "Accounting firms in Skåne with more than 10 employees and their websites". AI agents can also pay for runs directly through Apify's agentic payments.

### Limits

- Companies as Allabolag's own search shows them to a signed-out visitor; up to 10,000 a search.
- Revenue, profit after financial items and employees come from each company's latest accounts on Allabolag (see accountsPeriod).
- People are never returned: no sole traders, board members, executives or contact persons.
- Public data only: you are responsible for how you use it under Allabolag's terms, GDPR and the laws that apply to you.

### FAQ

**Do I need an Allabolag account?**

No. Nothing to log in to and no cookies to paste.

**Why are some companies missing phone and email?**

They are under Swedish marketing protection (reklamspärr), or Allabolag shows none. marketingProtection says which.

**Why are sole traders skipped?**

A sole trader's org number is the owner's personal identity number, so the row is a person. This Actor returns companies only.

**What units is revenue in?**

revenueTSEK is thousands of SEK as Allabolag shows it; revenueSEK is the same figure in SEK.

**What happens with an org number that does not exist?**

It costs nothing and is noted in the SUMMARY record.

### Related Actors from Zaiq

- [north-data-scraper](https://apify.com/zaiq/north-data-scraper): company data across Europe
- [new-business-filings](https://apify.com/zaiq/new-business-filings): newly registered companies

### Support

Questions, a site that changed, or a field you need? Open an issue on this Actor's **Issues** tab: we answer there, usually within a day.

***

Also found as: allabolag scraper, allabolag api, swedish company data, sweden company search, swedish b2b leads, org number lookup sweden.

# Actor input Schema

## `searches` (type: `array`):

Words you would type into Allabolag's search box: an industry (bygg, redovisning, datakonsult), a company name or an org number. One per line.

## `orgNumbers` (type: `array`):

Optional. Swedish organisation numbers to look up, one per line (556508-6583 or 5565086583). Personal identity numbers (sole traders) are skipped.

## `maxCompaniesPerSearch` (type: `integer`):

The most companies to read from each search ($0.0016 each). Allabolag shows up to 10,000 (400 pages of 25).

## Actor input object example

```json
{
  "searches": [
    "bygg"
  ],
  "maxCompaniesPerSearch": 100
}
```

# Actor output Schema

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

Dataset: the results.

## `summary` (type: `string`):

What each input returned, and notes.

# 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 = {
    "searches": [
        "bygg"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("zaiq/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 = { "searches": ["bygg"] }

# Run the Actor and wait for it to finish
run = client.actor("zaiq/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 '{
  "searches": [
    "bygg"
  ]
}' |
apify call zaiq/allabolag-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zaiq/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/rzREa0X2TyOL2EbLe/builds/VhZlYk7EmMuYs3FKH/openapi.json
