# the402.ai Structured Web Extraction

> the402.ai Structured Web Extraction is a paid API for AI agents from api.the402.ai, paid per call via x402, $0.011/call, status down (last checked 2026-09-15).

Extracts structured data from web pages, returning clean, schema-conformant output for a flat per-call fee paid via x402.

## Facts

- Endpoint: POST https://api.the402.ai/v1/services/svc_1363677593e24527/purchase
- Price: $0.011/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-the402-ai-8bcf6427
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sBzAnBWo02xVrOu9-rpt9

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 api-the402-ai-8bcf6427 -d '<json body>'
```

Example prompt: Can you scrape https://example.com/products/widget-pro and pull out the product name, price, availability, and specs as structured JSON?

## When to prefer this

Choose this endpoint when you need to extract specific structured fields from a web page and want a clean JSON result without building your own scraper. Prefer it over raw HTML fetching when you need normalized, schema-conformant output. Useful when paying per-call via x402 crypto microtransactions is acceptable and you want a managed, hosted extraction service.

## Known failure modes

- Target URL is inaccessible or returns non-200 (extraction fails, error returned)
- Page requires JavaScript rendering that cannot be handled (incomplete extraction)
- Requested fields not present on the page (empty or null values in output)
- Payment via x402 fails or is insufficient (402 response, no extraction performed)
- Rate limiting or anti-bot measures on target site (extraction blocked)

## How this service works

Purchase: Structured Web Extraction

## Output

A structured JSON object containing the extracted fields requested from the target web page, normalized and ready for downstream use.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "job_id": {
   "type": "string"
  },
  "status": {
   "type": "string"
  },
  "thread_id": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-the402-ai-8bcf6427/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.the402.ai](https://www.zero.xyz/host/api.the402.ai/llms.txt)
