{"openapi":"3.0.3","info":{"title":"PageMD x402","version":"1.0.0","description":"Web page to clean Markdown, page links/metadata and domain intel for AI agents. Pay per call with x402 (USDC on Base or Solana).","contact":{"email":"support@manhourplan.com","url":"https://manhourplan.com/pagemd/"}},"servers":[{"url":"https://pagemd-x402.m-zikriz.workers.dev"}],"x-discovery":{"ownershipProofs":["0x7Dc83a4a626459e0ACB309C86dC0fEE0cC5052FC","5ukK2Z4qF2MwNSCQpnBDCXuuiFatAC9wn9cWz41famqg"]},"paths":{"/v1/read":{"get":{"operationId":"read_url","summary":"Read a public web page as clean Markdown for LLMs","description":"Read a public web page as clean Markdown for LLMs: title, description, canonical URL, main content as Markdown, word count and prompt-injection flags. Respects robots.txt; not charged if the page cannot be read. Price: $0.001 USDC per call via x402 v2 (Base or Solana). Add ?free=1 for a free trial (5/IP/day).","parameters":[{"name":"url","in":"query","required":true,"description":"Public http(s) URL of the page to read","schema":{"type":"string"},"example":"https://en.wikipedia.org/wiki/HTTP_402"},{"name":"max_chars","in":"query","required":false,"description":"Optional cap on returned Markdown length (500-100000, default 20000)","schema":{"type":"string"},"example":"20000"}],"responses":{"200":{"description":"Result (after x402 settlement or free trial)","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"url":{"type":"string"},"final_url":{"type":"string"},"status":{"type":"integer"},"content_type":{"type":"string"},"meta":{"type":"object"},"markdown":{"type":"string"},"stats":{"type":"object"},"injection":{"type":"object","properties":{"risk":{"type":"string","enum":["none","medium","high"]},"flags":{"type":"array","items":{"type":"object"}}}},"robots":{"type":"object"}},"required":["ok"]},"example":{"ok":true,"result":{"ok":true,"url":"https://en.wikipedia.org/wiki/HTTP_402","final_url":"https://en.wikipedia.org/wiki/HTTP_402","status":200,"content_type":"text/html","meta":{"title":"List of HTTP status codes","description":null,"lang":"en","canonical":"https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#402"},"markdown":"# List of HTTP status codes\n\nThis article lists standard and notable non-standard HTTP response status codes...","stats":{"word_count":5900,"markdown_chars":20000,"truncated":true},"injection":{"risk":"none","flags":[]},"robots":{"checked":true,"allowed":true}}}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402 v2). See PAYMENT-REQUIRED header."},"403":{"description":"robots.txt disallows (not charged)"},"502":{"description":"Upstream failure (not charged)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}],"acceptsNetworks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]}}},"/v1/links":{"get":{"operationId":"page_links","summary":"Page metadata and links","description":"Page metadata and links: title, description, canonical, OpenGraph image, language, RSS/Atom feeds, plus every internal and external link with its anchor text. Respects robots.txt; not charged on failure. Price: $0.001 USDC per call via x402 v2 (Base or Solana). Add ?free=1 for a free trial (5/IP/day).","parameters":[{"name":"url","in":"query","required":true,"description":"Public http(s) URL of the page","schema":{"type":"string"},"example":"https://blog.cloudflare.com/"}],"responses":{"200":{"description":"Result (after x402 settlement or free trial)","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"url":{"type":"string"},"final_url":{"type":"string"},"meta":{"type":"object"},"internal":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"text":{"type":"string"}}}},"external":{"type":"array","items":{"type":"object"}},"counts":{"type":"object"}},"required":["ok"]},"example":{"ok":true,"result":{"ok":true,"url":"https://blog.cloudflare.com/","final_url":"https://blog.cloudflare.com/","meta":{"title":"The Cloudflare Blog","feeds":["https://blog.cloudflare.com/rss/"]},"internal":[{"url":"https://blog.cloudflare.com/tag/ai/","text":"AI"}],"external":[{"url":"https://www.cloudflare.com/","text":"Cloudflare"}],"counts":{"internal":94,"external":54}}}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402 v2). See PAYMENT-REQUIRED header."},"403":{"description":"robots.txt disallows (not charged)"},"502":{"description":"Upstream failure (not charged)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}],"acceptsNetworks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]}}},"/v1/domain":{"get":{"operationId":"domain_intel","summary":"Domain intel in one call","description":"Domain intel in one call: DNS A, AAAA, MX, NS, TXT, CNAME and CAA records, SPF and DMARC policy, plus RDAP registrar, creation and expiry dates, age in days and status codes. Price: $0.002 USDC per call via x402 v2 (Base or Solana). Add ?free=1 for a free trial (5/IP/day).","parameters":[{"name":"domain","in":"query","required":true,"description":"Domain name, e.g. example.com (a URL is also accepted; its host is used)","schema":{"type":"string"},"example":"manhourplan.com"}],"responses":{"200":{"description":"Result (after x402 settlement or free trial)","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"domain":{"type":"string"},"dns":{"type":"object"},"email":{"type":"object","properties":{"has_mx":{"type":"boolean"},"spf":{"type":["string","null"]},"dmarc":{"type":["string","null"]},"dmarc_policy":{"type":["string","null"]}}},"rdap":{"type":"object","properties":{"registrar":{"type":["string","null"]},"created":{"type":["string","null"]},"expires":{"type":["string","null"]},"age_days":{"type":["integer","null"]},"days_to_expiry":{"type":["integer","null"]},"status":{"type":"array","items":{"type":"string"}}}}},"required":["ok"]},"example":{"ok":true,"result":{"ok":true,"domain":"example.com","dns":{"A":["93.184.215.14"],"MX":["0 ."],"NS":["a.iana-servers.net."]},"email":{"has_mx":true,"spf":"v=spf1 -all","dmarc":"v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s","dmarc_policy":"reject"},"rdap":{"registrar":"RESERVED-Internet Assigned Numbers Authority","created":"1995-08-14T04:00:00Z","expires":"2026-08-13T04:00:00Z","age_days":11420,"days_to_expiry":300,"status":["client delete prohibited"]}}}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402 v2). See PAYMENT-REQUIRED header."},"403":{"description":"robots.txt disallows (not charged)"},"502":{"description":"Upstream failure (not charged)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}],"acceptsNetworks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]}}}}}