# HTTPay HTML Strip API

> HTTPay HTML Strip API is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Strips all HTML tags from an input string and returns clean plain text, with optional HTML entity decoding

## Facts

- Endpoint: POST https://httpay.xyz/api/html-strip
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-html-strip-api-b6fe1a82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v8meY6XP_EmUUbPM3DZFB

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 httpay-html-strip-api-b6fe1a82 -d '<json body>'
```

Example prompt: Strip all the HTML tags from this string and give me just the plain text: '<p>Hello <b>world</b> &amp; welcome!</p>' — also decode any HTML entities like &amp; while you're at it.

## When to prefer this

Choose this endpoint when you need a lightweight, no-setup, pay-per-call HTML stripping operation without maintaining API keys or subscriptions. Ideal for occasional or low-volume text cleaning tasks where spinning up a full HTML parsing library is overkill, or when operating in an agent context that already handles x402 micropayments on Base.

## Known failure modes

- Missing or empty html field in POST body returns an error
- Malformed JSON body returns a parse error
- Very large HTML strings may hit payload limits
- Invalid or non-HTML input may still return unchanged text
- Payment failure (insufficient USDC balance) results in 402 response

## How this service works

307 pay-per-call APIs (287 native + Universal Gateway proxying 37 services) powered by x402 and USDC on Base. Token intelligence, DeFi yields, MEV risk, AI tools, web scraping. No API keys, no subscriptions — pay $0.001–$0.05 per call.

## Output

A JSON response containing the plain text version of the input HTML string, with all tags removed. If ?decode=true is passed, HTML entities (like &amp;, &lt;) are also decoded into their corresponding characters. Processing is done via Node.js built-in regex.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "Strip all HTML tags from a string and return plain text. POST JSON: {html}. Optionally ?decode=true to decode HTML entities. Uses Node.js built-in regex."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-html-strip-api-b6fe1a82/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
