SCB Statistikdatabasen
SCB (Statistiska centralbyrån) is Sweden's official statistics bureau. Access to the entire statistics database via PxWebApi v2 — more than 1,500 tables with population data, employment, GDP, foreign trade, house prices and more. Max 150,000 data cells per call. Updated continuously. Issue #502.
—
Data volume
Daily
Updates
3
MCP tools
{
"data": "..."
}MCP integration
API endpoints
/tablesSøk og list tabeller fra Statistikdatabasen
- lang optional
- Språk.
lang=sv - page optional
- Sidenummer (1-indeksert).
page=1 - pageSize optional
- Treff per side (maks 1000).
pageSize=100 - query optional
- Fritekst-filter på tabell-tittel/kode.
query=befolkning - pastDays optional
- Kun tabeller oppdatert siste N dager.
pastDays=30
Show curl example
# GET https://data.ketl.no/api/connectors/scb/tables
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/scb/tables"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/tables/{id}/metadataDimensjoner og variabler for én tabell
Show curl example
# GET https://data.ketl.no/api/connectors/scb/tables/{id}/metadata
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/scb/tables/{id}/metadata"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/tables/{id}/dataData-uttrekk (json-stat2) fra én tabell
Show curl example
# POST https://data.ketl.no/api/connectors/scb/tables/{id}/data
curl -X POST \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/scb/tables/{id}/data"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.