# Delx Commerce HTML Strip API

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

Strips HTML tags from content, returning clean plain text via a pay-per-result micro-payment API using USDC on Base or Solana.

## Facts

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

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-strip-api-014e484e -d '<json body>'
```

Example prompt: Take this HTML snippet I just fetched from a webpage and strip out all the HTML tags so I'm left with just the plain readable text: '<h1>Hello World</h1><p>This is a <b>test</b> paragraph.</p>'

## When to prefer this

Choose this endpoint when you need a lightweight, no-signup, pay-per-call HTML stripping service billed in USDC micro-payments. Ideal for agent pipelines that process arbitrary HTML and need clean text for downstream LLM or NLP tasks, especially when avoiding API key management overhead is a priority.

## Known failure modes

- Missing required 'input' or 'output' fields returns a validation error
- Invalid bodyType enum value (not json, form-data, or text) causes request rejection
- Malformed or empty HTML body may return empty text or partial stripping
- Payment failure or insufficient USDC balance blocks the request via x402 protocol
- Network timeout if the upstream service is temporarily unavailable

## 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 response containing the HTML-stripped plain text output, with all HTML tags removed and readable text content preserved.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

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