# Allabolag Scraper — Swedish Companies, Revenue & Contacts (`hipersoft/allabolag-scraper`) Actor

Scrape Swedish companies from Allabolag.se by industry or keyword: org number, phone, email, website, address, county, revenue, profit, employees and industries. Filter by county, municipality, size and revenue. B2B lead generation for Sweden. Export CSV/JSON.

- **URL**: https://apify.com/hipersoft/allabolag-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.001 / company

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 Companies with Revenue, Employees & Contacts

**Allabolag Scraper** extracts company data from **Allabolag.se**, Sweden's most-used company information site covering every Swedish limited company (aktiebolag) and business. Search any **industry or keyword** (Redovisning, Byggmästare, Datakonsulter, Restauranger…) and get each company's **organisation number (org.nr), name, industries, description, phone, email, website, visiting and postal address, municipality, county, annual revenue, profit, number of employees and accounts period**. Filter by **county (län), municipality (kommun), employees and revenue**, sort by **size**, and export **Swedish B2B leads** to **CSV, Excel or JSON**.

### What does Allabolag Scraper do?

- 🇸🇪 **Search by industry or keyword** across all Swedish companies.
- 📍 **Filter by location**: any of Sweden's 21 counties or 290 municipalities (Stockholm, Göteborg, Malmö, Uppsala…).
- 💰 **Financials**: annual revenue (omsättning) and profit (resultat) in SEK, plus number of employees.
- 📞 **Contacts**: phone numbers, email and website when published.
- 🏢 **Company identity**: org number, legal name, main industry and all listed industries, description.
- 🗺️ **Addresses**: visiting and postal address, postal code, city, municipality and county.
- 📊 **Sort by revenue or employees** to find the biggest (or smallest) companies first.
- 🚫 **Respects marketing protection**: companies that opted out of direct marketing (reklamspärr) are skipped by default.
- 📈 **Large searches split automatically** by county to go past the 10,000-result limit.

### What data can you scrape from Allabolag?

| Field | Description |
|---|---|
| Org number | Swedish organisation number |
| Name, legal name | Company names |
| Industry | Main industry and all industries |
| Description | Company description |
| Phone, email, website | Contacts (when published) |
| Addresses | Visiting and postal address, postal code, city |
| Location | Municipality and county |
| Revenue | Annual revenue in SEK |
| Profit | Annual profit in SEK |
| Employees | Number of employees |
| Accounts period | Latest financial statements period |
| Marketing protection | Opted out of direct marketing |

### Use cases for Swedish company data

- **B2B lead generation in Sweden**: build targeted lists by industry, region and company size.
- **Sales territory planning**: map companies and revenue by county and municipality.
- **Market sizing**: count companies and total revenue per industry.
- **M\&A and investment screening**: find profitable companies by revenue, profit and headcount.
- **CRM enrichment**: match companies by org number.
- **Supplier and partner sourcing**: find the largest players in any Swedish industry.

### How to scrape Allabolag

1. Click **Try for free** to open Allabolag Scraper in Apify Console.
2. Enter **industries or keywords** in Swedish.
3. Optionally choose a **county** or **municipality**, **sort order**, **minimum employees** or **minimum revenue**.
4. Set **Max companies** and click **Start**.
5. Download the companies as **CSV, Excel or JSON**.

### Input

#### Example input

```json
{
  "searchTerms": ["Redovisning", "Datakonsulter"],
  "county": "",
  "municipality": "Göteborg",
  "sortBy": "revenueDesc",
  "minEmployees": 10,
  "minRevenueSek": 10000000,
  "withContactOnly": true,
  "excludeMarketingProtected": true,
  "maxItems": 1000
}
```

| Field | Description |
|---|---|
| **Industries or keywords** | Swedish industry names or keywords, one search each. |
| **County (län)** | Limit to one county. |
| **Municipality (kommun)** | Limit to one municipality. |
| **Sort by** | Relevance, revenue or employees. |
| **Minimum employees** | Headcount floor. |
| **Minimum revenue (SEK)** | Revenue floor. |
| **Only companies with phone or email** | Skip companies without contacts. |
| **Exclude companies with marketing protection** | Skip reklamspärr companies (default on). |
| **Max companies** | Stop after this many (0 = no limit). |

### Output

#### Company example

```json
{
  "orgNumber": "5562602747",
  "name": "BDO Göteborg AB",
  "legalName": "BDO Göteborg AB",
  "url": "https://www.allabolag.se/5562602747",
  "industry": "Redovisning, bokföring",
  "industries": ["Redovisning, bokföring", "Skatterådgivning", "Revision"],
  "description": "BDO – din partner inom revision, redovisning och rådgivning.",
  "phone": "+46 (0) 10 171 50 00",
  "email": "marknad@bdo.se",
  "website": "https://www.bdo.se/sv-se/welcome-to-bdo",
  "visitingAddress": "Lilla Badhusgatan 2, 411 21 Göteborg",
  "postalCode": "411 21",
  "city": "Göteborg",
  "municipality": "Göteborg",
  "county": "Västra Götaland",
  "revenueSek": 313587000,
  "profitSek": 68715000,
  "employees": 162,
  "accountsPeriod": "2025-08",
  "marketingProtection": false
}
```

#### Output schema

| Field | Type | Description |
|---|---|---|
| `orgNumber` | string | Organisation number. |
| `name`, `legalName`, `url` | string | Company and Allabolag link. |
| `industry`, `industries`, `description` | mixed | Business activity. |
| `phone`, `otherPhones`, `email`, `website` | mixed | Contacts. |
| `visitingAddress`, `postalAddress`, `postalCode`, `city` | string | Addresses. |
| `municipality`, `county` | string | Location. |
| `revenueSek`, `profitSek` | number | Financials in SEK. |
| `employees` | number | Headcount. |
| `accountsPeriod` | string | Latest accounts period. |
| `marketingProtection` | boolean | Opted out of direct marketing. |
| `search`, `scrapedAt` | string | Source info. |

### How much does it cost to scrape Allabolag?

Allabolag Scraper uses **pay-per-company** pricing: a small fixed price per company, with automatic discounts on higher Apify plans. See the **Pricing** tab for the exact price.

### More lead-generation data

- [Google Maps Scraper](https://apify.com/hipersoft/google-maps-scraper): businesses from Google Maps worldwide.
- [Website Contact Scraper](https://apify.com/hipersoft/website-contact-scraper): extra emails and social links from company websites.

### FAQ

**Are revenue and profit in SEK?**
Yes, converted to full Swedish kronor from the latest published accounts.

**Why are some companies missing?**
By default, companies with marketing protection (reklamspärr) are skipped. Turn off **Exclude companies with marketing protection** to include them.

**How many companies can I get?**
Allabolag shows up to 10,000 companies per search. For bigger searches without a location, the scraper automatically splits by county.

**Does it include board members?**
No. The scraper collects company information only.

**What formats can I export?**
CSV, Excel, JSON, XML, HTML and RSS, or read the results through the Apify API.

**Can I integrate Allabolag Scraper with other apps?**
Allabolag Scraper can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). It works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [GitHub](https://docs.apify.com/platform/integrations/github), [Google Drive](https://docs.apify.com/platform/integrations/drive) and [many more](https://apify.com/integrations), plus the [Apify API](https://docs.apify.com/api/v2), JS/Python clients and MCP. Or use [webhooks](https://docs.apify.com/platform/integrations/webhooks) to trigger an action whenever a run finishes.

**Is it legal to scrape Allabolag?**
The scraper only collects publicly available company information. You are responsible for using the data in line with Allabolag's terms, the GDPR and Swedish marketing law.

### Related Actors

- [Google Maps Scraper](https://apify.com/hipersoft/google-maps-scraper)
- [Website Contact Scraper](https://apify.com/hipersoft/website-contact-scraper)

### Notes

Original clean-room implementation. Returns only public data. Not affiliated with Allabolag.se.

# Actor input Schema

## `searchTerms` (type: `array`):

Industries or keywords in Swedish, e.g. Redovisning, Byggmästare, Datakonsulter, Restauranger, Fastighetsbolag, Elinstallationer. Each term is a separate search.

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

Only companies in this county. Leave empty for all of Sweden (large searches are split by county automatically).

## `municipality` (type: `string`):

Only companies in this municipality, e.g. Göteborg, Malmö, Uppsala, Linköping.

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

Result order.

## `minEmployees` (type: `integer`):

Only companies with at least this many employees.

## `minRevenueSek` (type: `integer`):

Only companies with at least this annual revenue in SEK, e.g. 10000000 for 10 MSEK.

## `withContactOnly` (type: `boolean`):

Skip companies without a phone number or email.

## `excludeMarketingProtected` (type: `boolean`):

Skip companies that have opted out of direct marketing (reklamspärr). Recommended for outreach.

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

Stop after this many companies. 0 means no limit.

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

Not required for normal use.

## Actor input object example

```json
{
  "searchTerms": [
    "Redovisning"
  ],
  "county": "",
  "sortBy": "relevance",
  "minEmployees": 0,
  "minRevenueSek": 0,
  "withContactOnly": false,
  "excludeMarketingProtected": true,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

The results as dataset items.

# 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 = {
    "searchTerms": [
        "Redovisning"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/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 = {
    "searchTerms": ["Redovisning"],
    "maxItems": 50,
}

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

```

## MCP server setup

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