UnifyUnits Developers
GET /v1/units Public

List all supported units

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

Prefer a language client when available: JavaScript / TypeScript, Python, or PHP (Laravel). Samples on this page stay raw HTTP so they match the OpenAPI contract.

Parameters

Name Type Required Description
category string No Filter by category id (e.g. "mass")

Possible errors

UNKNOWN_CATEGORY · INVALID_REQUEST · RATE_LIMIT_EXCEEDED

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 }
}