Note · October 2026
Every Belgian annual account, in one table
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 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.
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
- National Bank of Belgium
- Official business registers, among them the Belgian enterprise register and the Central Balance Sheet Office
- Financial statement
- NACE, the European classification of economic activities
- SQLite