Statistics Denmark API (Statbank) - Search and Fetch Tables avatar

Statistics Denmark API (Statbank) - Search and Fetch Tables

Pricing

from $3.00 / 1,000 table describeds

Go to Apify Store
Statistics Denmark API (Statbank) - Search and Fetch Tables

Statistics Denmark API (Statbank) - Search and Fetch Tables

Search Statistics Denmark (Statbank) tables by keyword, see their variables, and fetch rows as JSON. Official data, CC BY 4.0.

Pricing

from $3.00 / 1,000 table describeds

Rating

0.0

(0)

Developer

Data and Beyond

Data and Beyond

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 minutes ago

Last modified

Share

Search Statistics Denmark (Danmarks Statistik) tables by keyword in English or Danish, see their variables and fetch rows as JSON.

Example input

{
"mode": "search",
"search": "population municipality"
}

How it works

  • Danish search words (e.g. befolkning, fødsler) are detected and searched in Danish table titles too. You can also set language: da.
  • mode: search returns matching tables with their variables, sample codes and a howToFetch input.
  • mode: data with a tableId (e.g. FOLK1A) returns rows. Without filters you get the first value of each variable and the latest period. Use * to get all values of a variable.

Output

One JSON record per result with: type, tableId, title, unit, updated, firstPeriod, latestPeriod, variables, howToFetch, source.

Limitations

  • It is a thin wrapper. If you already know the Statbank API, you may not need it.
  • Search is simple keyword matching on table titles and variable names.
  • On Apify's free plan, start one run at a time. Several runs started at once can be refused with HTTP 402 (memory limit for concurrent runs).

Invalid input

Text fields or list items that contain only spaces stop the run with a clear error before any external API is called. Nothing is charged.

No results

A query with no hits gives one row: {"query": ..., "status": "NOT_FOUND", "message": "No results for ..."}. It is not charged.

When something goes wrong

If the upstream API is down, times out or rejects the request, the run fails with a status message that says which API failed and why. You won't get an empty "success" that looks like "no results".

Price

$0.003 per table described, $0.002 per started 100 data rows. No start fee. Apify's free plan includes a small monthly credit, so testing costs next to nothing.

Using it from an MCP client

Apify's MCP server exposes it as a tool. You need an Apify account and API token (the free plan is enough to try it):

{ "mcpServers": { "apify": { "url": "https://mcp.apify.com/?tools=dataandbeyond/dk-statistics", "headers": { "Authorization": "Bearer <APIFY_TOKEN>" } } } }

Or call it over HTTP and get the rows back directly:

curl -X POST "https://api.apify.com/v2/acts/dataandbeyond~dk-statistics/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' -d '{"mode": "search", "search": "population municipality"}'

Source and license

Statistics Denmark (Danmarks Statistik), statistikbanken.dk, CC BY 4.0. Each record has a source field. Follow the source license if you redistribute the data.

Contact

Mark, Data and Beyond ApS (Denmark). Open an issue on the Actor page if something is wrong or missing.