# Statistics Denmark StatBank API

Category: [Statistics](https://free-web-services.com/web-services/open-data/statistics/)  
Page: https://free-web-services.com/web-services/open-data/statistics/statistics-denmark-statbank-api.html  
Documentation: https://www.dst.dk/en/Statistik/hjaelp-til-statistikbanken/api

The StatBank API gives the published tables of Statistics Denmark, on population, the economy, work, prices and more, for example to chart the Danish population by quarter. List tables, read a table's variables and fetch data with POST (recommended) or GET requests, as CSV, JSON-stat and other formats; add lang=en for English. Free, no key needed, for commercial and non-commercial use under CC BY 4.0 with a source reference. Non-streaming downloads are limited to 1,000,000 cells.

- API key: Not needed
- Pricing: Free, no key needed, for commercial and non-commercial use under CC BY 4.0 with a source reference.
- Commercial use: Allowed on the free plan
- From the browser: Yes (CORS)
- Formats: JSON, XML, CSV
- Interface: REST, HTTP-GET
- Provider: dst.dk

Example request:

```sh
curl 'https://api.statbank.dk/v1/data/FOLK1A/CSV?lang=en&Tid=2026K1'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

