# agentdata-api Web Page to Markdown Reader

> agentdata-api Web Page to Markdown Reader is a paid API for AI agents from agentdata-api.sander-van-aard.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Fetches any URL and returns its readable content as clean LLM-ready markdown or plain text, stripping boilerplate like navigation, scripts, and styles.

## Facts

- Endpoint: POST https://agentdata-api.sander-van-aard.workers.dev/web/contents
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdata-api-web-page-to-markdown-reader-87d68949
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__l6PokMCO8hHUsNhpWxDb

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 agentdata-api-web-page-to-markdown-reader-87d68949 -d '<json body>'
```

Example prompt: Fetch the main content from https://www.bbc.com/news/technology-12345678 as clean markdown, capped at 15000 characters, so I can summarize it.

## When to prefer this

Choose this endpoint when you need to read the human-readable body of a specific known URL cheaply ($0.0015 per call) without an account or API key. It is the natural follow-up to /web/search when you have a URL and need its content. Prefer it over heavier scraping services when you only need the readable prose core rather than structured data or full DOM access.

## Known failure modes

- Unreachable URL (network error or DNS failure) — costs nothing, returns empty or error indicator
- Non-HTML target (PDF, binary file) — costs nothing, no content returned
- Page behind authentication or CAPTCHA — content inaccessible, may return partial or empty result
- max_chars too small — content is truncated and truncated flag is set to true
- Invalid URL format — request rejected before fetch

## How this service works

Read any web page as clean LLM-ready markdown for $0.003 — the natural companion to /web/search. Send a URL, get back the readable core: title, headings, paragraphs, lists and links, stripped of scripts, styles, navigation and other boilerplate. Choose markdown or plain text and cap the size with max_chars (default 20000; a truncated flag tells you when the cut hit). Unreachable or non-HTML targets cost nothing. Pay per call in USDC, no account, no API key.

## Output

Returns the page title, structured headings, paragraphs, lists, and links formatted as clean markdown (or plain text), with a truncated boolean flag if the content was cut at max_chars. Unreachable or non-HTML URLs return nothing and are not charged.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdata-api-web-page-to-markdown-reader-87d68949/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentdata-api.sander-van-aard.workers.dev](https://www.zero.xyz/host/agentdata-api.sander-van-aard.workers.dev/llms.txt)
