SSB Norway Table Metadata
ssbnorway.data.metadataGet the full metadata for a specific SSB table — dimension codes, valid value codes, and human-readable labels needed to construct a data query. Returns table title, last-updated timestamp, and an array of variables (dimensions) each with its code (e.g. "Region"), readable name, list of valid value codes, and corresponding labels. This is the required second step before querying data: call ssbnorway.data.search to find a table ID, then ssbnorway.data.metadata to learn the dimension codes and valid values, then ssbnorway.data.query to retrieve actual data. Common table IDs: "07459" (population by region/sex/age/year), "09842" (GDP per capita), "05111" (labour force), "03013" (CPI).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_id | Yes | SSB table ID (numeric string). Obtain from ssbnorway.search results. Common tables: "07459" (population by region/sex/age/year), "09842" (GDP per capita by year), "05111" (labour force status by sex/age/year), "03013" (CPI / consumer price index by year), "08655" (exports/imports by product/country/year). Returns dimension codes and valid values required for ssbnorway.query. |
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. |