Note · October 2026

Every Belgian annual account, in one table

Portolan·3 min

Every company in Belgium files its annual accounts with the National Bank, and those accounts are public record. The Bank publishes them through free web services. This pipeline collects all of them, every night, into one database on one machine, and puts a readable page on top. Inside Portolan it goes by "the KBO app".

The database currently holds 1.77 million filings from 646,643 enterprises, filed between September 2023 and September 2026, and the 189 million account lines behind them.

How it works

A nightly job asks the Bank for yesterday's filings and loads them into a local SQLite database. From the raw filings the pipeline builds one row per enterprise, taken from its most recent accounts: twenty-five financial figures such as equity, gross margin, net result and headcount, the NACE activity section, the region, a size class, a filing status and a segment. The filing status says whether a company is current, overdue by one missed filing, or dormant. The segment is rule-based and names the kind of company in plain words: a management company, a small practice, a firm.

On that table sits a read-only web page, served locally. The company view takes a name or an enterprise number and shows the profile, a short summary in plain language, every filed year side by side, and where the company stands against peers with the same activity code and filing model. The example below is Portolan itself.

The company view for Portolan: profile, a summary in plain language, and the balance sheet year by year
The company view: Portolan's profile, the "In short" summary and the balance sheet across four filed years.
Portolan compared with 37,939 peers that file the same model under the same NACE code: quartiles and percentile position for each key figure
Further down the page: the company against 37,939 peers with the same activity code and filing model. The percentile says how many of them sit below it.

The sector view takes a NACE code or a segment, a region and a size, and returns a plain-language summary, quartiles of the key figures, the trend year by year, breakdowns, the largest companies, and the whole list as a CSV file. The whole thing is plain Python with no third-party packages.

The sector view for management consultancy, NACE 70.2: a summary and the key figures in quartiles for 48,675 companies
The sector view for management consultancy, NACE 70.2: 48,675 companies filing currently, with the key figures in quartiles.
The same sector broken down by region, by province and by legal form
The same sector by region, province and legal form. Antwerp alone holds almost a fifth of Belgian management consultancies.

What it is for

  • Sizing a segment: how many accountancy firms in Antwerp have more than one employee, and what they earn.
  • Benchmarking a client against its real peers, not against a survey sample.
  • Building a targeting list for a practice or a bank, filtered by sector, region, size and filing status.
  • Checking a counterparty before a contract, and spotting overdue or dormant filers in a supplier list.

Where it stands

It runs every night and the picture is complete: every company files once a year, so three years of filings covers every active filer. Three limits. Micro and abbreviated accounts do not disclose turnover, so gross margin is the comparable measure of activity. Companies that never file, sole traders for instance, exist only in the register, not here. And the page is local and read-only: an instrument we use, not a service.

Roots