Skip to content
HALOWERK

Text Tools

html meter scale position

Web page meter position returns the effective bounds, clamped value and its share of the scale. Use it when an agent needs a unit-independent reading.

POST https://text.halowerk.com/v1/html-meter-scale-position

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
htmlstringNo
urlstringNo
reuse_licenseSee schemaNo
indexintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "html": {
      "type": "string",
      "maxLength": 16000,
      "minLength": 1
    },
    "url": {
      "type": "string",
      "maxLength": 800,
      "minLength": 1
    },
    "reuse_license": {
      "enum": [
        "CC0",
        "CC-BY-4.0",
        "public-domain",
        "own-content"
      ]
    },
    "index": {
      "type": "integer",
      "minimum": 0,
      "maximum": 199
    }
  },
  "required": [
    "index"
  ],
  "additionalProperties": false,
  "oneOf": [
    {
      "required": [
        "html"
      ]
    },
    {
      "required": [
        "url"
      ]
    }
  ]
}

Open original schema

Published input example

{
  "html": "<meter min=\"0\" max=\"8\" low=\"2\" high=\"6\" optimum=\"8\" value=\"5\">5 of 8</meter>",
  "index": 0
}

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": {
        "min": {
          "type": "number"
        },
        "max": {
          "type": "number"
        },
        "value": {
          "type": "number"
        },
        "fraction": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "min",
        "max",
        "value",
        "fraction"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub →