# Machine Shop – Webpage Document Preparer

> Machine Shop – Webpage Document Preparer is a paid API for AI agents from api.pay-forge.online, paid per call via x402, $0.015/call, status unknown (last checked 2026-10-20).

Fetches a URL and converts it into chunked, entity-tagged document form ready for evidence extraction, field comparison, and downstream analysis.

## Facts

- Endpoint: POST https://api.pay-forge.online/v1/webpage-prepare-document?utm_source=zero.xyz
- Price: $0.015/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-webpage-document-preparer-c6265134
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ka3ltGuALM93GWwoxu5X-

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-webpage-document-preparer-c6265134 -d '<json body>'
```

Example prompt: Fetch https://example.com/terms-of-service and prepare it as a chunked document — use a chunk size of 1500 and an overlap of 150 — so I can search for evidence and extract specific fields from it.

## When to prefer this

Choose this endpoint when you need to prepare a static webpage as a structured, chunked document for downstream evidence extraction, entity parsing, field comparison, or LLM ingestion. It is ideal when you need reproducible content (via SHA-256 hash) for snapshot diffing, or when you need named entities like dates, money amounts, emails, and EVM addresses automatically extracted alongside the text. Prefer alternatives if you need JavaScript-rendered pages, live web search, scheduled monitoring, or table/microdata parsing.

## Known failure modes

- URL is unreachable or returns non-200 status — fetch fails with an error
- Page relies on JavaScript rendering — static HTML only, dynamic content will be missing
- chunk_size below 64 or above 10000 — rejected by schema validation
- URL exceeds 2048 characters — rejected by schema validation
- Page has no meaningful text content — returns empty or near-empty chunks
- Rate limiting or payment failure — 402 response requiring x402 payment
- Malformed or non-HTML URL (e.g. PDF, binary) — may produce garbled or empty text output

## 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

Returns the full page text, markdown rendering, metadata (title, language, description, canonical URL), a list of text chunks with start/end positions and index, a SHA-256 hash of the document, extracted entities (URLs, dates, money values, emails, EVM addresses), any structured data found, and a list of parsing limitations (e.g. no JavaScript rendering).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "title": "Url",
   "maxLength": 2048
  },
  "overlap": {
   "type": "integer",
   "title": "Overlap",
   "default": 150,
   "maximum": 9999,
   "minimum": 0
  },
  "chunk_size": {
   "type": "integer",
   "title": "Chunk Size",
   "default": 1500,
   "maximum": 10000,
   "minimum": 64
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "text": "Hello\nAgent documents.",
  "links": [],
  "document": {
   "text": "Hello\nAgent documents.",
   "chunks": [
    {
     "end": 22,
     "text": "Hello\nAgent documents.",
     "index": 0,
     "start": 0
    }
   ],
   "sha256": "ad5d70c4710c7e4d89fd61cc8a948080c97155017935a37327b3c88d4ed9f88f",
   "entities": {
    "urls": [],
    "dates": [],
    "money": [],
    "emails": [],
    "evm_addresses": []
   },
   "removed_duplicate_lines": 0
  },
  "markdown": "# Hello\n\nAgent documents.",
  "metadata": {
   "meta": {},
   "title": "Example",
   "language": "en",
   "canonical": "",
   "description": ""
  },
  "limitations": [
   "Static HTML only; no JavaScript, CSS visibility, article detection, table reconstruction or microdata parsing."
  ],
  "structured_data": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/machine-shop-webpage-document-preparer-c6265134/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)
