# Delx Commerce HTML Escape API

> Delx Commerce HTML Escape API is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Escapes special HTML characters in a string (e.g. <, >, &, quotes) to produce safe HTML-encoded text.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/html-escape?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-html-escape-api-35206866
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-YjUIWmgrNupiXNnT0NFh

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 delx-commerce-html-escape-api-35206866 -d '<json body>'
```

Example prompt: Escape the HTML special characters in this string so it's safe to embed in a webpage: 'Hello <World> & "friends" — it\'s great!'

## When to prefer this

Choose this endpoint when you need a simple, pay-per-use, no-signup HTML escaping utility, especially in agent workflows that already use x402 micropayments on Base or Solana. It is ideal for one-off or low-volume escaping tasks where embedding a full server-side sanitization library isn't practical, and when verifiable delivery and exact per-call pricing matter.

## Known failure modes

- Missing or empty 'text' field in request body — likely returns a 400 validation error
- Payment failure or insufficient USDC balance via x402 — returns 402 Payment Required
- Network or service timeout — returns 5xx error with no escaped output
- Extremely large input strings may be rejected or truncated

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing a 'text' field with the input string HTML-escaped (e.g. < becomes &lt;, > becomes &gt;, & becomes &amp;, ' becomes &#x27;) and a 'schema' field identifying the response format as 'delx/util-html-escape/v1'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input field: text."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "a &lt;b&gt; &amp; &#x27;c&#x27; &gt; d",
  "schema": "delx/util-html-escape/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-html-escape-api-35206866/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
