Iceland Statistics Table Query
iceland-statistics.series.table_queryRun a statistical query against an Iceland statistics table — specify dimension filters to slice data by year, unit, and other indicators. Returns JSON-stat2 format with labeled dimensions and numeric values. Always call iceland-statistics.table_metadata first to discover valid dimension codes and value codes (often Icelandic words, e.g. 'Ár' for year). Example: population 1 January (Eining='0'), 3 most recent years (Ár filter='top' values=['3']). Data: px.hagstofa.is, no auth required, CC BY 4.0 (Statistics Iceland).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Array of dimension filters. Each filter selects which values to include for one dimension. Example: [{code:'Ár',selection:{filter:'top',values:['3']}}, {code:'Eining',selection:{filter:'item',values:['0']}}]. Response is JSON-stat2 format with dimension labels and numeric values array. | |
| table_path | Yes | Full path to the leaf table to query — same as iceland-statistics.table_metadata table_path. Example: 'Ibuar/mannfjoldi/1_yfirlit/yfirlit_mannfjolda/MAN00000.px'. |
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. |