# x402 Micro Pay — HTML Clean Skill

> x402 Micro Pay — HTML Clean Skill is a paid API for AI agents from x402-micro-pay.com, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-14).

Cleans and sanitizes raw HTML content via a pay-per-call HTTP microservice using x402/USDC micropayments

## Facts

- Endpoint: POST https://x402-micro-pay.com/api/skills/html-clean?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-micro-pay-html-clean-skill-2babe9ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NEjVB8ZN6WteOgMar49EQ

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 x402-micro-pay-html-clean-skill-2babe9ab -d '<json body>'
```

Example prompt: Can you clean this HTML snippet for me — strip out all the junk tags and scripts so I'm left with just the readable content? Here's the raw HTML: '<div><script>alert(1)</script><p>Hello world</p><span style="color:red">Text</span></div>'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call HTML sanitization microservice with no subscription or API key overhead. Ideal for AI agents that process HTML sporadically and want to pay only per use via USDC micropayments. Best for agentic pipelines that scrape or receive untrusted HTML and need it cleaned before rendering, storing, or feeding into an LLM.

## Known failure modes

- Invalid or malformed input schema — returns error if required 'type' or 'method' fields are missing
- Payment failure — x402 micropayment of $0.008 USDC not fulfilled, returns 402 Payment Required
- Empty or null HTML input — may return error or empty output
- Malformed HTML that cannot be parsed — may return partial result or error
- Network timeout on large HTML payloads

## How this service works

Agent-ready microservices with x402 + Stripe rails, volume primitives, tutorials, and applet UI.

## Output

Returns a JSON object with an 'ok' boolean indicating success and the processed path. The cleaned HTML content is returned as the result of the transformation, with unsafe or unwanted HTML elements removed or sanitized.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string"
  },
  "mode": {
   "enum": [
    "text",
    "markdown"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "path": "/api/skills/html-clean"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-micro-pay-html-clean-skill-2babe9ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-micro-pay.com](https://www.zero.xyz/host/x402-micro-pay.com/llms.txt)
