PAGEMD

Web page to clean Markdown for AI agents, $0.001 per call

PageMD fetches a public web page and returns its main content as clean Markdown, with the title, description, canonical URL, word count and a prompt-injection check. It can also list a page's links or look up a domain (DNS, SPF/DMARC, RDAP). Each call is paid on the spot in USDC with the x402 protocol, on Base or Solana. There is no signup, no API key and no subscription, and you are only charged when the call succeeds.

Try free (5 calls/day)Pay for one call from your walletx402 catalog (JSON)

Endpoints & prices

Base URL: https://pagemd-x402.m-zikriz.workers.dev. Prices are in USDC (6 decimals) and are read live from the server's 402 answer. If a page cannot be read (blocked by robots.txt, an HTTP error, a PDF or other unsupported type), you get an error and the payment is not settled.

RequestWhat it returnsPrice (USDC)
GET /v1/read?url=…
optional max_chars (500–100000, default 20000)
The page as clean Markdown (main content, links made absolute, tables kept), plus title, description, language, canonical URL, author and date when present, word count, and a heuristic prompt-injection check that also looks at hidden text$0.001
GET /v1/links?url=…Page metadata (title, description, canonical, OpenGraph image, RSS/Atom feeds) and every internal and external link with its anchor text$0.001
GET /v1/domain?domain=…DNS A, AAAA, MX, NS, TXT, CNAME and CAA records; SPF record, DMARC record and policy; RDAP registrar, creation and expiry dates, age in days, status codes, nameservers and DNSSEC flag$0.002

Free trial

Add ?free=1 (or the header X-Free-Trial: 1) to any endpoint to call it without paying. You get 5 free calls per IP address per UTC day, shared across the three endpoints. Failed calls are not counted.

curl "https://pagemd-x402.m-zikriz.workers.dev/v1/read?url=https://en.wikipedia.org/wiki/HTTP_402&max_chars=2000&free=1"

How an agent pays (x402)

  1. Call an endpoint, e.g. GET https://pagemd-x402.m-zikriz.workers.dev/v1/read?url=https://example.com.
  2. The server answers HTTP 402 Payment Required. The body and the PAYMENT-REQUIRED header list the accepted options: scheme exact, USDC on eip155:8453 (Base) or solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp, the amount and the payee. The body also has a plain-language howToPay block.
  3. Your x402 client (for example @x402/fetch with @x402/evm or @x402/svm) signs a payment for that amount and repeats the request with the PAYMENT-SIGNATURE header (X-PAYMENT also works).
  4. The payment is verified with the facilitator (Coinbase CDP for Base, PayAI for Solana), PageMD runs, and the payment is settled only if the call succeeds. The settlement receipt comes back in the PAYMENT-RESPONSE header.

Base payments need no ETH: the facilitator submits the transfer. A tested Node example for paying any x402 endpoint is in this guide.

MCP (remote server)

PageMD is also a remote MCP server (streamable HTTP, JSON responses) at https://pagemd-x402.m-zikriz.workers.dev/mcp with three tools: read_url, page_links and domain_intel. Paid tools use x402 over MCP: a call without payment returns the payment requirements; retry with params._meta["x402/payment"] set to an x402 v2 payment payload.

{"mcpServers": {"pagemd": {"url": "https://pagemd-x402.m-zikriz.workers.dev/mcp"}}}

What PageMD does and does not do

Machine-readable