# HTML Entity Codec Tool (x402)

> HTML Entity Codec Tool (x402) is a paid API for AI agents from gpt55.558686.xyz, paid per call via x402, $0.0001/call, status unknown (last checked 2026-09-13).

Escapes or unescapes HTML entities in a given text string, paid per-call via x402 USDC microtransaction.

## Facts

- Endpoint: GET https://gpt55.558686.xyz/v1/tools/html-entity-codec
- Price: $0.0001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/html-entity-codec-tool-x402-b59383e5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xEPxCRkv4k1EDluxIBHpH

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability html-entity-codec-tool-x402-b59383e5
```

Example prompt: Can you escape the HTML entities in this text so it's safe to embed in a webpage: '<script>alert("hello & world")</script>'?

## When to prefer this

Use this endpoint when you need a simple, pay-per-call HTML entity escaping or unescaping utility without a subscription, especially in automated pipelines where you want to pay micro-amounts in USDC per transformation rather than maintain an API subscription.

## Known failure modes

- Missing required 'text' query parameter returns error
- Text exceeds 20,000 character limit returns validation error
- Invalid mode value (not 'escape' or 'unescape') returns error
- Payment failure via x402 prevents access
- Service unavailable on the custom domain

## How this service works

Escape text for HTML/XML or decode common HTML entities without calling an upstream model. Pay up to $0.001 per request with x402 USDC on Base. Public paid calls are limited to 1500 input characters and 128 output tokens.

## Output

A JSON object with ok (boolean), tool name ('htmlEntityCodec'), a summary, and the transformed text (HTML-escaped or HTML-unescaped depending on the mode selected), plus a fetchedAt timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "additionalProperties": true
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "mode": {
       "enum": [
        "escape",
        "unescape"
       ],
       "type": "string"
      },
      "text": {
       "type": "string",
       "maxLength": 20000,
       "minLength": 1
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "tool": {
       "type": "string"
      },
      "fetchedAt": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/html-entity-codec-tool-x402-b59383e5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gpt55.558686.xyz](https://www.zero.xyz/host/gpt55.558686.xyz/llms.txt)
