Statistics Sweden (SCB) · Statistics are corrected continually and corrections are only communicated in the Statistical Database (terms page, read live 2026-07-31). Annual population tables update February-March (BefUtvKon1749 updated 2026-02-24); the CPI updates monthly mid-month (KPI2020M updated 2026-07-15). History/CKM table splits mean MedelfolkHandelse and BefolkningR1860N end at 2024, one year behind their uncurated CKM siblings. Built on PxWebApi v1; SCB launched PxWebApi 2 in October 2025 and states it will replace v1 (no shutdown date published as of 2026-07-31).
License: public-domain · official terms. Attribution text and per-series license flags ride in every API envelope.
Quickstart
Latest observations, with provenance and citation on every value:
curl "https://starwell.dev/api/starwell/v1/sources/scb-pxweb/series/MedelfolkHandelse:BE0101A6:00/observations?latest=12"
A computed, cited answer from this source:
curl -X POST "https://starwell.dev/api/starwell/v1/answer" \
-H "Authorization: Bearer dlk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"question": "What is the latest Mean population?", "source": "scb-pxweb"}'
Data reads need no key; answers do. Keys are free at /account; a keyless sample lives at GET /api/starwell/v1/answer/demo.
As MCP tools in Claude, Cursor, or any agent framework:
claude mcp add --transport http starwell https://starwell.dev/api/starwell/mcp
Data series
| Series | Indicator | Geography | Unit | Freq | Coverage |
|---|---|---|---|---|---|
| KPIFastAmed:000000KL | Consumer Price Index (CPI), fixed annual average, 1980=100 | Sweden | index, 1980=100 | annual | 1980-01-01 .. 2025-01-01 |
| KPI2020M:00000804 | Consumer Price Index (CPI), annual change | Sweden | percent | monthly | 1980-01-01 .. 2026-06-01 |
| SpadbarnsdodlHVD:0000071K:00:5+6 | Infant mortality rate | Sweden | deaths under 1 year per 1,000 live births | annual | 2000-01-01 .. 2025-01-01 |
| BefUtvKon1749:000000LV:1+2 | Population (31 December) | Sweden | persons | annual | 1749-01-01 .. 2025-01-01 |
| FruktsamhetSum:000001J4:00:2 | Total fertility rate, women | Sweden | children per woman | annual | 2000-01-01 .. 2025-01-01 |
| MedelfolkHandelse:BE0101A6:00 | Mean population | Sweden | persons | annual | 2006-01-01 .. 2024-01-01 |
| BefUtvKon1749:0000001F:1+2 | Deaths | Sweden | persons | annual | 1749-01-01 .. 2025-01-01 |
| AKURLBefAr:000007V1:ALÖSP:O_DATA:1+2:tot15-74 | LFS unemployment rate, ages 15-74 | Sweden | percent | annual | 2001-01-01 .. 2025-01-01 |
| KPI2020M:00000807 | Consumer Price Index (CPI), shadow index numbers, 2020=100 | Sweden | index, 2020=100 | monthly | 1980-01-01 .. 2026-06-01 |
| BefolkningR1860N:0000053A:tot | Population (31 December) | Sweden | persons | annual | 1860-01-01 .. 2024-01-01 |
| FodelstalHVD:0000070A:00 | Crude birth rate (live births per 1,000 mean population) | Sweden | live births per 1,000 mean population | annual | 2010-01-01 .. 2025-01-01 |
| Dodstal:BE0101CV:SAMA | Mortality rate, all ages | Sweden | deaths per 1,000 mean population | annual | 2000-01-01 .. 2025-01-01 |
| BefUtvKon1749:0000001H:1+2 | Live births | Sweden | persons | annual | 1749-01-01 .. 2025-01-01 |