Skip to content
HALOWERK

Text Tools

html sample unicode copy cost

Web page example encoding compares UTF-8 bytes with Unicode code points and identifies the first non-ASCII block. Use it when an agent needs an encoding estimate for sample transport.

POST https://text.halowerk.com/v1/html-sample-unicode-copy-cost

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
urlstringYes
reuse_licenseSee schemaNo
Show full input schema
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 640,
      "minLength": 1
    },
    "reuse_license": {
      "enum": [
        "CC0",
        "CC-BY-4.0",
        "public-domain",
        "own-content"
      ]
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "url": "https://docs.python.org/3.14/tutorial/datastructures.html"
}

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": {
        "utf8_bytes": {
          "type": "integer"
        },
        "code_points": {
          "type": "integer"
        },
        "non_ascii_blocks": {
          "type": "integer"
        },
        "first": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "utf8_bytes",
        "code_points",
        "non_ascii_blocks",
        "first"
      ]
    },
    "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 →