Documentation

The Belfirm API is a REST API that returns JSON. You use it through RapidAPI, which handles your API key and billing. The full technical reference for every endpoint is in the interactive API reference (OpenAPI).

Authentication

Subscribe to a plan on RapidAPI. You get a key that you send with every request in the X-RapidAPI-Key and X-RapidAPI-Host headers.

Look up a company

Fetch a company’s profile by its enterprise number:

curl
curl "https://belfirm.p.rapidapi.com/v1/enterprise/0200.065.765?lang=en" \
  -H "X-RapidAPI-Key: YOUR_KEY" \
  -H "X-RapidAPI-Host: belfirm.p.rapidapi.com"
Python
import requests

r = requests.get(
    "https://belfirm.p.rapidapi.com/v1/enterprise/0200.065.765",
    params={"lang": "en"},
    headers={"X-RapidAPI-Key": "YOUR_KEY", "X-RapidAPI-Host": "belfirm.p.rapidapi.com"},
)
print(r.json()["name"])
JavaScript
const r = await fetch("https://belfirm.p.rapidapi.com/v1/enterprise/0200.065.765?lang=en", {
  headers: { "X-RapidAPI-Key": "YOUR_KEY", "X-RapidAPI-Host": "belfirm.p.rapidapi.com" },
});
const company = await r.json();
console.log(company.name);
Response
{
  "enterprise_number": "0200065765",
  "enterprise_number_formatted": "0200.065.765",
  "name": "Intergemeentelijke Vereniging Veneco",
  "is_natural_person": false,
  "juridical_form": {"code": "416", "description": "Dienstverlenende vereniging (Vlaams Gewest)"},
  "juridical_situation": {"code": "000", "description": "Normale toestand"},
  "start_date": "1960-08-09",
  "registered_address": {"street_nl": "Panhuisstraat", "house_number": "1",
                         "zipcode": "9070", "municipality_nl": "Destelbergen"},
  "activities": [{"nace_code": "68121", "nace_version": "2025",
                  "description": "Ontwikkeling van residentiële bouwprojecten"}],
  "establishments_count": 1,
  "meta": {"source": "Bron: Kruispuntbank van Ondernemingen", "snapshot_date": "2026-10-26"}
}

Parameters: lang (nl, fr, de, en) for labels and nace_version (latest, all or e.g. 2008). A deregistered company returns 410 with its last known name.

Every word must match the start of a word in a name. Optional filters: zipcode, nace, juridical_form, include_natural_persons.

curl
curl "https://belfirm.p.rapidapi.com/v1/search?q=veneco&limit=5" \
  -H "X-RapidAPI-Key: YOUR_KEY" -H "X-RapidAPI-Host: belfirm.p.rapidapi.com"

Monitoring: watching companies

Create a watch for a company. Omit events to follow every change. Store the secret from the response: it is shown only once.

curl
curl -X POST "https://belfirm.p.rapidapi.com/v1/watch" \
  -H "X-RapidAPI-Key: YOUR_KEY" -H "X-RapidAPI-Host: belfirm.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{"enterprise_number": "0200.065.765",
       "events": ["enterprise.juridical_situation_changed", "enterprise.deregistered"],
       "webhook_url": "https://example.com/hooks/belfirm"}' 

Watch up to 1000 companies at once with POST /v1/watch/bulk.

Receiving webhooks

On every change we send a POST to your webhook_url. Respond with a 2xx status. Otherwise we retry after 1, 2, 4, 8 … minutes (8 attempts). Test your endpoint with POST /v1/watch/{id}/test.

POST → webhook_url
{
  "id": 48213,
  "type": "enterprise.juridical_situation_changed",
  "enterprise_number": "0200065765",
  "snapshot_date": "2026-11-03",
  "watch_id": "5f2c9a0e-6a8e-4c43-9f0b-2f1d8f6c1e77",
  "data": {"field": "juridical_situation", "old": "000", "new": "012"},
  "source": "Bron: Kruispuntbank van Ondernemingen"
}

Verifying the signature

Check the X-BD-Signature header: an HMAC-SHA256 of X-BD-Timestamp + . + the raw body, keyed with your secret.

Python
import hashlib, hmac

def is_valid(secret: str, timestamp: str, raw_body: bytes, signature: str) -> bool:
    expected = "sha256=" + hmac.new(
        secret.encode(), timestamp.encode() + b"." + raw_body, hashlib.sha256
    ).hexdigest()
    return hmac.compare_digest(expected, signature)

# Flask example
# ok = is_valid(SECRET, request.headers["X-BD-Timestamp"], request.get_data(),
#               request.headers["X-BD-Signature"])
Node.js
import crypto from "node:crypto";

function isValid(secret, timestamp, rawBody, signature) {
  const expected = "sha256=" + crypto.createHmac("sha256", secret)
    .update(timestamp + "." + rawBody).digest("hex");
  return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(signature));
}

Fetching events without a webhook

No server to receive webhooks? Create a watch without webhook_url and fetch the events. Store next_since_id for the next call.

curl
curl "https://belfirm.p.rapidapi.com/v1/events?since_id=0" \
  -H "X-RapidAPI-Key: YOUR_KEY" -H "X-RapidAPI-Host: belfirm.p.rapidapi.com"

Endpoint overview

MethodPathDescription
GET/v1/enterprise/{nr}Company profile
POST/v1/enterprise/batchUp to 100 profiles at once
GET/v1/enterprise/{nr}/changesChange history
GET/v1/search?q=Search by name
GET/v1/establishment/{nr}Establishment and its company
GET/v1/validate/{nr}Validate a number, active or ceased
GET/v1/codes/{category}Code lists (legal forms, NACE …)
POST/v1/watchWatch a company
POST/v1/watch/bulkWatch up to 1000 companies
GET/v1/watchYour watches
PATCH / DELETE/v1/watch/{id}Update or delete a watch
POST/v1/watch/{id}/testSend a test webhook
GET/v1/eventsFetch events for your watches
GET/v1/accountPlan, limits and usage

Limits and error codes

Every plan has a maximum number of watches and calls per month. Managing watches does not count as a call.

Planwatchescalls / month
Free5100
Starter505,000
Pro50050,000
Business5,000250,000
CodeMeaning
401Missing or invalid key
403Your plan’s watch limit reached
404Not found
409You already watch this company with this URL
410Company has ceased
422Invalid input, e.g. a wrong number
429Too many requests or monthly limit reached

Enterprise numbers

Numbers are accepted in any common format: 0403.170.701, BE0403170701 or 403170701. We check the check digits (modulo 97). Enterprise numbers start with 0 or 1, establishment numbers with 2 to 8.