Skip to content
HALOWERK

Text Tools

cldr measure usage reverse index

Regional unit reverse lookup finds quantity and usage pairs that specify a supplied unit in the selected region. Use it when an agent needs where a unit identifier participates in localization rules.

POST https://text.halowerk.com/v1/cldr-measure-usage-reverse-index

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
unitstringYes
regionstringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "unit": {
      "type": "string",
      "maxLength": 70,
      "minLength": 1
    },
    "region": {
      "type": "string",
      "maxLength": 5,
      "minLength": 1
    }
  },
  "required": [
    "unit",
    "region"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "region": "US",
  "unit": "mile"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "matches": {
          "type": "integer"
        },
        "uses": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "matches",
        "uses"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-20 UTC.

More endpoints in this hub

All endpoints in this hub →