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
| Year | Crashes | DSI crashes | DSI share |
|---|---|---|---|
| 2022 | 31,415 | 2,477 | 7.9% |
| 2023 | 31,639 | 2,420 | 7.6% |
| 2024 | 29,470 | 2,390 | 8.1% |
| 2025 | 28,987 | 2,322 | 8.0% |
A DSI crash is one in which at least one person was killed or seriously injured.
Sources and licences
- Crash records: Crash Analysis System (CAS), NZ Transport Agency Waka Kotahi, opendata-nzta.opendata.arcgis.com, licensed under CC BY 4.0.
- Roads: © OpenStreetMap contributors, via the Geofabrik New Zealand extract, under the Open Database Licence.
- Base map: Google Maps.
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.
| Endpoint | Returns |
|---|---|
GET /health | Service status: number of configurations and years. |
GET /configs | Every model configuration with its set, model, balancing, calibration, threshold rule and per-year metrics, plus the road-condition filters. |
GET /crashes?year=2025 | Crash 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=2025 | Predicted DSI probabilities for one configuration and year, as a raw little-endian float64 array in the same order as /crashes. |
GET /roads | Road 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.