# Allabolag.se Scraper - Swedish Company Data & Leads (`studio-amba/allabolag-se-scraper`) Actor

Extract Swedish company leads from allabolag.se. Search by industry keyword and city for company name, org number, phone, email, website, revenue, employees and CEO. All data comes from the results page. Optional detail enrichment for financials and SNI codes. Export CSV, JSON, Excel.

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

## Pricing

from $12.00 / 1,000 result scrapeds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Allabolag.se Scraper — Swedish Company Data & Leads

Extract company data from [allabolag.se](https://www.allabolag.se), Sweden's most-used company lookup service. Search by industry keyword and city and get company name, organisation number, phone, email, website — plus revenue, number of employees and CEO — all from the results pages.

### Why use this actor?

Allabolag is where Swedish businesses, journalists and salespeople check a company's registration, size and finances. For lead generation and market research it is a goldmine: unusually for a directory, the search results already carry revenue, employee count and the CEO's name next to the phone, email and website. This actor turns any industry-and-city search into a structured list of Swedish companies with firmographics attached.

### How to scrape Allabolag data

1. Enter a **search query** in Swedish — an industry or keyword such as `restaurang`, `bygg`, `konsult` or `frisör`.
2. Optionally enter a **city** (for example `Stockholm` or `Goteborg`) to focus the results.
3. Set **max results**.
4. Click **Start**. The actor reads the structured JSON embedded in each results page and returns one row per company.
5. Download as **CSV, JSON, Excel** or via the API.

Each company on a results page ships with its phone, website, email, latest revenue and profit, employee count and CEO. The optional **Fetch details** toggle additionally opens each company page for multi-year financials, SNI/NACE industry codes and F-tax status.

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `searchQuery` | String | No | Industry or keyword in Swedish (default: `restaurang`) |
| `location` | String | No | City to narrow the search (e.g. `Stockholm`) |
| `fetchDetails` | Boolean | No | Visit each company page for multi-year financials and SNI codes. Slower. Default `false` |
| `maxResults` | Integer | No | Maximum number of companies to return (default: 100) |
| `proxyConfiguration` | Object | No | Apify proxy settings. Default Apify proxy is enough |

#### Example input

```json
{
    "searchQuery": "restaurang",
    "location": "Stockholm",
    "maxResults": 100,
    "proxyConfiguration": { "useApifyProxy": true }
}
````

### Output

Each result contains:

| Field | Type | Example |
|-------|------|---------|
| `businessName` | String | `"Restaurang Kamarina AB"` |
| `category` | String | `"Restauranger"` |
| `address` | String | `"Pelle Bergs backe 3"` |
| `city` | String | `"Falun"` |
| `postalCode` | String | `"791 50"` |
| `region` | String | `"Dalarna"` (county) |
| `phone` | String | `"08-6445876"` |
| `website` | String | `"https://www.kamarina.se/"` |
| `email` | String | `"info@kamarina.se"` |
| `registrationNumber` | String | `"5565704789"` (org.nr) |
| `extraFields` | Object | `{ "revenue": "10376 SEK", "employees": "8", "ceo": "Anna Sehlberg (VD)" }` |
| `url` | String | Company page URL |
| `scrapedAt` | String | ISO timestamp |

#### Example output

```json
{
    "businessName": "CariAnna Restaurang & Catering AB",
    "category": "Restauranger",
    "address": "Pelle Bergs backe 3",
    "city": "Falun",
    "postalCode": "791 50",
    "region": "Dalarna",
    "phone": "023 13620",
    "website": "http://www.carianna.se",
    "email": "info@carianna.se",
    "registrationNumber": "5565704789",
    "extraFields": {
        "revenue": "10376 SEK",
        "profit": "360 SEK",
        "employees": "8",
        "ceo": "Anna Margareta Sehlberg (Verkställande direktör)",
        "marketingProtection": false
    },
    "url": "https://www.allabolag.se/5565704789",
    "scrapedAt": "2026-07-13T09:20:11.000Z"
}
```

### Pagination and the 10,000-result cap

Allabolag returns 25 companies per page and caps any single search at 400 pages (10,000 results). To pull more than that from a large industry, narrow the search with a city or a more specific keyword and run the actor once per segment. The `marketingProtection` flag on each company reflects the Swedish direct-marketing opt-out — pass it through to stay compliant when building outreach lists.

### Cost estimate

The actor uses plain HTTP (no browser), so it is fast and cheap: one request returns 25 companies with firmographics attached. Expect a few thousand companies per US dollar of Apify usage. `fetchDetails` adds one request per company for full financials and increases cost and runtime — these runs are resumable if interrupted.

### Limitations

- **10,000 results per query.** Segment by city or keyword to go deeper.
- **Email coverage is partial.** Many Swedish companies do not publish an email; phone and website coverage is high.
- **`fetchDetails` is slower** but adds multi-year accounts, SNI codes and tax status.

### Related Scrapers

- [Panoramafirm.pl Scraper](https://apify.com/jelle.desramaults/panoramafirm-pl-scraper) — Polish business directory leads
- [Firmy.cz Scraper](https://apify.com/jelle.desramaults/firmy-cz-scraper) — Czech business directory leads
- [Local.ch Scraper](https://apify.com/jelle.desramaults/local-ch-scraper) — Swiss business directory leads
- [Companies House Scraper](https://apify.com/jelle.desramaults/companies-house-scraper) — UK company registry data
- [KRS Scraper](https://apify.com/jelle.desramaults/krs-scraper) — Polish National Court Register company data
- [Pappers Scraper](https://apify.com/jelle.desramaults/pappers-scraper) — French company registry data

### FAQ

**Do I need an Allabolag account or cookies?**
No. Everything comes from public results pages.

**Where do revenue and employee numbers come from?**
From the figures Allabolag publishes on each company, sourced from Swedish annual filings. They reflect the latest reported year.

**Can I look up a single company?**
Use a specific search query. For full registry lookups by organisation number, the detail toggle reads the company page directly.

# Actor input Schema

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

Industry or keyword to search for, in Swedish (e.g. 'restaurang', 'bygg', 'konsult').

## `location` (type: `string`):

Optional city to narrow the search (e.g. 'Stockholm', 'Goteborg'). Leave empty to search all of Sweden.

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

Visit each company page for extra data: multi-year financials, SNI/NACE codes and F-tax status. Slower: one extra request per company. Resumable if interrupted.

## `maxResults` (type: `integer`):

Maximum number of companies to return. Each query is capped at 10,000 results by the site — narrow by city or keyword for more.

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

Apify proxy settings. Default Apify proxy works for allabolag.se.

## Actor input object example

```json
{
  "searchQuery": "restaurang",
  "location": "Stockholm",
  "fetchDetails": false,
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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": "restaurang",
    "location": "Stockholm",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/allabolag-se-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": "restaurang",
    "location": "Stockholm",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": "restaurang",
  "location": "Stockholm",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call studio-amba/allabolag-se-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=studio-amba/allabolag-se-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Allabolag.se Scraper - Swedish Company Data & Leads",
        "description": "Extract Swedish company leads from allabolag.se. Search by industry keyword and city for company name, org number, phone, email, website, revenue, employees and CEO. All data comes from the results page. Optional detail enrichment for financials and SNI codes. Export CSV, JSON, Excel.",
        "version": "0.0",
        "x-build-id": "jmR7ghredlQa1T1Sv"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/studio-amba~allabolag-se-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-studio-amba-allabolag-se-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/studio-amba~allabolag-se-scraper/runs": {
            "post": {
                "operationId": "runs-sync-studio-amba-allabolag-se-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/studio-amba~allabolag-se-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-studio-amba-allabolag-se-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchQuery": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Industry or keyword to search for, in Swedish (e.g. 'restaurang', 'bygg', 'konsult').",
                        "default": "restaurang"
                    },
                    "location": {
                        "title": "City / Location (optional)",
                        "type": "string",
                        "description": "Optional city to narrow the search (e.g. 'Stockholm', 'Goteborg'). Leave empty to search all of Sweden."
                    },
                    "fetchDetails": {
                        "title": "Fetch details (financials, SNI codes)",
                        "type": "boolean",
                        "description": "Visit each company page for extra data: multi-year financials, SNI/NACE codes and F-tax status. Slower: one extra request per company. Resumable if interrupted.",
                        "default": false
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of companies to return. Each query is capped at 10,000 results by the site — narrow by city or keyword for more.",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Apify proxy settings. Default Apify proxy works for allabolag.se.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
