API for the Statbank Norway
Ingress
What's new in PxWebApi v2?
What’s new in PxWebApi v2?
This version is built on a new and more robust structure and introduces support for GET requests, more powerful filtering, and access to more metadata than previous versions.
See the PxWebApi v2 User Guide for a technical introduction to using the API with the Statbank.
Main differences compared to PxWebApi v1
- Support for GET requests, allowing the entire query to be defined in the URL. This makes the API easier to integrate into many systems.
- A new and more stable URL structure that is less vulnerable to changes in the table hierarchy.
- More advanced filtering options, including new expressions and masking functions that provide more precise extracts (e.g., using ? and *).
- Better access to metadata for more advanced automated extraction.
Source code and technical documentation are available on the PxWebApi GitHub page.
What do I need to do if I’m already using PxWebApi v1?
PxWebApi v1 will remain available during a transition period, but we recommend redefining your queries in PxWebApi v2. There, you can create queries that are more robust to changes in the tables by requesting all (*) codes within a given value set or a specified grouping. Feel free to use StatBank as a tool to help you build your queries.
Receive updates about the API
Would you like to receive emails about news and changes related to the API? Send an email to statistikkbanken@ssb.no.