About this API
StatBank (Statistikbanken) is Denmark's public database of official statistics, published by Statistics Denmark. The API exposes its full contents programmatically: methods return the subject tree, the list of tables, the metadata of a single table (variables, dimensions, units, update dates) and the numeric data itself, selected by dimension — for example area, sex, age or period. Responses are available in many formats — including JSON, JSONSTAT, CSV, PX, XML and SDMX — so you can retrieve both metadata and ready-made time series. The standard read methods need no key or registration (a key is required only for the CATALOGUE method), and the server returns an `*` CORS header, so the API can be called directly from a browser. The data covers demographics, the economy, the labour market and social statistics, and is licensed under Creative Commons BY 4.0 (source attribution required).
Frequently asked questions
Do I need an API key?
No. The standard read methods (tables, tableinfo, data and others) are fully open — they need neither an API key nor registration. A key is required only for the CATALOGUE method used for bulk downloads of the whole catalogue's metadata.
What data does this API return?
Denmark's official statistics from StatBank: the subject tree, the list of tables, each table's metadata (variables, dimensions, units, update dates) and numeric values selected by dimension — for example population by area, sex, age and quarter. The data spans demographics, the economy, the labour market and social statistics.
Can this API be called directly from a browser?
Yes. The API returns an `Access-Control-Allow-Origin: *` header, so it works directly from front-end code in the browser — which is why this entry has a live "Try it" button. Read calls are plain HTTPS GET requests.
Who runs this API?
Danmarks Statistik (Statistics Denmark), Denmark's national statistical office. This public institution runs the StatBank database and the API itself at api.statbank.dk.