API for the Statistical database (PxWebApi)
SCB has developed a new API that connects to the Statistical Database, PxWebApi 2, which was launched October 2025. It will replace PxWebApi 1.
PxWebApi 2
PxWebApi 2 was released in the Statistical database October 2025. With PxWebApi 2 data can be collected from all tables in the Statistical database with GET.
You can extract entire or parts of tables with a limit of 150 000 data cells and make a maximum number of calls of 30 per 10 seconds. The limit is per IP address and can therefore apply to multiple colleagues at the same workplace.
The main differences compared to PxWebApi 1.0
- The structure of the URL:s has been changed so that they are more stable and not affected by structural changes in the database and at the same time comply with a RESTful design.
- The API will expose more of the metadata we have access to.
- The user experience for retrieving data will be improved.
- More advanced expressions for filtering out the information you want to retrieve via the API will be offered.
Read more about the different API:s