# Statistics Sweden (SCB) key tables

Statistics Sweden statistics tables through its open data API: a fixed list of key tables \(population, cpi, gdp\_quarterly, labour\_force\_monthly, house\_prices\_county, births\) with table structure lookup and bounded data queries.

- No API key needed to call
- Source: [Statistics Sweden open data API](https://www.scb.se/en/services/open-data-api/)
- Licence and terms: [CC0 1.0](https://www.scb.se/en/services/open-data-api/)
- Coverage: Sweden
- Answers are shared and cached for 21600 seconds.

## Questions you can ask

- What variables does the Statistics Sweden population table have? (operation `scb_sweden_table_info`)
- What was the population of Sweden in the latest years? (operation `scb_sweden_table_data`)

## Operations

### Statistics Sweden table structure

Answers: which variables, codes and sample values does a Statistics Sweden statistics table have, and which can be left out? Call this before scb\_sweden\_table\_data.

- `table`: required, string, population \| cpi \| gdp\_quarterly \| labour\_force\_monthly \| house\_prices\_county \| births, Table: population \(population by region, marital status, age, sex, yearly\); cpi \(consumer price index 2020=100, monthly\); gdp\_quarterly \(GDP by expenditure, quarterly\); labour\_force\_monthly \(labour force survey, monthly\); house\_prices\_county \(house price index by county, yearly\); births \(bi...

Example: What variables does the Statistics Sweden population table have?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"scb_sweden","operation":"scb_sweden_table_info","params":{"table":"population"}}}
```

Over HTTP:

```
curl '/v1/connectors/scb_sweden/scb_sweden_table_info?table=population'
```

### Statistics Sweden table data

Answers: What was the population of Sweden in the latest years? Returns the newest values first with the codes that vary.

- `table`: required, string, population \| cpi \| gdp\_quarterly \| labour\_force\_monthly \| house\_prices\_county \| births, Table: population \(population by region, marital status, age, sex, yearly\); cpi \(consumer price index 2020=100, monthly\); gdp\_quarterly \(GDP by expenditure, quarterly\); labour\_force\_monthly \(labour force survey, monthly\); house\_prices\_county \(house price index by county, yearly\); births \(bi...
- `selections`: required, string, Selections as Code=value pairs separated by semicolons; several values for one variable are comma separated \(up to 20\), for example Region=00;ContentsCode=BE0101N1;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 left out.

Example: What was the population of Sweden in the latest years?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"scb_sweden","operation":"scb_sweden_table_data","params":{"table":"population","selections":"Region=00;ContentsCode=BE0101N1;Tid=top:3"}}}
```

Over HTTP:

```
curl '/v1/connectors/scb_sweden/scb_sweden_table_data?table=population&selections=Region%3D00%3BContentsCode%3DBE0101N1%3BTid%3Dtop%3A3'
```

## Source notice

Source: Statistics Sweden. Terms: "We use the licence CC0 for this data, which means that you may use and disseminate or provide such data without any requirement to state the source." The agency recommends "Source: Statistics Sweden". 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.
