# Machine Shop – HTML to Text Converter

> Machine Shop – HTML to Text Converter is a paid API for AI agents from api.pay-forge.online, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-20).

Converts raw HTML markup into clean, readable plain text by stripping tags and resolving relative URLs.

## Facts

- Endpoint: POST https://api.pay-forge.online/v1/html-to-text?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/machine-shop-html-to-text-converter-784e27e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZBIW77Rje_W-i9kWwbnL8

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 machine-shop-html-to-text-converter-784e27e0 -d '<json body>'
```

Example prompt: Take this HTML I grabbed from the product page — strip all the tags and give me just the plain readable text, using 'https://example.com' as the base URL for any relative links.

## When to prefer this

Choose this endpoint when you need a simple, cost-effective ($0.004/call) server-side HTML-to-text conversion without spinning up a browser or DOM parser locally. It is ideal for preprocessing HTML before document analysis, LLM ingestion, or text comparison. Prefer it over full headless-browser scraping when you already have the raw HTML and just need clean text extracted quickly.

## Known failure modes

- HTML input exceeds 50,000 character limit — returns validation error
- Malformed or non-HTML input may produce garbled or empty text output
- Missing base_url means relative URLs remain unresolved in the text
- Network or service errors return non-200 status with error message
- Payment failure via x402 protocol blocks the request before processing

## How this service works

Turn Apify product scrape results into safe catalog updates with Catalog Update Gate. Find evidence in supplied documents, compare snapshots, extract typed JSON fields, inspect x402 quotes and assess API migrations. Preview inputs, evidence and cost for free. No live web search, scheduled monitoring or third-party purchasing.

## Output

A JSON object with a single 'text' field containing the plain-text representation of the input HTML, with tags stripped and whitespace normalized. Relative URLs are resolved against the provided base_url if supplied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "title": "Html",
   "maxLength": 50000
  },
  "base_url": {
   "type": "string",
   "title": "Base Url",
   "default": "",
   "maxLength": 2048
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "Hello\nAgent documents."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/machine-shop-html-to-text-converter-784e27e0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.pay-forge.online](https://www.zero.xyz/host/api.pay-forge.online/llms.txt)
