API Portal
Welcome to the Stats NZ API Portal, your gateway to innovation and collaboration. Our developer portal empowers developers with the tools and resources they need to build cutting-edge applications using our Application Programming Interface (API) services.
To be able to access the full features of the API portal, please sign in if you already have an account or sign up for an account if you don’t have one yet.
The API Portal currently only supports service products for Aotearoa Data Explorer.
See Aotearoa Data Explorer user guide for instructions on how to use the Aotearoa Data Explorer tool.
Sign up / Sign In
Subscribe to a service Product
To access our API services, you’ll need to subscribe to one or more of Stats NZ’s service products.
Search for a product below, then select it.
Enter a customised name then click ‘Subscribe’.
Managing your Subscription
Manage your subscriptions by selecting ‘Profile’ from the menu. From here you can display your subscription key(s) or regenerate a new one. You can also cancel a subscription if you no longer require it.
View APIs in your subscriptions
About Subscriptions
Why do I need to sign up to use the service?
To ensure ‘fair use’ of the service we ask people to sign up for an API key. The API key uniquely identifies your subscription. For more information, please go to Digital.govt.nz
Can we share an API key within our organisation?
No, please don’t. Be aware that API throttling is more likely to occur with shared keys. If you have a valid need for a single organisation/application API key please contact us.
How can I monitor my usage of the service?
Basic monitoring of your API key(s) can be viewed in the developer portal via ‘Reports’.
Someone is using my API key without permission.
You can regenerate a new API key in the developer portal via your ‘Profile’. This will render the previous key inactive.
How do I use the API key allocated to me.
When making a request to the service, include a header field labelled ‘Ocp-Apim-Subscription-Key’ and place your API key in the value field.