CrashMap

CrashMap data, sources and API

CrashMap scores about 121,500 crashes recorded in New Zealand from 2022 to 2025. All of it is available through a free, read-only API.

Crashes by year

Recorded crashes and death-or-serious-injury (DSI) crashes
YearCrashesDSI crashesDSI share
202231,4152,4777.9%
202331,6392,4207.6%
202429,4702,3908.1%
202528,9872,3228.0%

A DSI crash is one in which at least one person was killed or seriously injured.

Sources and licences

The map is free to use. The CrashMap predictions, road rankings and API are © Tasman Tech and are not released under an open licence; see the terms of use.

API

Base URL: https://api.crashmap.nz. GET only (other methods return 405), no authentication and no cookies. Requests are limited to 600 a minute per visitor, and data responses are cached for a day. Access to the API may change; the terms of use apply.

Endpoints
EndpointReturns
GET /healthService status: number of configurations and years.
GET /configsEvery model configuration with its set, model, balancing, calibration, threshold rule and per-year metrics, plus the road-condition filters.
GET /crashes?year=2025Crash positions, DSI label and road-condition codes for one scored year, in columnar form.
GET /crashes/{objectId}One crash by its CAS object ID: location, road, conditions, vehicles, injuries, and how every configuration scored it.
GET /predictions?config={configId}&year=2025Predicted DSI probabilities for one configuration and year, as a raw little-endian float64 array in the same order as /crashes.
GET /roadsRoad segments (name, district, length, path) and the segment each crash is snapped to. Large.

Configuration IDs look like backtest/xgboost-unbalanced or set3/lightgbm-weighted; /configs lists them all. The full technical guide documents every map view, URL parameter and endpoint in one file.

Linking to a map view

The map keeps its whole selection in the address, so any view can be bookmarked or shared. For example: unsealed-road risk, the two most recent years only, or the most intense open-road state highway stretches.

How the ranking is calculated · Open the map