# 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](https://www.ssb.no/en/omssb/tjenester-og-verktoy/api)
- Licence and terms: [CC BY 4.0](https://www.ssb.no/en/omssb/tjenester-og-verktoy/api)
- Coverage: Norway
- Answers are shared and cached for 21600 seconds.

## Questions you can ask

- What variables does the Statistics Norway consumer\_prices table have? (operation `ssb_norway_table_info`)
- What is the latest Norwegian consumer price index? (operation `ssb_norway_table_data`)

## 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.

## Missing something?

Tell us what data, endpoint or feature you wish we had. It is free and needs no signup: call the MCP tool request_capability, or POST a short description to https://agentnative.dennery.ai/v1/capabilities/request.
