# Allabolag Scraper: Swedish Company Financials (`reventadata/allabolag-scraper`) Actor

Scrape Allabolag.se Swedish company data by industry or company name. Org number, revenue and profit in thousand SEK, employees, industry, visitor address, county, contact person and role, plus website, phone and email where listed. Unofficial.

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

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

> **Unofficial.** This Actor is not affiliated with, authorised by, endorsed by, or in any
> way officially connected to Allabolag or Eniro. "Allabolag" is a trademark of its respective owner
> and is used here only to describe what this tool reads. It reads public company data published on
> [allabolag.se](https://www.allabolag.se).

Allabolag Scraper extracts comprehensive Swedish company information, firmographics, contact details,
and headline financial data from [allabolag.se](https://www.allabolag.se). It captures organization numbers,
company names, revenue, profit, employee counts, key executives (VD / board), phone numbers, email addresses,
homepages, and visiting/postal addresses.

### What data can you extract from Allabolag?

The companies allabolag.se returns for your search, up to your item and page caps (a field is null when the company has no value for it):

- **Company identity**: Name, legal name, organization number (organisationsnummer), internal ID.
- **Financial metrics**: Revenue (TSEK), profit/loss (TSEK), currency (SEK), employee count, accounts updated date.
- **Key executive / management**: Contact person name, executive role (e.g. "Extern verkställande direktör", "Ledamot"), birth date.
- **Contact & web details**: Phone number, mobile number, contact email and company website URL, when the listing has them.
- **Addresses & location**: Visiting address, postal/mailing address, zip code, city, municipality (kommun), county (län).
- **Industry & classifications**: Primary SNI industry code and name, full list of secondary industry classifications.

### Why scrape Allabolag?

- **Sweden B2B lead generation & company research**: Extract company details, corporate decision-makers, and contact channels.
- **Full result depth**: Industry search returns up to the site ceiling of 400 pages (10,000 records). Company name search returns page 1 only.
- **Deterministic deduplication**: Automatic deduplication across page boundary shifts by organization number.

### How to scrape Allabolag

1. Enter a `searchQuery` (e.g. `bygg`, `restaurang`, `it-konsult`).
2. Select `searchType`: `industry` (default, paginates up to 400 pages) or `companyName` (exact name lookup, page 1).
3. Optionally select `sortBy` (`relevance`, `revenueAsc`, `revenueDesc`, `numEmployeesDesc`).
4. Set caps: `maxItems` and `maxPages`.
5. Run the Actor. Results are pushed to the default dataset.

#### Input

| Field | Type | Description |
|---|---|---|
| `searchQuery` | string | Keyword to search for companies or industries on allabolag.se. Default `bygg`. |
| `searchType` | string | `industry` (paginated) or `companyName` (exact name lookup, page 1). Default `industry`. |
| `sortBy` | string | Sort order: `relevance`, `revenueAsc`, `revenueDesc`, `numEmployeesDesc`. Default `relevance`. |
| `maxItems` | integer | Maximum number of company records to collect. Default 100. |
| `maxPages` | integer | Maximum number of search pages to crawl (each page holds up to 25 items, ceiling 400). Default 20. |
| `proxyConfiguration` | object | Optional proxy settings. |

Example input:

```json
{
    "searchQuery": "bygg",
    "searchType": "industry",
    "sortBy": "revenueDesc",
    "maxItems": 100,
    "maxPages": 5
}
```

#### Output

One row from a real platform run on 2026-11-11 (`industries` shortened to 2 items):

```json
{
  "orgnr": "5569442501",
  "name": "Aceve Sverige AB",
  "legalName": "Aceve Sverige AB",
  "companyId": "2K3WHC5I5YDMJ",
  "phone": null,
  "phone2": null,
  "mobile": null,
  "mobile2": null,
  "email": null,
  "homePage": "https://www.aceve.com",
  "visitorAddressLine": "Torsgatan 11",
  "visitorZipCode": "111 23",
  "visitorPostPlace": "Stockholm",
  "postalAddressLine": "Torsgatan 11",
  "postalZipCode": "111 23",
  "postalPostPlace": "Stockholm",
  "county": "Stockholm",
  "municipality": "Stockholm",
  "countryPart": "Hela Sverige",
  "revenueTsek": 180010,
  "profitTsek": 3932,
  "currency": "SEK",
  "employees": 123,
  "companyAccountsLastUpdatedDate": "2024-12",
  "contactPersonName": "Claus Thorsgaard",
  "contactPersonRole": "Ledamot",
  "contactPersonType": "Person",
  "contactPersonBirthDate": "17.04.1969",
  "currentIndustryCode": "10002043",
  "currentIndustryName": "Datakonsulter",
  "currentIndustryDescription": "Aceve: Projekverktyg och affärssystem för bygg och installation.",
  "industries": [
    {
      "code": "10002043",
      "name": "Datakonsulter"
    },
    {
      "code": "10002017",
      "name": "Data/IT-konsulter . Branschspecialister"
    }
  ],
  "marketingProtection": false,
  "description": "Aceve: Projekverktyg och affärssystem för bygg och installation.",
  "customerId": "2190835",
  "listingId": "3575654",
  "url": "https://www.allabolag.se/foretag/aceve-sverige-ab/stockholm/datakonsulter/2K3WHC5I5YDMJ",
  "searchUrl": "https://www.allabolag.se/bransch-s%C3%B6k?q=bygg"
}
```

### Pricing

The Actor uses pay-per-event pricing. The current price is on the Actor's Pricing tab.

# Actor input Schema

## `searchQuery` (type: `string`):

Keyword to search for companies or industries on allabolag.se (e.g. "bygg", "restaurang", "it-konsult").

## `searchType` (type: `string`):

Search mode: "industry" searches industries and categories (paginated up to 400 pages); "companyName" searches by exact company name (page 1 only).

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

Sort order for search results (applies to industry search).

## `maxItems` (type: `integer`):

Maximum number of company records to collect.

## `maxPages` (type: `integer`):

Maximum number of search pages to crawl (each page holds up to 25 items). The ceiling is 400 pages (10,000 items).

## `proxyConfiguration` (type: `object`):

Optional proxy settings. Turn on only if you see request failures.

## Actor input object example

```json
{
  "searchQuery": "bygg",
  "searchType": "industry",
  "sortBy": "relevance",
  "maxItems": 10,
  "maxPages": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `companies` (type: `string`):

Swedish company records: name, orgnr, revenue, profit, employees, CEO, phone, email, and address.

# 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 = {
    "searchQuery": "bygg",
    "searchType": "industry",
    "maxItems": 10,
    "maxPages": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("reventadata/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 = {
    "searchQuery": "bygg",
    "searchType": "industry",
    "maxItems": 10,
    "maxPages": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("reventadata/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 '{
  "searchQuery": "bygg",
  "searchType": "industry",
  "maxItems": 10,
  "maxPages": 1
}' |
apify call reventadata/allabolag-scraper --silent --output-dataset

```

## MCP server setup

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