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
| field | meaning |. |---|---|. | `table`, `tableTitle` | SCB table |. | `indicator`, `contentsCode` | the measure and its code |. | `period`, `periodCode` | ISO period (`2026-09`, `2026Q2`) and the SCB code |. | `series`, `dimensions`, `codes` | the measure plus dimension labels, and the codes to reuse in `filters` |. | `value`, `unit` | the figure and its unit as published |. | `updated`, `preset`, `source` | when 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.
| Field | Type | Description |
|---|---|---|
presets | list of strings | Any of: cpi, cpif, unemployment, gdp, gdp-indicator, population. Default (when no table is given): cpi, cpif, unemployment, gdp. |
table | string | Any Statistics Sweden table id, e.g. TAB6596, TAB6387, TAB4553. Find ids with search. |
filters | string | Dimension -> 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. |
lastN | integer | How many of the latest periods to return. Default: 12. |
fromPeriod | string | Period code in the table's format, e.g. 2020M01, 2020K1, 2020. Overrides lastN. |
toPeriod | string | ISO form, e.g. 2026-06 or 2026Q2. |
search | string | Words to search table titles. Returns matching tables instead of data. |
maxItems | integer | Maximum 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.
Related APIs
Australian Bureau of Statistics API: CPI, Jobs, GDP, Any Data API
Australian Bureau of Statistics data from the official ABS Data API: monthly CPI and trimmed mean, unemployment by state, GDP, wage price index and household spending presets, any ABS dataflow by SDMX key, and dataflow search.
Bank of Canada API: Policy Rate, CORRA, Bonds, CPI & CAD FX API
Bank of Canada statistics from its official Valet API: policy rate, CORRA, prime, T-bills, benchmark bond yields, mortgage and GIC rates, CPI and core CPI, commodity prices and daily CAD exchange rates.
Bank of England API: Bank Rate, SONIA, Gilts & Mortgages API
Bank of England statistics from its official database: Bank Rate, SONIA, gilt yields, implied inflation, mortgage rates and approvals, M4 money, lending and sterling FX.
Bank of Israel API: BOI Rate, SHIR & Shekel Exchange Rates API
Bank of Israel statistics from its official SDMX API: the BOI interest rate, SHIR overnight rate and standing facility rates, daily representative shekel exchange rates (USD, EUR, GBP, JPY, CHF, CAD, AUD), or any series of any BOI dataflow..
Bank of Japan API: Call Rate, USD/JPY, Money Stock & Tankan API
Bank of Japan statistics from its official Time-Series Data Search API: overnight call rate, basic loan rate, USD/JPY, monetary base, M2, producer prices and Tankan business conditions presets, any series by database and code, and series search..
BIS Statistics API: Global Policy Rates, House Prices & Credit API
Bank for International Settlements data for 40-60 economies: central bank policy rates (daily or monthly), real residential property prices, credit-to-GDP gaps, effective exchange rates, USD exchange rates and CPI inflation, or any BIS dataflow by SDMX key..
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