Statistics Denmark Table Data
statistics-denmark.data.queryFetch statistical data from a specific Statistics Denmark table using dimension filters. Returns a JSON-stat dataset with dimension labels, a flat value array, and metadata (updated timestamp, source). Use statistics-denmark.data.tables to find the table ID, statistics-denmark.data.table_info to get valid dimension codes and values, then pass them here as a variables array — one entry per dimension you want to filter or break out by (e.g. region, sex, age, time). Any dimension left out is auto-aggregated to its total by StatBank. Use values:["*"] to include all values for a dimension (e.g. the full time series). Covers population, labour market, economy, social conditions, education, business, transport, culture, and environment statistics for Denmark.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_id | Yes | StatBank table ID to query — from statistics-denmark.tables or statistics-denmark.table_info. Example: "FOLK1A" for quarterly population. | |
| variables | Yes | Array of dimension filters. Any dimension left out is auto-eliminated (aggregated to its default/total value) by StatBank — include a dimension only when you need to filter or break out by it. Example: [{code:"OMRÅDE",values:["000"]},{code:"KØN",values:["TOT"]},{code:"ALDER",values:["IALT"]},{code:"CIVILSTAND",values:["TOT"]},{code:"Tid",values:["*"]}]. Response is a JSON-stat dataset with dimension labels and a flat value array. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |