# x-402 Structured Web Extractor

> x-402 Structured Web Extractor is a paid API for AI agents from api.x-402.online, paid per call via x402, $0.015/call, status unknown (last checked 2026-10-20).

Scrapes any URL from a residential IP and uses an LLM to return only the specific fields you request as clean JSON

## Facts

- Endpoint: POST https://api.x-402.online/v1/extract-structured?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/x-402-structured-web-extractor-5fe82ce6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zFQPwR7MFnhjxiu7bKJYV

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 x-402-structured-web-extractor-5fe82ce6 -d '<json body>'
```

Example prompt: Scrape this product page https://example.com/product/123 and give me the price, rating, and stock availability as JSON — it might block regular scrapers so use a residential IP.

## When to prefer this

Choose this endpoint when you need to extract specific structured fields from a webpage, especially when the target site blocks datacenter IPs. It is cheaper than Firecrawl's extract API and ideal for e-commerce price/rating/stock lookups, real estate data, or any scenario where you want a predefined JSON shape rather than raw HTML or markdown. Prefer it over general-purpose scrapers when you already know which fields you want and want them returned directly as typed JSON.

## Known failure modes

- Target URL is unreachable or returns a non-200 status
- Page uses heavy JavaScript rendering that cannot be fully processed
- Requested fields do not exist on the page — returned as null or missing keys
- Anti-bot measures too aggressive even for residential IP (CAPTCHA walls)
- Malformed or ambiguous field/schema specification leads to unexpected output
- Rate limits exceeded on the target site from the residential IP pool

## How this service works

Pay-per-call APIs for AI agents — x402 protocol, USDC on Base, no account needed.

## Output

A clean JSON object containing exactly the fields requested via the `fields` query parameter (e.g. price, rating, stock) or matching a free-text schema description. The page is fetched through a residential IP to bypass anti-bot measures, and an LLM interprets the page content to populate the requested fields accurately.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://…",
  "data": {
   "price": 19.9,
   "title": "…"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x-402-structured-web-extractor-5fe82ce6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x-402.online](https://www.zero.xyz/host/api.x-402.online/llms.txt)
