ParseForge Scrapers

Statistics Denmark Statbank Scraper

parseforge/statbank-denmark-v2-scraper

Developer toolsBusinessEducation

Scrapes records from a specified Statbank table on statbank.dk and returns each row as a flat object with all dimensions and values.

Run this scraper See the API call
Total users
2
Monthly active
1
Total runs
47
Bookmarked
0
Rating
Not rated yet
Last modified
9 days ago

Overview

ParseForge

Statistics Denmark Statbank Scraper

Scrape any table from Statistics Denmark's Statbank, up to a million records per run. Each row comes with all dimensions and values, ready for analysis. No API key or registration. Export to CSV, JSON, Excel, or XML.

Statistics Denmark's official API requires a subscription and complex queries. This reads the public Statbank tables directly, by table ID, and returns every record in a flat, consistent schema. Filter by maximum records to control the size of your dataset.

Who uses it What they scrape Statistics Denmark Statbank for
Economists Pull CPI, GDP, or employment tables for time-series analysis.
Data journalists Get population or housing data to support stories with official numbers.
Market researchers Analyze demographic trends from census or migration tables.
Policy analysts Monitor social indicators like unemployment or education statistics.

What it does

This Actor collects records from a specified Statbank table and returns each one as a flat row with all dimensions and values.

  • πŸ“Š Any Statbank table: provide a table ID like PRIS9 for CPI or FOLK1A for population.
  • πŸ”’ Up to a million records: set maxItems to collect as many rows as you need.
  • πŸ“ Structured output: each record is a flat object with all dimensions and values.
  • ⚑ No API key: the Actor reads the public Statbank interface directly.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with Statistics Denmark Statbank data

πŸ“ˆ Track inflation over time.

An economist runs the Actor with table ID PRIS9 to collect annual CPI data and builds a trend chart for a report.

πŸ—ΊοΈ Map population changes.

A data journalist scrapes FOLK1A to get population by municipality and creates an interactive map for a news article.

🏠 Analyze housing statistics.

A market researcher pulls housing construction data to identify regional growth patterns for a client presentation.

πŸŽ“ Study education outcomes.

A policy analyst collects education attainment tables to evaluate the impact of a new program.

Why choose this scraper

What you get
Official data Directly from Statistics Denmark's public Statbank.
Flexible tables Scrape any table by its ID, from CPI to population.
Large volume Collect up to one million records per run.
Clean schema Every record is a flat object, ready for analysis.

How it compares

No other Store actor targets Statistics Denmark Statbank the same way, so the honest comparison is with the alternatives teams actually weigh.

Statistics Denmark Statbank Scraper Build it in-house By hand
Setup Run it now, zero config Days of engineering None, but hours per pull
When Statistics Denmark Statbank changes Maintained for you You fix it You re-learn the page
Proxies, retries, anti-bot Built in Your problem Browser only
Output Fixed JSON schema, CSV/Excel export Whatever you build Copy-paste
Cost Pay per result Engineering time Analyst hours

Configure the run

Drive the Actor with a Statbank table ID and a maximum record count. The table ID selects which dataset to scrape, and maxItems limits how many rows are returned. The Input tab lists every parameter.

A first run with the defaults:

{
  "tableId": "PRIS9",
  "maxItems": 10
}

A larger pull:

{
  "tableId": "PRIS9",
  "maxItems": 200
}

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the Statistics Denmark Statbank Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to Statistics Denmark Statbank through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/statbank-denmark-v2-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results?

Check that the table ID is correct and that the table has data. Some tables may be empty or require specific parameters.

The run fails with an error.

Verify the table ID. If it is correct, the table might be temporarily unavailable. Try again later.

I only got a few records but expected more.

Increase the maxItems value. The default is 10, but you can set it up to 1,000,000.

The output has strange characters.

The data may include Danish characters. Ensure your downstream tool handles UTF-8 encoding.

FAQ

Question Answer
What is a Statbank table ID? It is the unique identifier for a dataset on Statistics Denmark's Statbank, such as PRIS9 for annual consumer price index or FOLK1A for population. You can find it in the table's URL or metadata.
Do I need an API key? No. The Actor reads the public Statbank interface directly, so no registration or key is required.
How many records can I get? You can set maxItems up to 1,000,000 records per run. The actual number depends on the table size.
What format is the output? Each record is a flat JSON object with all dimensions and values. You can export the dataset to CSV, JSON, Excel, or XML.
Can I scrape multiple tables at once? This Actor scrapes one table per run. To scrape multiple tables, run it multiple times with different table IDs.
Is the data in English or Danish? The data comes as published by Statistics Denmark. Some tables have English labels, others Danish. The Actor returns the raw values.
How do I find the table ID? Go to statbank.dk, find the table you want, and look at the URL or the table information. The ID is usually a short code like PRIS9.
Can I filter by specific dimensions? This Actor returns all rows for the table up to maxItems. For dimension filtering, you would need to process the output or use a different tool.
Is there a rate limit? The Actor is designed to be respectful of the source. If you need many records, consider increasing maxItems gradually.
What if the table ID is wrong? The run will fail with an error. Check the ID on statbank.dk and try again.

Related actors

Browse the full ParseForge collection for more scrapers.

πŸ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Statistics Denmark. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

Input

FieldTypeWhat it doesDefault
tableId string Statbank table id (e.g. PRIS9 for annual CPI, FOLK1A for population). PRIS9
maxItems integer How many statistics records to collect per run. 10

Pricing

Pricing is shown on the Apify listing.

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

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 '{
    "helloWorld": 123
  }'

Examples

Input that runs as-is.

input.json
{
  "helloWorld": 123
}

Reviews

No reviews yet. Be the first.

Issues

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.

Related scrapers

Run Statistics Denmark Statbank Scraper on Apify All scrapers