v1: Binary (IEC) storage units added
- The digital category gained five binary units defined in IEC 80000-13: kib (KiB, 1024 bytes), mib (MiB, 1 048 576), gib (GiB, 1 073 741 824), tib (TiB, 1 099 511 627 776) and pib (PiB, 1 125 899 906 842 624). They appear in /api/v1/units, /api/v1/factors and the deprecated /api/units next to the decimal kb, mb, gb, tb and pb, which keep their ids and their powers-of-1000 factors.
- In /api/v1/factors each new unit has an exact integer factorToBase in bytes, exact: true, and the IEC 80000-13 source used for the other digital units.
- Purely additive: no existing field, id or factor changed. A client that lists every unit will now see 12 digital units instead of 7.
v1: Static files only, per-query conversion retired
- Removed /api/convert and /api/v1/convert. They computed a result per query string, which cannot be served as a static file, and the whole site now ships as static files. Both URLs return 404.
- To convert a value, fetch /api/v1/factors once and compute value × factorToBase(from) ÷ factorToBase(to) for two units of the same category. That is the arithmetic the endpoint ran, so the numbers are identical. Temperature converts by formula.
- /api/v1/units and /api/v1/factors are unchanged in content. Both, and /api/openapi.json, are now prerendered files. They no longer answer OPTIONS preflight requests, which a plain GET never needs.
- /api/openapi.json is now document version 2.0.0 and describes /api/v1/units and /api/v1/factors.
v1: Versioned API introduced
- Added /api/v1/convert and /api/v1/units. Same parameters, same validation and the same numbers as the unversioned endpoints they replace.
- Every v1 response now carries a license field (CC BY 4.0) and an attribution field, on success and on error alike.
- Added /api/v1/factors: the conversion factor to each category base unit for every unit, with an exactness flag, a note on how the factor is derived and the defining authority. It is the machine-readable version of the methodology page.
- Added /api/openapi.json, an OpenAPI 3.1 description of the three v1 endpoints.
- The legacy /api/convert and /api/units are now deprecated. They keep working and their response shape is unchanged; they only gained a Deprecation header and a Link header pointing at the successor endpoint.
Version policy
The response shape of a released version is additive only: new fields may appear, existing fields will not change meaning or disappear. Anything that would break a client gets a new version path instead. The one exception is the retirement of the per-query conversion endpoints on 13 October 2026, listed above, which followed from serving the site as static files only. The legacy /api/units without a version prefix is deprecated but supported, and it returns a Deprecation header plus a Link header naming its successor.
The full contract lives at /api/openapi.json. Back to the developer documentation.