Developers & API › Public Data API › Versioning contract

Public Data API

Versioning contract

The version lives in the path; which changes are ordinary and which are breaking, and the view schema each response names.

Version
1.0
Updated
2026-10-14
Source
Public Data API library

Versioning#

What is versioned, and how a change reaches you
SubjectRule
The versionIn the path — /api/v1. There is no version header, no query parameter and no content negotiation.
Adding a fieldOrdinary, and not announced. Parse defensively: treat an unknown key as data you do not use yet, never as an error.
Adding an error codeOrdinary. Branch on the codes you handle and fall through on the rest rather than matching exhaustively.
Changing or removing an error codeBreaking, because a consumer is already branching on it.
Renaming or removing a fieldBreaking.
The underlying view schemaReported per response as freshness.viewsSchema. It names the database schema the figures were read from, so a response can be traced to the shape that produced it.