UnifyUnitsDevelopers
GET/v1/unitsPublic

List all supported units

Returns all supported units across all categories. Filter by category using the optional query parameter.

Parameters

NameTypeRequiredDescription
categorystringNoFilter by category id (e.g. "mass")

Possible errors

UNKNOWN_CATEGORY

All endpoints · Error reference

cURL
curl "https://api.unifyunits.com/v1/units?category=mass"

Response 200

json
{
  "data": [
    {
      "id": "kg",
      "name": "Kilogram",
      "category": "mass",
      "aliases": ["kilograms", "kilo", "kilos"],
      "verification": "legacy",
      "factor": "1"
    }
  ],
  "meta": { "count": 10 }
}