# Kompass Scraper - Global B2B Company Directory (`santamaria-automations/kompass-scraper`) Actor

Scrape company data from Kompass.com, a global B2B directory with 60M+ companies across 70+ countries. Extract names, websites, phone numbers, emails, addresses, employee counts, certifications, and more.

- **URL**: https://apify.com/santamaria-automations/kompass-scraper.md
- **Developed by:** [Alessandro Santamaria](https://apify.com/santamaria-automations) (community)
- **Categories:** Lead generation, Automation, AI
- **Stats:** 1 total users, 1 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 company found (search)s

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.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.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/platform/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

## Kompass Scraper - Global B2B Company Directory

Scrape company data from [Kompass.com](https://www.kompass.com), a global B2B directory with 60M+ companies across 70+ countries.

### What data do you get?

For each company, the scraper extracts:

- **Company name** and description
- **Website URL**, phone number, and email
- **Full address** (street, postal code, city, country)
- **GPS coordinates** (latitude/longitude)
- **Employee count** (e.g., "Von 20 bis 49 Mitarbeiter")
- **Year founded**
- **Revenue/turnover**
- **Supplier type** (Exporter, Manufacturer, Service provider, etc.)
- **Product categories** and certifications (ISO, etc.)
- **Company logo**

### How to use

#### Option 1: Paste a search URL

1. Go to any Kompass country site (e.g., [de.kompass.com](https://de.kompass.com)) and search for companies
2. Copy the search results URL
3. Paste it into the **Search URLs** field

Works with all Kompass country domains: `de.kompass.com`, `fr.kompass.com`, `gb.kompass.com`, `it.kompass.com`, `es.kompass.com`, and 70+ more.

#### Option 2: Use search query + country

Set the **Search Query** (e.g., "software") and **Country** code (e.g., "DE") fields. The scraper builds the URL automatically.

#### Input example

```json
{
  "searchUrls": ["https://de.kompass.com/searchCompanies?text=software"],
  "maxResults": 100,
  "includeDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "countryCode": "DE"
  }
}
````

#### Input parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `searchUrls` | array | Kompass search result URLs |
| `searchQuery` | string | Search keyword (alternative to searchUrls) |
| `country` | string | ISO country code for domain (default: "DE") |
| `maxResults` | integer | Maximum companies to scrape (default: 100) |
| `includeDetails` | boolean | Fetch detail pages for full data (default: true) |
| `proxyConfiguration` | object | Proxy settings (RESIDENTIAL recommended) |

### Output example

```json
{
  "id": "DENKC00033877",
  "name": "RLS Wacon analytics GmbH",
  "description": "Die RLS Wacon analytics GmbH ist ein Familienunternehmen mit Sitz in Hildesheim...",
  "website": "https://www.rls-wacon.de",
  "phone": "+49 5121 28 126 0",
  "email": "info@rls-wacon.de",
  "address": "Gropiusstrasse 12, 31137 Hildesheim",
  "city": "Hildesheim",
  "postal_code": "31137",
  "country": "Germany",
  "country_code": "DE",
  "latitude": 52.16463,
  "longitude": 9.92306,
  "logo_url": "https://img.kompass.com/sys-master-images/...",
  "employee_count": "Von 20 bis 49 Mitarbeiter",
  "year_founded": "2005",
  "supplier_type": "Exporteur",
  "categories": ["Elektrische Messgeraete und Steuergeraete", "Analysegeraete fuer Fluessigkeiten"],
  "certifications": ["ISO 9001"],
  "source_url": "https://de.kompass.com/c/rls-wacon-analytics-gmbh/denkc00033877/",
  "source_platform": "kompass.com",
  "scraped_at": "2026-03-26T10:30:00Z"
}
```

### Tips

- **Include Details = ON** gives you email, full address, coordinates, employee count, founding year, and more. Highly recommended.
- **Include Details = OFF** is faster but only returns name, city, phone, website, and categories from search results.
- **RESIDENTIAL proxy with country matching** is recommended. Kompass uses DataDome bot protection which may challenge datacenter IPs. Set `countryCode` in proxy config to match the Kompass domain (e.g., "DE" for de.kompass.com).
- The scraper works with all 70+ Kompass country domains.
- The scraper rotates through multiple Chrome TLS profiles and proxy sessions automatically for best success rates.

### Known limitations

Kompass.com uses DataDome bot protection which requires JavaScript execution for initial challenge solving. The success rate depends on the proxy quality and IP reputation. If you consistently get 0 results, try:

1. Using RESIDENTIAL proxy group with country matching
2. Running at different times of day
3. Reducing `maxResults` to avoid rate limiting

### Pricing

This actor uses pay-per-result pricing:

| Event | Price |
|-------|-------|
| Per run | $0.005 |
| Per company (search only) | $0.003 |
| Per company (with details) | $0.005 |

### Technical details

- Built in Go with TLS fingerprinting (Chrome profile rotation)
- \~12MB Docker image, 128MB RAM
- Parses structured JSON-LD data on detail pages (Organization schema)
- Extracts phone, website, categories from search result cards (HTML)
- Rotates through 5 Chrome TLS profiles with session-based proxy rotation
- Handles pagination automatically
- Rate-limited to be respectful to the website

If something is not working or you're missing a feature or data field, please [open an issue](https://console.apify.com/actors/UHpylvipwuOrwQxtk/issues) and we'll look into it.

# Actor input Schema

## `searchUrls` (type: `array`):

One or more Kompass search result URLs. Works with any country domain (de.kompass.com, fr.kompass.com, gb.kompass.com, etc.). Example: https://de.kompass.com/searchCompanies?text=software

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

Search keyword (e.g., 'software', 'engineering', 'metalworking'). Used to build a search URL if searchUrls is empty.

## `country` (type: `string`):

ISO country code for the Kompass domain (e.g., 'DE' for de.kompass.com, 'FR' for fr.kompass.com). Only used if searchUrls is empty.

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

Maximum number of companies to scrape.

## `includeDetails` (type: `boolean`):

Fetch each company's detail page for full address, email, coordinates, employee count, founding year, and more. Slower but much richer data.

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

Apify proxy settings. Recommended for Kompass to handle bot protection.

## Actor input object example

```json
{
  "searchUrls": [
    "https://de.kompass.com/searchCompanies?text=software"
  ],
  "country": "DE",
  "maxResults": 50,
  "includeDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset containing scraped company data

# 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 = {
    "searchUrls": [
        "https://de.kompass.com/searchCompanies?text=software"
    ],
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("santamaria-automations/kompass-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 = {
    "searchUrls": ["https://de.kompass.com/searchCompanies?text=software"],
    "maxResults": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("santamaria-automations/kompass-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 '{
  "searchUrls": [
    "https://de.kompass.com/searchCompanies?text=software"
  ],
  "maxResults": 50
}' |
apify call santamaria-automations/kompass-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Kompass Scraper - Global B2B Company Directory",
        "description": "Scrape company data from Kompass.com, a global B2B directory with 60M+ companies across 70+ countries. Extract names, websites, phone numbers, emails, addresses, employee counts, certifications, and more.",
        "version": "1.0",
        "x-build-id": "X68DyhLj4fpAMhf1B"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/santamaria-automations~kompass-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-santamaria-automations-kompass-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/santamaria-automations~kompass-scraper/runs": {
            "post": {
                "operationId": "runs-sync-santamaria-automations-kompass-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/santamaria-automations~kompass-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-santamaria-automations-kompass-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": {
                    "searchUrls": {
                        "title": "Search URLs",
                        "type": "array",
                        "description": "One or more Kompass search result URLs. Works with any country domain (de.kompass.com, fr.kompass.com, gb.kompass.com, etc.). Example: https://de.kompass.com/searchCompanies?text=software",
                        "items": {
                            "type": "string"
                        }
                    },
                    "searchQuery": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Search keyword (e.g., 'software', 'engineering', 'metalworking'). Used to build a search URL if searchUrls is empty."
                    },
                    "country": {
                        "title": "Country",
                        "type": "string",
                        "description": "ISO country code for the Kompass domain (e.g., 'DE' for de.kompass.com, 'FR' for fr.kompass.com). Only used if searchUrls is empty.",
                        "default": "DE"
                    },
                    "maxResults": {
                        "title": "Maximum Results",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of companies to scrape.",
                        "default": 100
                    },
                    "includeDetails": {
                        "title": "Include Full Details",
                        "type": "boolean",
                        "description": "Fetch each company's detail page for full address, email, coordinates, employee count, founding year, and more. Slower but much richer data.",
                        "default": true
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Apify proxy settings. Recommended for Kompass to handle bot protection.",
                        "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
