Statistics Sweden (SCB)

PxWeb API — Statistics Sweden (SCB)

REST API of Statistics Sweden (SCB) for the Statistikdatabasen database (PxWeb) — Sweden's full official statistics: demographics, economy, labour market, prices, environment. A GET on a table path returns its structure, a POST returns the data, and the result comes back as JSON-stat. No key required, open CORS.

Official source Sweden no key PX-JSON (JSON-stat)
GET api.scb.se/OV0104/v1/doris/{lang}/ssd/{tablePath}

Verified 2026-09

About this API

Statistiska centralbyrån (SCB), Statistics Sweden, is the Swedish equivalent of Poland's GUS. Its Statistikdatabasen database exposes thousands of official statistics tables — demographics, economy, labour market, prices, environment — through the public PxWeb API. A GET on a table path returns its metadata (the available variables and breakdown levels), while the actual figures are fetched with a POST carrying the chosen filters; the response can be JSON-stat, PX, CSV or XLSX. No registration and no key, released under CC0 (the only limit is 10 calls per 10 seconds per IP address).

Frequently asked questions

Do I need an API key?

No. The API is fully public and free — no registration and no key — and the data is released under CC0 (public domain). The only limit is 10 calls per 10 seconds per IP address.

What data does this API return?

Thousands of tables of Sweden's official statistics — demographics, economy, labour market, prices, environment — grouped by topic. A GET on a table path returns its structure (variables and breakdown levels), and a POST with the chosen filters returns the actual figures as JSON-stat.

Can this API be called directly from a browser?

Yes — the API returns a CORS header allowing calls from any domain, so it works directly from frontend code (hence the live "Try it" button above). The button shows the metadata GET for a table; fetching the data itself requires a POST request.

Who runs this API?

Statistiska centralbyrån (SCB), Statistics Sweden. Full documentation is available at scb.se.