# Delx Commerce Strip HTML Lite

> Delx Commerce Strip HTML Lite 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).

Strips HTML tags from a string of text and returns the cleaned plain-text content with character count.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/strip-html-lite?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-strip-html-lite-55e28db0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nEcmNhbJScjGLvsMQ8Bic

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-strip-html-lite-55e28db0 -d '<json body>'
```

Example prompt: Strip all the HTML tags out of this string for me: '<p>Hello <b>world</b>! <a href="#">Click here</a></p>' and give me back the plain text.

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.001 USDC), no-signup way to strip HTML tags from a text string and get back plain text with a character count — especially useful in agent pipelines that process scraped web content, user-submitted HTML, or HTML email bodies before further text analysis. Prefer this over heavyweight HTML parsers when you only need tag removal without structural parsing or DOM traversal.

## Known failure modes

- Empty or missing 'text' field may return an error or empty result
- Malformed JSON input body returns a 400-level error
- Payment failure via x402 protocol prevents execution
- Extremely large input strings may be rejected or truncated
- Non-HTML plain text input is returned unchanged (no-op behavior)

## How this service works

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

## Output

Returns a JSON object containing: 'text' (the cleaned plain-text string with all HTML tags removed), 'length' (integer character count of the resulting text), and 'schema' (a version identifier string 'delx/util-strip-html-lite/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": "Hello Delx",
  "length": 10,
  "schema": "delx/util-strip-html-lite/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-strip-html-lite-55e28db0/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)
