Skip to content
HALOWERK

Text Tools

html meter distance to optimum

Web page meter target gap measures the signed change required to reach the declared optimum. Use it when an agent needs target distance on the published scale.

POST https://text.halowerk.com/v1/html-meter-distance-to-optimum

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": {
        "target": {
          "type": "number"
        },
        "delta": {
          "type": "number"
        },
        "direction": {
          "type": "string"
        }
      },
      "required": [
        "target",
        "delta",
        "direction"
      ]
    },
    "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 →