# Web Page to Markdown Fetcher

> Web Page to Markdown Fetcher is a paid API for AI agents from api.agent-data.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-14).

Fetches any public web page and returns its main content as clean Markdown, stripped of ads, menus, and scripts, along with metadata like title, description, language, and links.

## Facts

- Endpoint: GET https://api.agent-data.workers.dev/api/v1/fetch?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-page-to-markdown-fetcher-f9b03c48
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KPP6ZhQ4y4w-Imhf1ogTR

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-to-markdown-fetcher-f9b03c48
```

Example prompt: Can you fetch the content of https://en.wikipedia.org/wiki/Ethereum and give me the main text as clean markdown, up to 10000 characters?

## When to prefer this

Use this endpoint when an AI agent needs to read the textual content of any public web page without spinning up a browser. It is ideal for LLM pipelines that need clean, structured Markdown input from arbitrary URLs — especially when pairing with a web search endpoint that returns URLs but not page bodies. Prefer this over raw HTML fetchers when downstream processing requires readable prose rather than DOM structure.

## Known failure modes

- URL is not publicly accessible (private, paywalled, or requires login) — returns an error or empty content
- URL points to a non-HTML resource (e.g. image or binary file) — may fail or return garbled content
- Page uses heavy JavaScript rendering that cannot be executed server-side — returns incomplete or missing content
- max_chars set too low, causing heavy truncation of important content
- Invalid or malformed URL — returns a validation error
- Rate limiting or network timeout for slow-loading pages

## How this service works

Read any public web page as clean Markdown for an LLM: main content without menus, scripts or ads, plus title, description, language and links. For agents without a browser.

## Output

A JSON object containing the page's main body as Markdown text (ads, navigation, and scripts removed), along with the page title, description, detected language, an array of links found on the page, the word count, and a boolean indicating whether the content was truncated due to max_chars.

## 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": "http(s) URL"
      },
      "max_chars": {
       "type": "integer",
       "maximum": 100000,
       "minimum": 500
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://en.wikipedia.org/wiki/Bitcoin",
  "links": [
   "https://en.wikipedia.org/wiki/Satoshi_Nakamoto"
  ],
  "title": "Bitcoin - Wikipedia",
  "words": 9120,
  "markdown": "# Bitcoin\n\nBitcoin is the first decentralized cryptocurrency...",
  "truncated": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-page-to-markdown-fetcher-f9b03c48/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agent-data.workers.dev](https://www.zero.xyz/host/api.agent-data.workers.dev/llms.txt)
