# agentshelf.syntexa.ch HTML to Plain Text

> agentshelf.syntexa.ch HTML to Plain Text is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Converts an HTML string to plain text by stripping all scripts, styles, and markup tags

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/html-to-text?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/agentshelf-syntexa-ch-html-to-plain-text-279992ae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gDgEUFIw5J8vPlIwOwNfg

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 agentshelf-syntexa-ch-html-to-plain-text-279992ae -d '<json body>'
```

Example prompt: Take this HTML page source and strip out all the scripts, styles, and tags — I just want the plain readable text: <html><body><h1>Hello</h1><script>alert(1)</script><p>World</p></body></html>

## When to prefer this

Use this endpoint when you need a fast, server-side, deterministic HTML-to-text conversion with no network calls to external URLs and no LLM inference — ideal for preprocessing HTML before passing to a language model or storing as plain text. Prefer the free sandbox endpoint at /v1/sandbox/html-to-text when available to avoid the $0.001 USDC charge.

## Known failure modes

- Empty or missing 'html' field returns validation error
- HTML input exceeding 200,000 characters is rejected
- Malformed JSON body causes a 400 error
- Payment not provided or incorrect amount results in 402 Payment Required

## How this service works

Call when an agent needs HTML converted to plain text (scripts and styles removed). No network. Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/html-to-text first.

## Output

Plain text string with all HTML tags, script blocks, and style blocks removed, leaving only the human-readable text content of the original HTML document.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "examples": [
    "<p>Hello <b>world</b></p>"
   ],
   "maxLength": 200000,
   "minLength": 1,
   "description": "HTML to convert to plain text. Scripts and styles are dropped."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-syntexa-ch-html-to-plain-text-279992ae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
