ParseForge Scrapers

Statistics Denmark StatBank Scraper: Official Tables

parseforge/statbank-denmark-v2-scraper

BusinessEducationAutomation

Official Statistics Denmark (Danmarks Statistik) StatBank tables as flat rows: population, prices, trade, labour and 2,000+ more. Official API, CC BY 4.0. Export CSV, Excel, JSON.

Run this scraper See the API call
Total runs
11
Bookmarked
0
Last modified
5 days ago

This scraper was last updated on .

What does the Statistics Denmark StatBank Scraper: Official Tables return?

ParseForge

Statistics Denmark StatBank Scraper: Official Tables as Flat Rows

Turn any of the 2,300+ official Statistics Denmark (Danmarks Statistik) StatBank tables into clean rows: one value per row with its period, measure, dimensions and unit. It reads StatBank's official public API, so the numbers are the ones Denmark publishes: population, consumer prices, labour market, trade, housing, education and more. No login, no API key. Export to CSV, JSON, Excel or XML.

Who uses it What for
Analysts and economists Time series of prices, wages, unemployment or GDP without learning the API
Journalists and researchers Quick pulls of official Danish figures with the table link for citation
Data and BI teams Load official statistics into a warehouse or dashboard on a schedule
Market researchers Population, income and housing context for Danish market sizing

What it does

  • ๐Ÿ”Ž Find tables: set "What to get" to Find tables and a keyword (for example unemployment) to list matching table ids, titles, units, periods and update dates.
  • ๐Ÿ“Š Get data: list one or many table ids (for example PRIS9, FOLK1A) and get the latest periods, or the full history with Latest periods = 0.
  • ๐Ÿงฉ Breakdowns on demand: by default optional dimensions (region, sex, age) come as totals. Turn on "Include all breakdowns" for every value.
  • ๐Ÿ“ Size guard: very large selections are shortened to the most recent periods automatically, and the run tells you.

What a row looks like

Field Meaning
tableId, tableTitle, tableUrl The table and its StatBank link
measure What is measured (for example Population at the first day of the quarter)
period, periodCode Year, quarter or month, as text and as StatBank's code
dimensions Other dimensions with readable labels (for example {"sex":"Women"})
value, unit, decimals The number and its unit
tableUpdated, source, scrapedAt Last update of the table, source reference, run time
{
  "tableId": "FOLK1A",
  "measure": "Population at the first day of the quarter",
  "period": "2026Q1",
  "periodCode": "2026K1",
  "dimensions": { "sex": "Women" },
  "value": 3029291,
  "unit": "Number",
  "source": "Statistics Denmark, StatBank.dk/FOLK1A (CC BY 4.0)"
}

Input

Field Description
mode data (default) or tables (catalog search)
tableIds Table ids, for example ["PRIS9","FOLK1A"]
searchText Keyword for catalog mode
latestPeriods Most recent periods per table (default 12, 0 = full history)
breakdowns Include every value of every dimension (default off)
maxItems Maximum rows. Free users: 10 per run. Paid users: up to 1,000,000.

Example: {"tableIds":["PRIS9"],"latestPeriods":5,"maxItems":100}

Behavior you can rely on

  • An unknown table id, an empty selection or a search with no match ends as Succeeded with 0 items and a clear status message. Nothing is charged for results that are not delivered.
  • Only a persistent StatBank outage (repeated HTTP 429 or 5xx) ends the run as Failed.
  • The Actor uses the official API with a clear User-Agent, bounded retries and short pauses.

About the data

Data comes from Statistics Denmark's StatBank API. Statistics Denmark states that all statistical data on Statistikbanken.dk can be used free of charge for commercial and non-commercial purposes as long as the source is referenced, which corresponds to the Creative Commons CC BY 4.0 licence (https://www.dst.dk/en/Statistik/hjaelp-til-statistikbanken/api). Every row carries a source field you can use for the reference. This Actor is not affiliated with Statistics Denmark.

FAQ

Do I need an API key? No. How do I find a table id? Use "Find tables" mode, or browse https://www.statbank.dk. Are the numbers live? Yes, StatBank always returns the latest published data.

If this Actor helped you, a short review on the Actor page helps others find it.

What input does the Statistics Denmark StatBank Scraper: Official Tables accept?

FieldTypeWhat it doesDefault
mode string (2 options) Table data returns the numbers of the tables you list. Find tables searches the list of about 2,300 StatBank tables by keyword so you can discover table ids. data
tableIds array StatBank table ids, for example PRIS9 (consumer prices, annual change), FOLK1A (population by quarter) or BEV22 (births and deaths). Used when 'What to get' is Table data. ["PRIS9"]
searchText string Keyword to find in table ids and titles, for example 'unemployment' or 'house prices'. Empty lists tables in catalog order. Used when 'What to get' is Find tables. unemployment
latestPeriods integer How many of the most recent periods (years, quarters or months) to return per table. 0 returns the full history, shortened automatically if the table is very large. 12
breakdowns boolean Off: optional dimensions such as region, sex or age are returned as totals. On: every value of every dimension is returned (many more rows). false
maxItems integer Free users: limited to 10 items (preview). Paid users: optional, max 1,000,000. 10

How much does the Statistics Denmark StatBank Scraper: Official Tables cost?

from $0.20 per 1,000 results

Charged forWhat it isPrice each
Statistic row One official statistical value with period, dimensions and unit, or one table in catalog mode. Empty runs and errors are free. $0.0002 to $0.0005
Actor Start Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). $0.003

Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.

How do I call the Statistics Denmark StatBank Scraper: Official Tables API?

One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.

POST ยท run and get results
curl -X POST "https://api.apify.com/v2/acts/parseforge~statbank-denmark-v2-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "data",
    "tableIds": [
      "PRIS9"
    ],
    "searchText": "unemployment",
    "latestPeriods": 12,
    "breakdowns": false
  }'

What example inputs can I use?

Use these inputs to see how a run is configured.

input.json
{
  "mode": "data",
  "tableIds": [
    "PRIS9"
  ],
  "searchText": "unemployment",
  "latestPeriods": 12,
  "breakdowns": false
}

What do users say about the Statistics Denmark StatBank Scraper: Official Tables?

No reviews yet. Be the first.

How do I report an issue with the Statistics Denmark StatBank Scraper: Official Tables?

We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.

Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.

What related scrapers can I use?

Run Statistics Denmark StatBank Scraper: Official Tables on Apify All scrapers