# 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, 94.1% 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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

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