# APEX Faucet Page Extractor

> APEX Faucet Page Extractor is a paid API for AI agents from apexfaucet.xyz, paid per call via x402, $0.009/call, status unknown (last checked 2026-10-02).

Renders a web page (executing JavaScript) and returns its full text content, headings, links, and metadata via a paid x402 API call.

## Facts

- Endpoint: GET https://apexfaucet.xyz/api/x402/page-extract?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apex-faucet-page-extractor-75ecd48b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lfuY9QodHGn82x_ffJGYE

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 apex-faucet-page-extractor-75ecd48b
```

Example prompt: Can you fetch the full rendered text and all outbound links from https://docs.arc.io/ — it's a JavaScript-heavy docs site, so make sure JS is executed before extracting.

## When to prefer this

Choose this endpoint when you need to extract text from JavaScript-rendered single-page applications or documentation sites where a simple HTTP GET would return an empty shell. It is especially useful for onchain/Web3 documentation, DeFi dashboards, and any page that requires JS execution before content is visible. Prefer it over static scrapers for React/Vue/Next.js apps.

## Known failure modes

- Invalid or unreachable URL returns ok:false with an error message
- Timeout if the target page takes too long to load or JavaScript execution hangs
- HTTP error status reflected in httpStatus field if the target server returns 4xx/5xx
- Payment failure if the x402 USDC balance is insufficient
- Malformed URL input results in validation error

## How this service works

Web page extract: render a page in a real browser and return its text and links. Render a web page in a real browser and return its full text and links.

## Output

A JSON object with ok:true and a data object containing: the page URL, final URL after redirects, rendered plain text, page title, meta description, an array of headings, an array of outbound links, link count, and character count. Also includes a paid object confirming the x402 payment asset, amount, and network.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "The http(s) page to render. JavaScript is executed before the text is taken, so single-page apps and documentation sites come back complete."
      },
      "full": {
       "type": "string",
       "description": "Set to 1 for the full rendered text and every outbound link ($0.009 over x402). Programs pay for every call, with or without it; only a browser gets a short preview without it (title, description, headings, first 400 characters)."
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "properties": {
   "ok": {
    "type": "boolean"
   },
   "data": {
    "type": "object",
    "properties": {
     "url": {
      "type": "string"
     },
     "text": {
      "type": "string"
     },
     "links": {
      "type": "array"
     },
     "title": {
      "type": "string"
     },
     "finalUrl": {
      "type": "string"
     },
     "headings": {
      "type": "array"
     },
     "linkCount": {
      "type": "integer"
     },
     "characters": {
      "type": "integer"
     },
     "httpStatus": {
      "type": "integer"
     },
     "description": {
      "type": "string"
     }
    }
   },
   "paid": {
    "type": "object"
   }
  }
 },
 "example": {
  "ok": true,
  "data": {
   "url": "https://docs.arc.io/",
   "text": "Arc developer documentation\n\nEverything you need to build onchain finance with stablecoins…",
   "title": "Welcome to Arc docs",
   "linkCount": 53,
   "characters": 1384
  },
  "paid": {
   "asset": "USDC",
   "amount": 1,
   "network": "eip155:5042"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apex-faucet-page-extractor-75ecd48b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apexfaucet.xyz](https://www.zero.xyz/host/apexfaucet.xyz/llms.txt)
