# Kompass Company Scraper (`moving_beacon-owner1/kompass-company-scraper`) Actor

Scrapes company records from the Kompass B2B directory via B2BStars by keyword, country, or company name, capturing names, locations, industries, employee ranges, websites, NACE classifications, and optional profile details such as addresses, VAT numbers, and social links.

- **URL**: https://apify.com/moving\_beacon-owner1/kompass-company-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Categories:**
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.99 / 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?

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

## Kompass Company Scraper

Collects company records from the Kompass global B2B directory, read through its partner directory B2BStars. Search by activity or product keyword — optionally per country — or look a company up by name, and get one flat record per company: name, location, industry classification, employee range, website and more. Turning on profile enrichment adds street address, postal code, VAT number and social links.

### Input

| Field | Default | Description |
| --- | --- | --- |
| `query` | `software` | Activity/product keyword in keyword mode, or a company name in name mode. |
| `search_mode` | `keyword` | `keyword` (activity/product search, honours the country filter) or `name` (worldwide company-name lookup). |
| `countries` | *(empty — worldwide)* | Comma-separated ISO country codes, e.g. `NL,DE,FR`. Each country returns roughly 20 companies, so listing several multiplies coverage. |
| `include_details` | `false` | Also open each company's profile page to add street, postal code, VAT and social links (one extra request per company). |
| `limit` | `20` | Maximum company records to return (1–500). |
| `proxyConfiguration` | Optional | Enable a US-based proxy for the most reliable results. |

### Output

Each result is one company:

```json
{
    "company_id": "0010800003LFkBYAA1",
    "name": "Johnson Controls Systems & Service B.V.",
    "trading_name": null,
    "profile_url": "https://www.b2bstars.com/en/kompass/company/johnson-controls-systems--service-bv",
    "website": "johnsoncontrols.com",
    "country": "NL",
    "region": "ZUID-HOLLAND",
    "state": "GORINCHEM",
    "city": "GORINCHEM",
    "street": "Avelingen-West 5",
    "postal_code": "3062ME",
    "employees_range": "500-999",
    "industry": "Services",
    "business_categories": ["Services", "Financial", "Consumer credit"],
    "nace_code": "K64.9.2",
    "nace_description": "Other credit granting",
    "nace_codes": ["K64", "K64.9", "K64.9.2"],
    "nace_descriptions": ["Financial service activities", "Other financial service activities", "Other credit granting"],
    "purchase_signals": 0,
    "field_of_activity": [],
    "description": null,
    "vat": null,
    "facebook": null,
    "twitter": null,
    "instagram": null,
    "linkedin": null,
    "logo": "https://s3.eu-west-1.amazonaws.com/static.b2bstars.com/logo/0010800003LFkBYAA1.png?v=31136612",
    "verified": false,
    "claimed": false,
    "rating": null,
    "review_count": 0,
    "match_type": "other",
    "search_query": "software",
    "search_country": "NL",
    "raw": { ... }
}
```

`street`, `postal_code`, `vat` and the social-link fields are filled when `include_details` is on (a few appear in search results too). Sponsored listings are marked with `"match_type": "sponsored"`.

### Notes

- Runs with empty input (worldwide keyword search for `software`).
- Enable a US-based proxy for the most reliable results.
- Phone numbers and e-mail addresses are behind the directory's paid tier and are not included.
- Intended for research and lead-generation use; please respect the directory's terms of service.

# Actor input Schema

## `query` (type: `string`):

What to search for: an activity, product or sector keyword (e.g. 'software', 'packaging machinery') in keyword mode, or a company name (e.g. 'Philips') in company-name mode.

## `search_mode` (type: `string`):

'keyword' searches companies by activity/product keyword and honours the country filter. 'name' looks a company up by its name worldwide.

## `countries` (type: `string`):

Comma-separated ISO country codes to search in, e.g. 'NL,DE,FR'. Each search returns roughly 20 companies per country, so listing several countries multiplies coverage. Leave empty for a worldwide search.

## `include_details` (type: `boolean`):

Also open each company's profile page to add street address, postal code, VAT number and social links. Slower (one extra request per company).

## `limit` (type: `integer`):

Maximum number of company records to return. Each keyword search yields roughly 20 companies per country listed.

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

Proxy settings for the run. Enable a US-based proxy for the most reliable results, especially for sites that limit non-US or datacenter traffic. Optional — leave off to run directly.

## Actor input object example

```json
{
  "query": "software",
  "search_mode": "keyword",
  "countries": "NL,DE,FR",
  "include_details": false,
  "limit": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

# 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 = {
    "query": "software",
    "search_mode": "keyword",
    "countries": "NL,DE,FR",
    "include_details": false,
    "limit": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/kompass-company-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 = {
    "query": "software",
    "search_mode": "keyword",
    "countries": "NL,DE,FR",
    "include_details": False,
    "limit": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/kompass-company-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 '{
  "query": "software",
  "search_mode": "keyword",
  "countries": "NL,DE,FR",
  "include_details": false,
  "limit": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call moving_beacon-owner1/kompass-company-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/kompass-company-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/UPYH5I7Bup6ivLPTO/builds/zsGRYSwRSXmDOr0VG/openapi.json
