# Web Extract – Fetch URL as Markdown, Metadata & Links

> Web Extract – Fetch URL as Markdown, Metadata & Links is a paid API for AI agents from agentpay.agentpay-apis.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Fetches any public URL and returns its content as Markdown text, along with page metadata and extracted links.

## Facts

- Endpoint: GET https://agentpay.agentpay-apis.workers.dev/extract/v1/page?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-extract-fetch-url-as-markdown-metadata-links-ec0d1dc6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4AiqQAH99z7CC5rQ8qzR7

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-extract-fetch-url-as-markdown-metadata-links-ec0d1dc6
```

Example prompt: Fetch the page at https://example.com/blog/ai-agents and give me the full text as markdown, including any links on the page.

## When to prefer this

Choose this endpoint when you need to read the human-readable text content of a public webpage and want it returned as structured Markdown along with metadata and links — ideal for summarization, research, content monitoring, or link discovery tasks. Prefer this over PDF extraction siblings when the target is an HTML page rather than a document file.

## Known failure modes

- URL is unreachable or returns a non-200 HTTP status — error response with status code
- URL points to a binary file that cannot be converted to markdown — empty or error response
- maxChars value outside allowed range (1000–200000) — validation error
- URL is a JavaScript-heavy SPA and content is not server-rendered — partial or empty markdown
- Rate limiting or payment failure via x402 protocol — 402 payment required error

## How this service works

Web extraction, domain lookups and document tools for AI agents. Pay per call in USDC via x402 on Base or Algorand.

## Output

Returns the page content rendered as Markdown (up to 200,000 characters, default 50,000), along with page metadata (title, description, canonical URL, etc.) and a list of hyperlinks found on the page.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "http(s) URL to read"
      },
      "maxChars": {
       "type": "string",
       "description": "Max markdown characters (1000-200000, default 50000)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-extract-fetch-url-as-markdown-metadata-links-ec0d1dc6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentpay.agentpay-apis.workers.dev](https://www.zero.xyz/host/agentpay.agentpay-apis.workers.dev/llms.txt)
