# x402-tools HTML to Text Converter

> x402-tools HTML to Text Converter is a paid API for AI agents from x402.nichospt.net, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Converts HTML markup into plain text by stripping tags and decoding HTML entities, returning clean readable content

## Facts

- Endpoint: POST https://x402.nichospt.net/html-to-text?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-tools-html-to-text-converter-13c91931
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AC3SVHkO45kmLMdf2h5Na

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-tools-html-to-text-converter-13c91931 -d '<json body>'
```

Example prompt: Strip all the HTML tags out of this markup and give me just the readable plain text: '<h1>Hello</h1><p>World &amp; friends</p>'

## When to prefer this

Use this endpoint when you need a quick, cheap ($0.01 USDC) pay-per-call conversion of raw HTML into clean plain text, especially for AI pipelines that need to process web content without HTML noise. Ideal when you have raw HTML strings from scraped pages or email bodies and need readable text without running a full browser or DOM parser locally.

## Known failure modes

- HTML payload exceeds 2,000,000 character limit — request rejected
- Malformed JSON request body — 400 error
- Payment required but no x402 USDC payment included — 402 Payment Required
- Network timeout for very large HTML documents
- Invalid or expired USDC payment — payment rejection error

## How this service works

Pay-per-call utility APIs for AI agents, settled in USDC via the x402 protocol.

## Output

A JSON object with a 'text' field containing the plain text extracted from the HTML, with tags removed and HTML entities decoded (e.g. {"text": "Hello\nWorld & friends"})

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "maxLength": 2000000
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "Hello\nWorld & friends"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-tools-html-to-text-converter-13c91931/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.nichospt.net](https://www.zero.xyz/host/x402.nichospt.net/llms.txt)
