Statistics Norway (SSB) key tables
Statistics Norway statistics tables through its open data API: a fixed list of key tables (population, consumer_prices, gdp, labour_force, unemployed, population_area, housing_coop_prices, main_indicators, external_trade) with table structure lookup and bounded data queries.
No API key needed to call
- Source
- Statistics Norway open data API
- Licence and terms
- CC BY 4.0
- Coverage
- Norway
- Refresh cadence
- Answers are shared and cached for 21600 seconds.
Questions you can ask
- What variables does the Statistics Norway consumer_prices table have?
- What is the latest Norwegian consumer price index?
Operations
Statistics Norway table structure
Answers: which variables, codes and sample values does a Statistics Norway statistics table have, and which can be left out? Call this before ssb_norway_table_data.
| table | required, string, population | consumer_prices | gdp | labour_force | unemployed | population_area | housing_coop_prices | main_indicators | external_trade, Table: population (population by region, sex, age, yearly); consumer_prices (consumer price index by group, monthly); gdp (final expenditure and GDP, yearly); labour_force (labour force, employment, unemployment, monthly); unemployed (unemp... |
|---|
Example: What variables does the Statistics Norway consumer_prices table have?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"ssb_norway","operation":"ssb_norway_table_info","params":{"table":"consumer_prices"}}}Over HTTP
curl '/v1/connectors/ssb_norway/ssb_norway_table_info?table=consumer_prices'Statistics Norway table data
Answers: What is the latest Norwegian consumer price index? Returns the newest values first with the codes that vary.
| table | required, string, population | consumer_prices | gdp | labour_force | unemployed | population_area | housing_coop_prices | main_indicators | external_trade, Table: population (population by region, sex, age, yearly); consumer_prices (consumer price index by group, monthly); gdp (final expenditure and GDP, yearly); labour_force (labour force, employment, unemployment, monthly); unemployed (unemp... |
|---|---|
| selections | required, string, Selections as Code=value pairs separated by semicolons; several values for one variable are comma separated (up to 20), for example Konsumgrp=TOTAL;ContentsCode=KpiIndMnd;Tid=top:3. Use top:N as the only value of the time variable for its latest N periods. Variable codes and values come from the table_info operation. Variables that can be omitted are summed to their total when... |
Example: What is the latest Norwegian consumer price index?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"ssb_norway","operation":"ssb_norway_table_data","params":{"table":"consumer_prices","selections":"Konsumgrp=TOTAL;ContentsCode=KpiIndMnd;Tid=top:3"}}}Over HTTP
curl '/v1/connectors/ssb_norway/ssb_norway_table_data?table=consumer_prices&selections=Konsumgrp%3DTOTAL%3BContentsCode%3DKpiIndMnd%3BTid%3Dtop%3A3'Source notice
Source: Statistics Norway. Terms: "Like the rest of ssb.no, the APIs use the license CC BY 4.0." Values are trimmed and reordered here; the publisher does not endorse this presentation.