Skip to content
NZ Electricity Network Intelligence

Data API

Read the figures on this site from your own software, for Enterprise subscribers.

Getting started

Create a key in the API keys section of your account page. The full key is shown once, so store it somewhere safe. Send it with every request in the Authorization header.

curl -H "Authorization: Bearer YOUR_KEY" \
  "https://nzeni.nz/v1/league?metric=saidi_total"

All endpoints are read-only and answer GET requests with JSON. Keys belong to an account, and anyone with the key can use that account’s allowance, so revoke any key you think has leaked.

Endpoints

API endpoints
PathParametersReturns
/v1/edbsNoneThe 29 lines companies, each with the slug used by the other endpoints.
/v1/metricsNoneThe metric catalogue: key, label, unit, which direction is better, formula and source schedules.
/v1/seriesedb, metricOne network’s yearly values for a metric, with its rank out of all networks in each year.
/v1/leaguemetric, optional yearEvery network ranked for a metric in one year. Without a year, the latest year with data.
/v1/forecastsedb, optional metricA network’s latest statistical forecasts, each with its 95% prediction interval.

Parameters go in the query string: edb takes a slug from /v1/edbs, metric a key from /v1/metrics, and year a four-digit disclosure year.

Responses

Every response has a data field with the result and a source field with the publisher, licence and notice. The licence requires you to keep that attribution wherever you use the data.

{
  "data": { ... },
  "source": {
    "name": "Commerce Commission electricity distributor disclosures",
    "licence": "Crown copyright, CC BY 4.0 unless otherwise stated",
    ...
  }
}
  • A disclosure year means the year ended 31 March. 2026 is the year ended 31 March 2026.
  • A missing value is null, never zero. It means the figure was not disclosed or could not be derived.
  • Units are in the metric’s unit field. Money is in nominal New Zealand dollars.
  • Each value carries the source file, release date and schedule rows it was taken from.
  • Forecasts are never given without their lower and upper bounds.

Limits and errors

Each account may make 60 requests a minute, shared by all its keys. Every successful answer includes X-RateLimit-Limit and X-RateLimit-Remaining headers. Errors have an error field explaining what went wrong.

Error status codes
StatusMeaning
400A parameter is missing or not in the expected form.
401The API key is missing, wrong or revoked.
403The account’s plan does not include the API, or not the data asked for.
404No network has that slug, or no values exist for that metric and year.
429The account has used its requests for this minute. Wait the number of seconds in Retry-After.
503The data API is temporarily unavailable. Try again shortly.