Data connectors
Statistics Sweden (SCB)
Statistics Sweden (SCB) publishes thousands of statistical tables through its public PxWeb API. CsvExplorer can query any of these tables directly — no account or API key needed.
About the PxWeb API v2
SCB uses the open-source PxWeb API v2 to expose its statistical database. The API returns data in the JSON-stat2 format, which CsvExplorer parses automatically into a flat table of rows and columns. The same API is used by Statistics Finland, Statistics Norway, and several other national statistical offices.
1 — Find a table in the SCB database
Open the SCB statistical database
Go to the SCB statistical database explorer:
https://www.statistikdatabasen.scb.se/You can browse by subject area or use the search box to find tables by keyword (in Swedish or English).
sv for Swedish, en for English.Open a table and select variables
Click on a table name to open it. You will see a variable selection screen where you can choose:
- Which categories to include for each dimension (e.g. specific regions or age groups).
- Which time periods to include.
Select the variables you want, then click Visa tabell (Show table) or Show table.
2 — Get the JSON-stat2 API URL
Open the API query view
Once the table is shown, look for a View API query link or button (the exact label may vary). This opens a panel showing the underlying API call.
Alternatively, you can construct the URL manually. The SCB PxWeb API v2 data endpoint follows this pattern:
https://api.scb.se/OV0104/v2/doris/en/ssd/{TABLE_PATH}/data?outputFormat=json-stat2For example, to fetch the population by region and year table:
https://api.scb.se/OV0104/v2/doris/en/ssd/BE/BE0101/BE0101A/BefolkningNy/data?outputFormat=json-stat2Verify the URL returns JSON-stat2
Open the URL in your browser. You should see a JSON response that starts with something like:
{"version":"2.0","class":"dataset","id":[...],"size":[...],"dimension":{...},"value":[...]}Copy the URL — you will paste it into CsvExplorer in the next step.
outputFormat=json-stat2. Other output formats are not supported by CsvExplorer.3 — Load the data in CsvExplorer
Add a PxWebApi v2 source
Open CsvExplorer and go to the Explorer.
- In the Source panel on the left, click Add source.
- Select PxWebApi v2 as the source type.
- Paste the JSON-stat2 URL you copied in step 4 into the URL field.
- Click Fetch URL.
CsvExplorer will fetch and parse the response. Each dimension in the dataset becomes a string column, and the measured value becomes a numeric Value column.
Build and save a dashboard
- Use the Charts panel to add visualisations.
- Save your work with the Save dashboard button. Enable Public dashboard to share a live view with anyone — no sign-in required for viewers.
Other PxWeb API providers
The PxWebApi v2 source type works with any statistical office that uses the PxWeb platform and exposes the outputFormat=json-stat2 endpoint. Examples include:
Statistics Finland
https://statfin.stat.fi/PxWeb/api/v1/en/
Statistics Norway (SSB)
https://data.ssb.no/api/v0/en/
Statistics Denmark
https://api.statbank.dk/v1/
Statistics Iceland
https://px.hagstofa.is/pxen/api/v1/en/
Ready to explore statistics from SCB?
Open Explorer →