Pushbuild

Statistics Sweden API: SCB CPI, CPIF, Jobs, GDP & Any Table

Statistics Sweden (SCB) data from the official PxWebApi: CPI, CPIF and CPIF-XE, LFS unemployment, GDP and the monthly GDP indicator, and population presets, any table by id with dimension filters, and table search. Labelled rows with units.

$0.16 per 1,000 values

Get an API key

Example request

POST /statistics-sweden/run
{
  "presets": [
    "cpif",
    "unemployment"
  ],
  "maxItems": 20
}

What a response looks like

POST /statistics-sweden/run{"maxItems": 5, "presets": ["cpif", "unemployment"]}
{"count": 5, "items": [{ "codes": {}, "contentsCode": "000007ZN", "dimensions": {}, "indicator": "CPIF, Index, 2020=100", "period": "2025-10", "periodCode": "2025M10", "preset": "cpif", "series": "CPIF, Index, 2020=100", "source": "https://www.statistikdatabasen.scb.se/pxweb/en/ssd/?tabl… "table": "TAB6590", … ]}
contentsCodeindicatorperiodperiodCodepresetseries
000007ZNCPIF, Index, 2020=1002025-102025M10cpifCPIF, Index, 2020=100
000007ZNCPIF, Index, 2020=1002025-112025M11cpifCPIF, Index, 2020=100
000007ZNCPIF, Index, 2020=1002025-122025M12cpifCPIF, Index, 2020=100
000007ZNCPIF, Index, 2020=1002026-012026M01cpifCPIF, Index, 2020=100
000007ZNCPIF, Index, 2020=1002026-022026M02cpifCPIF, Index, 2020=100

Real rows returned by this API on 2026-11-09 for the request shown.

What it returns

Statistics Sweden (SCB) data from the official PxWebApi v2, as labelled rows with units and ISO periods.

  • Presets: cpi (CPI 2020=100: index, monthly and annual change), cpif (CPIF and CPIF-XE: index, monthly and annual change), unemployment (LFS unemployment and employment rate, seasonally adjusted, 15-74), gdp (quarterly GDP volume change, seasonally adjusted), gdp-indicator (monthly GDP indicator), population (monthly)
  • Any table: give table with optional filters
  • Search: search returns table ids, titles and coverage
fieldmeaning
table, tableTitleSCB table
indicator, contentsCodethe measure and its code
period, periodCodeISO period (2026-09, 2026Q2) and the SCB code
series, dimensions, codesthe measure plus dimension labels, and the codes to reuse in filters
value, unitthe figure and its unit as published
updated, preset, sourcewhen SCB last updated the table, the preset used, the table page

Request

POST https://api.pushbuild.com/statistics-sweden/run with a JSON body. Send your key in the X-API-Key header.

FieldTypeDescription
presetslist of stringsAny of: cpi, cpif, unemployment, gdp, gdp-indicator, population. Default (when no table is given): cpi, cpif, unemployment, gdp.
tablestringAny Statistics Sweden table id, e.g. TAB6596, TAB6387, TAB4553. Find ids with search.
filtersstringDimension -> value codes, e.g. {"Kon": ["1", "2"]}. ["*"] selects all values. Dimensions left out use the table's total where it has one, else their first value; all contents are returned unless ContentsCode is filtered.
lastNintegerHow many of the latest periods to return. Default: 12.
fromPeriodstringPeriod code in the table's format, e.g. 2020M01, 2020K1, 2020. Overrides lastN.
toPeriodstringISO form, e.g. 2026-06 or 2026Q2.
searchstringWords to search table titles. Returns matching tables instead of data.
maxItemsintegerMaximum items to return (1-500). Default: 100.

Example

curl -X POST https://api.pushbuild.com/statistics-sweden/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"presets": ["cpif", "unemployment"], "maxItems": 20}'

Response

{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

Pricing

Pay only for results returned: $0.16 per 1,000 values. No charge for errors or empty searches.

ValuesCost
1,000$0.16
10,000$1.60
100,000$16.00
1,000,000$160.00
6,249 a monthFree ($1 monthly credit)

Use it from Claude, ChatGPT or Cursor

This API is also an MCP server: https://api.pushbuild.com/mcp/statistics-sweden. Add it to any assistant that supports remote MCP servers, with your key in the X-API-Key header. Same prices. Setup for each app.

Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

hello@pushbuild.com

New APIs and data, twice a month

New data APIs, coverage changes and analysis from Pushbuild. No spam; one click to leave.

Tell us about your project

A few questions so we can come back with a written scope. We reply within one business day.

Want these numbers on one screen alongside your own? Dashboards and reporting