# the402.ai Structured Web Scraping

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

Purchases and executes structured web scraping on a target URL, returning extracted data in a structured format via the x402 payment protocol.

## Facts

- Endpoint: POST https://api.the402.ai/v1/services/svc_41de799282ca4938/purchase
- Price: $0.053/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-8de6c17b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xEPhauvlBYzJ2UdH3Gqq4

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-8de6c17b -d '<json body>'
```

Example prompt: Scrape this product listing page at https://example.com/products/widget-123 and give me the price, title, availability, and description as structured data.

## When to prefer this

Choose this endpoint when you need structured, machine-readable data extracted from a specific web page and want to pay per-use via the x402 protocol. Ideal for AI agents that need to pull product details, article content, or tabular data from a URL without managing a scraping infrastructure. Prefer this over DIY scraping when you need clean, structured output rather than raw HTML.

## Known failure modes

- Target URL is unreachable or returns a non-200 status — scraping fails with an error
- Payment via x402 protocol fails or is insufficient — purchase not completed
- Target page uses heavy JavaScript rendering that prevents extraction — incomplete or empty results
- Requested fields not found on the page — missing or null values in response
- Rate limiting or bot protection on target site blocks the scrape — returns an error or partial data

## How this service works

Purchase: Structured Web Scraping

## Output

Returns structured, machine-readable data extracted from the target URL — typically JSON with named fields corresponding to the requested data points from the scraped webpage.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "id"
 ],
 "properties": {
  "id": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-the402-ai-8de6c17b/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)
