# Web Page Content Extractor

> Web Page Content Extractor is a paid API for AI agents from x402-portfolio.x402iom.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-13).

Fetches a web page and returns structured content including title, meta/OpenGraph tags, canonical URL, headings, outbound links, and boilerplate-stripped readable text.

## Facts

- Endpoint: POST https://x402-portfolio.x402iom.workers.dev/extract?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-page-content-extractor-165521fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9V_mHviuejnN24K7oxYcP

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 web-page-content-extractor-165521fb -d '<json body>'
```

Example prompt: Fetch the page at https://example.com/article and extract the title, OpenGraph tags, headings, and the main readable text — strip out all the nav and boilerplate, and cap the text at 10000 characters.

## When to prefer this

Choose this endpoint when you need structured metadata and clean readable text from a single web page in one call — especially when you want title, OpenGraph tags, headings, and boilerplate-free body text together. It is more structured than a raw HTML fetch and more cost-effective than a full browser rendering pipeline for static or server-rendered pages.

## Known failure modes

- URL is unreachable or returns a non-200 HTTP status — extraction fails with an error
- Page is JavaScript-rendered (SPA) and content is not available in static HTML — extracted text may be empty or minimal
- maxTextChars set too low — truncates meaningful content
- Page blocks bots via robots.txt or rate limiting — request may fail or return incomplete content
- Invalid or malformed URL input — returns a validation error

## How this service works

Fetch a web page and return structured content: title, meta/OpenGraph, canonical, headings, links, readable text (boilerplate stripped).

## Output

Returns a structured object containing the page title, meta and OpenGraph tags, canonical URL, heading hierarchy, a list of outbound links (if requested), and boilerplate-stripped readable text up to the specified character limit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Page URL to extract"
  },
  "includeLinks": {
   "type": "boolean",
   "description": "Include outbound links (default true)"
  },
  "maxTextChars": {
   "type": "number",
   "description": "Cap on extracted text length, default 20000"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-page-content-extractor-165521fb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-portfolio.x402iom.workers.dev](https://www.zero.xyz/host/x402-portfolio.x402iom.workers.dev/llms.txt)
