# Operation 402 HTML Text Extractor

> Operation 402 HTML Text Extractor is a paid API for AI agents from operation-402-live.aeroworks.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-23).

Extracts plain text content from raw HTML input, stripping tags and returning structured text data

## Facts

- Endpoint: POST https://operation-402-live.aeroworks.workers.dev/api/extract?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/operation-402-html-text-extractor-cea1992d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WmYTmPajHbwsgKrXBsvJW

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 operation-402-html-text-extractor-cea1992d -d '<json body>'
```

Example prompt: I scraped a webpage and got back a big blob of HTML — can you extract just the readable text from it, stripping out all the tags and markup?

## When to prefer this

Choose this endpoint when you have raw HTML strings — from web scraping, fetching page source, or scraper outputs — and need clean plain text for downstream NLP, summarization, or search indexing. It is ideal for agentic pipelines that crawl the web and need to strip markup before passing content to an LLM. Prefer this over custom regex or DOM parsing when you want a hosted, pay-per-use solution with no infrastructure overhead, especially when working within an x402-enabled payment flow on Base mainnet.

## Known failure modes

- Missing or empty 'html' field returns an error or empty result
- Malformed/non-HTML input may produce garbled or empty text output
- Very large HTML payloads may time out or exceed processing limits
- Payment failure via x402 (insufficient USDC balance or wrong network) blocks the request
- Invalid JSON request body returns a 400-level error

## How this service works

Five paid data-processing APIs for AI agents. Payments use x402 v2 with USDC on Base mainnet.

## Output

A JSON object with a 'result' field containing the extracted plain text from the provided HTML, and a 'service' field confirming 'HTML Text Extractor'. The result object holds the cleaned, tag-free text content derived from the input HTML.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {},
  "service": "HTML Text Extractor"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/operation-402-html-text-extractor-cea1992d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from operation-402-live.aeroworks.workers.dev](https://www.zero.xyz/host/operation-402-live.aeroworks.workers.dev/llms.txt)
