{"openapi":"3.1.0","info":{"title":"MarkdownOpt","description":"Strips scripts, ads, and noise; returns clean LLM-ready markdown plus token-reduction stats. $0.005 per call.","version":"1.0.0","x-tagline":"URL or HTML to LLM-optimised markdown."},"servers":[{"url":"https://markdownopt.melis.ai"}],"x-agentcash-guidance":{"llmsTxtUrl":"https://markdownopt.melis.ai/llms.txt","iconUrl":"https://markdownopt.melis.ai/favicon.svg","paymentProtocol":"x402","paymentNetwork":"base"},"paths":{"/markdown":{"post":{"operationId":"post__markdown","summary":"Convert a URL or raw HTML to clean LLM-optimised markdown","description":"Fetches the supplied URL (SSRF-hardened) or processes raw HTML locally. Strips scripts, ads, nav, and clutter via Readability + Turndown. Returns markdown and token-reduction metrics.","security":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"x-x402-resource":{"url":"https://markdownopt.melis.ai/markdown","serviceName":"MarkdownOpt","description":"Fetches the supplied URL (SSRF-hardened) or processes raw HTML locally. Strips scripts, ads, nav, and clutter via Readability + Turndown. Returns markdown and token-reduction metrics.","mimeType":"application/json","tags":["markdown","html","utility","content-extraction"],"iconUrl":"https://markdownopt.melis.ai/favicon.svg"},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Public URL to fetch and convert (http/https only)"},"html":{"type":"string","description":"Raw HTML string to convert (no outbound request)"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required — supply X-Payment header"}}}}}}