# Belgian Companies Scraper (`moving_beacon-owner1/belgian-companies-scraper`) Actor

Extract authoritative Belgian company records, enterprise numbers (KBO/CBE), establishment units, legal forms, status, registered addresses, and published contact details

- **URL**: https://apify.com/moving_beacon-owner1/belgian-companies-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 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?

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

## Belgian Companies Scraper (KBO/CBE Public Register)

Extract authoritative Belgian company records, enterprise numbers (KBO/CBE), establishment units, legal forms, status, registered addresses, and published contact details directly from Belgium's official **Crossroads Bank for Enterprises** (*Banque-Carrefour des Entreprises / Kruispuntbank van Ondernemingen*) public search at [kbopub.economie.fgov.be](https://kbopub.economie.fgov.be).

***

### Features

- **Official Belgian Federal Data**: Directly searches Belgium's statutory public enterprise register (CBE / KBO), providing authoritative company registration data.
- **Enterprise & Establishment Identification**: Captures both 10-digit enterprise registration numbers (`0xxx.xxx.xxx`) and specific establishment unit numbers.
- **Legal Form & Status**: Extracts legal forms (*Besloten vennootschap*, *Société anonyme*, *VOF*, etc.) and current operating status (*Active* vs. *Stopped*).
- **Address & Geo Filtering**: Supports targeting by 4-digit Belgian postal code (e.g. `1000` for Brussels, `2000` for Antwerp, `9000` for Ghent).
- **Detail Enrichment**: Automatically accesses individual entity views to enrich records with start dates, establishment counts, published phone numbers, email addresses, and websites.
- **Anti-Bot Resilience & Smart Retries**: Built with `curl-cffi` leveraging Chrome TLS fingerprint impersonation, automatic exponential backoff for server errors, and dynamic `Retry-After` handling for HTTP 429 rate limits.
- **Apify Proxy Compatible**: Integrates with Apify Proxy (datacenter and residential).

***

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `query` | `string` | `"Delhaize"` | **Required**. Company name, establishment name, or search keyword. |
| `postal_code` | `string` | `""` | Optional 4-digit Belgian postal code (e.g. `"1000"`, `"2000"`). |
| `active_only` | `boolean` | `true` | Restrict results to active entities. Set to `false` to include stopped or dissolved entities. |
| `limit` | `integer` | `20` | Maximum total number of company records to scrape and push to the dataset. |
| `pages` | `integer` | `2` | Maximum search result pages to traverse (20 companies per page). |
| `details` | `boolean` | `true` | Whether to enrich results by fetching each company's detail page. |
| `details_limit` | `integer` | `5` | Maximum number of detail pages to fetch. Set to `0` to enrich all scraped records. |
| `delay` | `number` | `0.5` | Politeness delay in seconds between consecutive HTTP requests. |
| `timeout` | `integer` | `40` | Network request timeout in seconds. |
| `proxyConfiguration` | `object` | `null` | Optional Apify proxy settings (e.g. `{"useApifyProxy": true, "apifyProxyCountry": "BE"}`). |

***

### Example Input JSON

```json
{
  "query": "Delhaize",
  "postal_code": "",
  "active_only": true,
  "limit": 20,
  "pages": 2,
  "details": true,
  "details_limit": 5,
  "delay": 0.5,
  "timeout": 40,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "BE"
  }
}
```

***

### Output Dataset Schema

Each item in the output dataset contains:

| Field | Type | Description |
|---|---|---|
| `enterprise_number` | `string` | Unique 10-digit Belgian enterprise registration number (`0xxx.xxx.xxx`). |
| `establishment_number` | `string` | Unique establishment unit number (*vestigingseenheid*). |
| `name` | `string` | Official registered company or establishment name. |
| `entity_type` | `string` | Entity classification (*Legal person* or *Natural person*). |
| `status` | `string` | Current registration status (*Active* or *Stopped*). |
| `legal_form` | `string` | Statutory legal structure (e.g. *Besloten vennootschap*). |
| `start_date` | `string` | Official registration or start date. |
| `address` | `string` | Full registered seat or establishment address. |
| `street` | `string` | Street name and building number. |
| `postal_code` | `string` | Belgian 4-digit postal code. |
| `city` | `string` | City or municipality name. |
| `phone` | `string` | Published official phone number (if listed in CBE). |
| `email` | `string` | Published official contact email (if listed in CBE). |
| `website` | `string` | Published official website URL (if listed in CBE). |
| `establishment_count` | `integer` | Total number of registered establishment units. |
| `detail_url` | `string` | URL to the official CBE enterprise detail view. |
| `establishment_url` | `string` | URL to the establishment unit view on CBE. |
| `source` | `string` | Source domain name (`kbopub.economie.fgov.be`). |
| `scraped_at` | `string` | ISO 8601 UTC timestamp of data extraction. |

#### Example Output Record

```json
{
  "enterprise_number": "0400.206.216",
  "establishment_number": "2.000.001.234",
  "name": "DELHAIZE LE LION / DE LEEUW",
  "entity_type": "Legal person",
  "status": "Active",
  "legal_form": "Besloten vennootschap",
  "start_date": "01-01-1970",
  "address": "Square Marie Curie 40, 1070 Anderlecht",
  "street": "Square Marie Curie 40",
  "postal_code": "1070",
  "city": "Anderlecht",
  "phone": "+32 2 412 21 11",
  "email": "contact@delhaize.be",
  "website": "https://www.delhaize.be",
  "establishment_count": 850,
  "detail_url": "https://kbopub.economie.fgov.be/kbopub/toonondernemingps.html?ondernemingsnummer=0400206216",
  "establishment_url": "https://kbopub.economie.fgov.be/kbopub/toonvestigingps.html?vestigingsnummer=2000001234",
  "source": "kbopub.economie.fgov.be",
  "scraped_at": "2026-11-18T10:30:00.000000+00:00"
}
```

***

### Policy and Compliance

- **Public Statutory Data**: The data extracted is public register information maintained by the Belgian Federal Public Service Economy (*FPS Economy, SMEs, Self-employed and Energy*).
- **Polite Crawling**: Respect rate limits by maintaining a minimum `delay` of `0.5` seconds between requests.
- **GDPR / Privacy**: When processing natural person enterprise records (*natuurlijk persoon / personne physique*), ensure compliance with EU General Data Protection Regulation (GDPR).

# Actor input Schema

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

Company name, establishment name, or keyword (e.g. 'Delhaize', 'Colruyt', 'bakkerij').

## `postal_code` (type: `string`):

Optional 4-digit Belgian postal code (e.g. '1000' for Brussels, '2000' for Antwerp) to filter results geographically.

## `active_only` (type: `boolean`):

Filter results to active entities only. Uncheck to include stopped/dissolved entities.

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

Maximum number of company records to scrape and push to the dataset.

## `pages` (type: `integer`):

Maximum number of search result pages to traverse (20 companies per page).

## `details` (type: `boolean`):

Enrich records with legal form, start date, contact details, and establishment count from detail pages.

## `details_limit` (type: `integer`):

Maximum number of detail pages to fetch. Set to 0 to enrich all matched records.

## `delay` (type: `number`):

Seconds to wait between requests to ensure polite scraping and prevent IP blocks.

## `timeout` (type: `integer`):

Network request timeout in seconds.

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

Optional Apify proxy configuration to route requests through proxies.

## Actor input object example

```json
{
  "query": "Delhaize",
  "postal_code": "",
  "active_only": true,
  "limit": 20,
  "pages": 2,
  "details": true,
  "details_limit": 5,
  "delay": 0.5,
  "timeout": 40,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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": "Delhaize",
    "limit": 20,
    "pages": 2,
    "details_limit": 5,
    "delay": 0.5,
    "timeout": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/belgian-companies-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": "Delhaize",
    "limit": 20,
    "pages": 2,
    "details_limit": 5,
    "delay": 0.5,
    "timeout": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/belgian-companies-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": "Delhaize",
  "limit": 20,
  "pages": 2,
  "details_limit": 5,
  "delay": 0.5,
  "timeout": 40
}' |
apify call moving_beacon-owner1/belgian-companies-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/belgian-companies-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/0C3YGMAT8fGDjlEG3/builds/3zNKu7Lwqv5zRiSqB/openapi.json
