# paid-md Web Page to Markdown Converter

> paid-md Web Page to Markdown Converter is a paid API for AI agents from paid-md.hihat.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Fetches any public web page URL and returns clean, LLM-ready Markdown with boilerplate, ads, and navigation stripped away

## Facts

- Endpoint: GET https://paid-md.hihat.workers.dev/md?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/paid-md-web-page-to-markdown-converter-88ba8efb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2gZuz3OlqO9FJOXqs1XEl

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 paid-md-web-page-to-markdown-converter-88ba8efb
```

Example prompt: Can you fetch https://docs.python.org/3/library/asyncio.html and give me the content as clean markdown so I can read it without all the navigation and HTML clutter?

## When to prefer this

Choose this endpoint when you need to feed web page content to an LLM and want clean, token-efficient Markdown rather than raw HTML. Ideal for reading articles, documentation pages, blog posts, product pages, or GitHub issues where the signal-to-noise ratio of raw HTML is poor. Prefer this over generic HTTP fetch when token efficiency matters, or when boilerplate removal is critical for downstream LLM tasks. The built-in token count headers make it easy to budget context window usage.

## Known failure modes

- URL is not publicly accessible or requires authentication — returns error
- Page is JavaScript-rendered SPA with no static HTML content — may return empty or minimal markdown
- Invalid or malformed URL — returns 400 bad request
- Rate limit exceeded on free tier — requires USDC micropayment via x402 protocol
- Target server is down or times out — returns upstream error
- URL points to a binary file (PDF, image) rather than an HTML page — may fail or return unexpected content

## How this service works

Read any public web page as clean, LLM-ready Markdown. URL to markdown web scraper: fetches the page, strips navigation, ads, scripts, cookie banners and boilerplate, keeps the main content with headings, lists, links and tables. Use it to read, quote or summarise an article, docs page, blog post, product page or GitHub issue from a URL. Typically 90-99% fewer tokens than raw HTML; token counts returned in headers.

## Output

Returns the main article or page content as clean Markdown text (text/markdown content type), with all navigation, ads, cookie banners, scripts, and boilerplate removed. Response headers include x-tokens-in (input token count), x-tokens-out (output token count), and x-saved-pct (percentage of tokens saved vs raw HTML). Typically 90-99% fewer tokens than the raw HTML source.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Absolute http(s) url of the page to convert to markdown."
      },
      "format": {
       "enum": [
        "json",
        "md"
       ],
       "type": "string",
       "description": "json: { url, title, markdown, tokens_in, tokens_out, saved_pct }. md (default): raw text/markdown with token counts in x-tokens-in, x-tokens-out and x-saved-pct headers."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      },
      "title": {
       "type": "string"
      },
      "markdown": {
       "type": "string"
      },
      "saved_pct": {
       "type": "number"
      },
      "tokens_in": {
       "type": "number"
      },
      "tokens_out": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/paid-md-web-page-to-markdown-converter-88ba8efb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from paid-md.hihat.workers.dev](https://www.zero.xyz/host/paid-md.hihat.workers.dev/llms.txt)
