# x402node Web Structured Extraction

> x402node Web Structured Extraction is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-31).

Fetches a web page with JS rendering and returns clean markdown plus structured links and headings for RAG, crawling, and content analysis

## Facts

- Endpoint: GET https://api.x402node.dev/web/extract?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402node-web-structured-extraction-a27043cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_smh6TghOzEZokAeqhYi6E

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 x402node-web-structured-extraction-a27043cd
```

Example prompt: Grab the full content of https://en.wikipedia.org/wiki/Artificial_intelligence as clean markdown and pull out all the links and headings so I can index it for my RAG pipeline.

## When to prefer this

Use this endpoint when you need structured extraction (markdown + links + headings as discrete fields) from a JavaScript-rendered page, especially for RAG pipelines or content indexing. Prefer over plain HTTP fetchers when JS rendering is required, and over generic scrapers when structured output (not raw HTML) is needed.

## Known failure modes

- Target URL is unreachable or returns non-200 status — extraction fails with an error response
- JavaScript rendering timeout — page may not fully load before extraction
- Paywalled or bot-protected pages may return incomplete or empty content
- Invalid or malformed URL parameter — returns validation error
- Payment not processed — x402 payment required before content is returned

## How this service works

Structured page extraction — clean markdown plus extracted links and headings as structured data, via managed retrieval with JS rendering. For RAG, crawling and content analysis. web extract, structured extraction, links, headings, markdown, rag, crawling, content analysis Accepts payment on Base or Solana — either network works.

## Output

Returns a structured payload containing the page content as clean markdown, a list of extracted hyperlinks found on the page, and a list of headings (e.g. H1–H6), all derived from a JS-rendered fetch of the target URL.

## 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",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public page URL to extract, e.g. https://example.com (required)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402node-web-structured-extraction-a27043cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
