{"openapi":"3.1.0","info":{"title":"ClearMD","version":"1.1.0","description":"Pay-per-call tools for AI agents. x402 USDC on Base. Each call costs $0.001 to $0.002. Failed calls are not charged.","x-guidance":"Use GET /v1/read?url=<public url> to get clean Markdown of a page ($0.001). Try GET /v1/read/preview?url=<url> free first. Other tools: /v1/extract, /v1/pdf, /v1/feed, /v1/links, /v1/domain, /v1/image, /v1/fx, /v1/weather, /v1/headers (GET or POST JSON), and POST /v1/qr, /v1/csv, /v1/score, /v1/cron/next, /v1/diff, /v1/evm/decode, /v1/time/convert. Unpaid calls return 402 with x402 terms; pay in USDC on Base and retry. Invalid input returns 400 and is not charged. MCP: POST /mcp."},"servers":[{"url":"https://clearmd.clearmd.workers.dev"}],"paths":{"/v1/read":{"get":{"operationId":"readUrl","summary":"Read a public page as Markdown ($0.001 per call)","description":"Fetch a public http(s) URL and return clean Markdown of the main page content. Strips navigation, ads, scripts and footers. Does not run JavaScript, so client-side-only pages may come back thin or empty. Respects robots.txt. Invalid, blocked, or failed reads are not charged. Costs $0.001 USDC via x402. Failed reads are not charged.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri","examples":["https://example.com/"]}},{"name":"maxChars","in":"query","required":false,"schema":{"type":"integer","minimum":100,"maximum":200000}}],"responses":{"200":{"description":"Clean Markdown of the main content","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"url":{"type":"string"},"finalUrl":{"type":"string"},"status":{"type":"integer"},"contentType":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"lang":{"type":["string","null"]},"canonical":{"type":["string","null"]},"markdown":{"type":"string","description":"Main page content as Markdown"},"chars":{"type":"integer"},"wordCount":{"type":"integer"},"truncated":{"type":"boolean"},"sourceBytes":{"type":"integer"},"redirects":{"type":"integer"},"fetchMs":{"type":"integer"},"robots":{"type":"string"},"fetchedAt":{"type":"string"},"tier":{"type":"string","enum":["paid","preview"]}},"required":["ok","url","markdown"]},"example":{"ok":true,"url":"https://example.com/","finalUrl":"https://example.com/","status":200,"contentType":"text/html; charset=UTF-8","title":"Example Domain","description":null,"lang":"en","canonical":"https://example.com/","markdown":"# Example Domain\n\nThis domain is for use in documentation examples without needing permission. Avoid relying on it for testing and monitoring. More information is available at https://www.iana.org/domains/example.","chars":210,"wordCount":32,"truncated":false,"sourceBytes":528,"redirects":0,"fetchMs":80,"robots":"allowed","fetchedAt":"2026-11-22T15:00:00.000Z","tier":"paid"}}}},"400":{"description":"Invalid or private URL (not charged)"},"402":{"description":"Payment required (x402)"},"403":{"description":"robots.txt disallows the fetch (not charged)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}},"post":{"operationId":"readUrlPost","summary":"Read a public page as Markdown (JSON body) ($0.001 per call)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Absolute public http(s) URL of the page to read","examples":["https://example.com/"]},"maxChars":{"type":"integer","minimum":100,"maximum":200000,"description":"Optional cap on returned Markdown length. Default 200000."}},"required":["url"]}}}},"responses":{"200":{"description":"Clean Markdown of the main content"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/v1/read/preview":{"get":{"operationId":"previewUrl","summary":"Free truncated preview","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri"}}],"responses":{"200":{"description":"First 2000 characters, free"}},"security":[]}},"/health":{"get":{"operationId":"health","responses":{"200":{"description":"Liveness"}},"security":[]}},"/v1/extract":{"get":{"operationId":"extract_page","summary":"HTML to structured JSON ($0.002 per call)","description":"Fetch a public http(s) HTML page and return structured JSON: title, meta and Open Graph tags, JSON-LD, headings, links, emails, images, and tables. Does not run JavaScript. Respects robots.txt. Failed or invalid fetches are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri","examples":["https://example.com/"]}},{"name":"maxLinks","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"HTML to structured JSON","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"title":{"type":["string","null"]},"links":{"type":"array"},"jsonld":{"type":"array"}},"required":["ok"]},"example":{"ok":true,"title":"Example Domain","links":[{"href":"https://www.iana.org/domains/example","text":"Learn more","internal":false}],"javascriptRendering":false}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}},"post":{"operationId":"extract_pagePost","summary":"HTML to structured JSON ($0.002 per call)","description":"Fetch a public http(s) HTML page and return structured JSON: title, meta and Open Graph tags, JSON-LD, headings, links, emails, images, and tables. Does not run JavaScript. Respects robots.txt. Failed or invalid fetches are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","examples":["https://example.com/"]},"maxLinks":{"type":"integer","minimum":1,"maximum":200}},"required":["url"]}}}},"responses":{"200":{"description":"HTML to structured JSON","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"title":{"type":["string","null"]},"links":{"type":"array"},"jsonld":{"type":"array"}},"required":["ok"]},"example":{"ok":true,"title":"Example Domain","links":[{"href":"https://www.iana.org/domains/example","text":"Learn more","internal":false}],"javascriptRendering":false}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/v1/pdf":{"get":{"operationId":"pdf_text","summary":"PDF to text ($0.002 per call)","description":"Extract embedded text from a public PDF URL or a base64 PDF body. No OCR, so scanned or image-only pages may come back empty. Respects robots.txt. Max 5 MB and the first 50 pages. Failed or unreadable files are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","parameters":[{"name":"url","in":"query","required":false,"schema":{"type":"string","format":"uri","examples":["https://www.w3.org/WAI/WCAG21/Techniques/pdf/img/table-word.pdf"]}},{"name":"base64","in":"query","required":false,"schema":{"type":"string","description":"Raw PDF bytes as base64, instead of a URL"}},{"name":"maxPages","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50}},{"name":"maxChars","in":"query","required":false,"schema":{"type":"integer","minimum":100,"maximum":200000}}],"responses":{"200":{"description":"PDF to text","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"text":{"type":"string"},"pages":{"type":"integer"}},"required":["ok"]},"example":{"ok":true,"text":"Hello","pages":1,"pagesExtracted":1,"truncated":false,"note":"Extracts embedded text only. No OCR."}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}},"post":{"operationId":"pdf_textPost","summary":"PDF to text ($0.002 per call)","description":"Extract embedded text from a public PDF URL or a base64 PDF body. No OCR, so scanned or image-only pages may come back empty. Respects robots.txt. Max 5 MB and the first 50 pages. Failed or unreadable files are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","examples":["https://www.w3.org/WAI/WCAG21/Techniques/pdf/img/table-word.pdf"]},"base64":{"type":"string","description":"Raw PDF bytes as base64, instead of a URL"},"maxPages":{"type":"integer","minimum":1,"maximum":50},"maxChars":{"type":"integer","minimum":100,"maximum":200000}},"required":[]}}}},"responses":{"200":{"description":"PDF to text","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"text":{"type":"string"},"pages":{"type":"integer"}},"required":["ok"]},"example":{"ok":true,"text":"Hello","pages":1,"pagesExtracted":1,"truncated":false,"note":"Extracts embedded text only. No OCR."}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/v1/feed":{"get":{"operationId":"read_feed","summary":"RSS and Atom reader ($0.002 per call)","description":"Fetch a public RSS, Atom, or JSON Feed URL and return title, link, dates, and summaries for the latest items. Does not render HTML or follow every item link. Respects robots.txt. Failed fetches are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri","examples":["https://www.rfc-editor.org/rfcrss.xml"]}},{"name":"maxItems","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"RSS and Atom reader","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"format":{"type":"string"},"items":{"type":"array"}},"required":["ok"]},"example":{"ok":true,"format":"rss","title":"Example Feed","items":[{"title":"Item","link":"https://example.com/1","published":"2026-11-22","summary":"..."}]}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}},"post":{"operationId":"read_feedPost","summary":"RSS and Atom reader ($0.002 per call)","description":"Fetch a public RSS, Atom, or JSON Feed URL and return title, link, dates, and summaries for the latest items. Does not render HTML or follow every item link. Respects robots.txt. Failed fetches are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","examples":["https://www.rfc-editor.org/rfcrss.xml"]},"maxItems":{"type":"integer","minimum":1,"maximum":50}},"required":["url"]}}}},"responses":{"200":{"description":"RSS and Atom reader","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"format":{"type":"string"},"items":{"type":"array"}},"required":["ok"]},"example":{"ok":true,"format":"rss","title":"Example Feed","items":[{"title":"Item","link":"https://example.com/1","published":"2026-11-22","summary":"..."}]}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/v1/links":{"get":{"operationId":"extract_links","summary":"Sitemap and link extractor ($0.002 per call)","description":"Fetch a public sitemap.xml or HTML page and return the listed URLs. Sitemap indexes are listed, not crawled. HTML extraction uses <a href> and <link> tags only and does not run JavaScript. Respects robots.txt. Failed fetches are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri","examples":["https://example.com/sitemap.xml"]}},{"name":"maxUrls","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500}},{"name":"sameOriginOnly","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Sitemap and link extractor","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"kind":{"type":"string"},"urls":{"type":"array"}},"required":["ok"]},"example":{"ok":true,"kind":"page","urlCount":1,"urls":[{"href":"https://www.iana.org/domains/example","internal":false,"source":"a"}]}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}},"post":{"operationId":"extract_linksPost","summary":"Sitemap and link extractor ($0.002 per call)","description":"Fetch a public sitemap.xml or HTML page and return the listed URLs. Sitemap indexes are listed, not crawled. HTML extraction uses <a href> and <link> tags only and does not run JavaScript. Respects robots.txt. Failed fetches are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","examples":["https://example.com/sitemap.xml"]},"maxUrls":{"type":"integer","minimum":1,"maximum":500},"sameOriginOnly":{"type":"boolean"}},"required":["url"]}}}},"responses":{"200":{"description":"Sitemap and link extractor","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"kind":{"type":"string"},"urls":{"type":"array"}},"required":["ok"]},"example":{"ok":true,"kind":"page","urlCount":1,"urls":[{"href":"https://www.iana.org/domains/example","internal":false,"source":"a"}]}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/v1/domain":{"get":{"operationId":"domain_lookup","summary":"DNS, RDAP, and TLS lookup ($0.002 per call)","description":"Look up a public domain: DNS records (A, AAAA, MX, TXT, NS, CNAME, SOA) via Cloudflare DNS-over-HTTPS, public RDAP registration data, and an HTTPS/TLS probe. Live certificate fields are included when the Node TLS API is available. This is not a blocklist or a security verdict. Private hosts are rejected and not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","examples":["example.com"]}}],"responses":{"200":{"description":"DNS, RDAP, and TLS lookup","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"dns":{"type":"object"},"rdap":{"type":"object"},"tls":{"type":"object"}},"required":["ok"]},"example":{"ok":true,"domain":"example.com","dns":{"records":{"A":[{"data":"93.184.215.14"}]}},"rdap":{"found":true},"tls":{"reachable":true}}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}},"post":{"operationId":"domain_lookupPost","summary":"DNS, RDAP, and TLS lookup ($0.002 per call)","description":"Look up a public domain: DNS records (A, AAAA, MX, TXT, NS, CNAME, SOA) via Cloudflare DNS-over-HTTPS, public RDAP registration data, and an HTTPS/TLS probe. Live certificate fields are included when the Node TLS API is available. This is not a blocklist or a security verdict. Private hosts are rejected and not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","examples":["example.com"]}},"required":["domain"]}}}},"responses":{"200":{"description":"DNS, RDAP, and TLS lookup","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"dns":{"type":"object"},"rdap":{"type":"object"},"tls":{"type":"object"}},"required":["ok"]},"example":{"ok":true,"domain":"example.com","dns":{"records":{"A":[{"data":"93.184.215.14"}]}},"rdap":{"found":true},"tls":{"reachable":true}}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/v1/image":{"get":{"operationId":"image_meta","summary":"Image metadata ($0.002 per call)","description":"Fetch a public image and return format, pixel dimensions, and EXIF/metadata when present. Does not resize, transcode, or run OCR. Respects robots.txt. Max 2 MB. Failed or invalid fetches are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri","examples":["https://www.w3.org/Icons/w3c_home.png"]}}],"responses":{"200":{"description":"Image metadata","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"format":{"type":["string","null"]},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]}},"required":["ok"]},"example":{"ok":true,"format":"png","width":72,"height":48,"exif":null}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}},"post":{"operationId":"image_metaPost","summary":"Image metadata ($0.002 per call)","description":"Fetch a public image and return format, pixel dimensions, and EXIF/metadata when present. Does not resize, transcode, or run OCR. Respects robots.txt. Max 2 MB. Failed or invalid fetches are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","examples":["https://www.w3.org/Icons/w3c_home.png"]}},"required":["url"]}}}},"responses":{"200":{"description":"Image metadata","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"format":{"type":["string","null"]},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]}},"required":["ok"]},"example":{"ok":true,"format":"png","width":72,"height":48,"exif":null}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/v1/fx":{"get":{"operationId":"fx_rate","summary":"ECB foreign exchange rates ($0.002 per call)","description":"Convert an amount between fiat currencies using the latest European Central Bank euro foreign exchange reference rates. These are official daily reference rates, usually published around 16:00 CET on TARGET business days, not a live mid-market quote. Fiat only. Failed or unknown-currency requests are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","examples":["EUR"]}},{"name":"to","in":"query","required":true,"schema":{"type":"string","examples":["USD"]}},{"name":"amount","in":"query","required":false,"schema":{"type":"number","examples":[100]}}],"responses":{"200":{"description":"ECB foreign exchange rates","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"result":{"type":"number"},"rate":{"type":"number"},"date":{"type":"string"},"attribution":{"type":"string"}},"required":["ok"]},"example":{"ok":true,"from":"EUR","to":"USD","amount":100,"result":108,"rate":1.08,"date":"2026-11-21","attribution":"European Central Bank"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}},"post":{"operationId":"fx_ratePost","summary":"ECB foreign exchange rates ($0.002 per call)","description":"Convert an amount between fiat currencies using the latest European Central Bank euro foreign exchange reference rates. These are official daily reference rates, usually published around 16:00 CET on TARGET business days, not a live mid-market quote. Fiat only. Failed or unknown-currency requests are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","examples":["EUR"]},"to":{"type":"string","examples":["USD"]},"amount":{"type":"number","examples":[100]}},"required":["from","to"]}}}},"responses":{"200":{"description":"ECB foreign exchange rates","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"result":{"type":"number"},"rate":{"type":"number"},"date":{"type":"string"},"attribution":{"type":"string"}},"required":["ok"]},"example":{"ok":true,"from":"EUR","to":"USD","amount":100,"result":108,"rate":1.08,"date":"2026-11-21","attribution":"European Central Bank"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/v1/weather":{"get":{"operationId":"weather_forecast","summary":"Weather forecast ($0.002 per call)","description":"Return a current, hourly, and daily weather forecast for a latitude and longitude, summarised from MET Norway Locationforecast 2.0. Data is CC BY 4.0; attribution is included in every response. Coordinates are rounded to 4 decimals and identical requests are cached. This is a forecast, not a live weather station reading. Failed upstream requests are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","examples":[40.75]}},{"name":"lon","in":"query","required":true,"schema":{"type":"number","examples":[-73.99]}}],"responses":{"200":{"description":"Weather forecast","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"current":{"type":"object"},"hourly":{"type":"array"},"daily":{"type":"array"},"attribution":{"type":"string"}},"required":["ok"]},"example":{"ok":true,"current":{"airTemperatureC":8.2,"symbolNextHour":"partlycloudy_day"},"attribution":"Weather forecast from The Norwegian Meteorological Institute"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}},"post":{"operationId":"weather_forecastPost","summary":"Weather forecast ($0.002 per call)","description":"Return a current, hourly, and daily weather forecast for a latitude and longitude, summarised from MET Norway Locationforecast 2.0. Data is CC BY 4.0; attribution is included in every response. Coordinates are rounded to 4 decimals and identical requests are cached. This is a forecast, not a live weather station reading. Failed upstream requests are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lat":{"type":"number","examples":[40.75]},"lon":{"type":"number","examples":[-73.99]}},"required":["lat","lon"]}}}},"responses":{"200":{"description":"Weather forecast","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"current":{"type":"object"},"hourly":{"type":"array"},"daily":{"type":"array"},"attribution":{"type":"string"}},"required":["ok"]},"example":{"ok":true,"current":{"airTemperatureC":8.2,"symbolNextHour":"partlycloudy_day"},"attribution":"Weather forecast from The Norwegian Meteorological Institute"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/v1/qr":{"get":{"operationId":"make_qr","summary":"QR code (SVG) ($0.002 per call)","description":"Encode text or a URL as an SVG QR code (error correction L/M/Q/H). Local compute, no tracking, no URL shortening. Invalid or oversized input is not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","parameters":[{"name":"text","in":"query","required":true,"schema":{"type":"string","maxLength":1000,"examples":["https://example.com/"]}},{"name":"ecc","in":"query","required":false,"schema":{"type":"string","enum":["L","M","Q","H"]}}],"responses":{"200":{"description":"QR code (SVG)","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"svg":{"type":"string"},"size":{"type":"integer"}},"required":["ok"]},"example":{"ok":true,"ecc":"M","version":2,"size":29,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" ...></svg>"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}},"post":{"operationId":"make_qrPost","summary":"QR code (SVG) ($0.002 per call)","description":"Encode text or a URL as an SVG QR code (error correction L/M/Q/H). Local compute, no tracking, no URL shortening. Invalid or oversized input is not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","maxLength":1000,"examples":["https://example.com/"]},"ecc":{"type":"string","enum":["L","M","Q","H"]}},"required":["text"]}}}},"responses":{"200":{"description":"QR code (SVG)","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"svg":{"type":"string"},"size":{"type":"integer"}},"required":["ok"]},"example":{"ok":true,"ecc":"M","version":2,"size":29,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" ...></svg>"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/v1/csv":{"post":{"operationId":"csv_jsonPost","summary":"CSV to JSON and back ($0.002 per call)","description":"Convert CSV text to JSON records, or an array of objects/arrays to CSV. Delimiter is auto-detected for CSV input (comma, tab, semicolon, or pipe). Local compute. Oversized or invalid input is not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"csv":{"type":"string"},"json":{"description":"Array of objects or array of arrays"},"delimiter":{"type":"string","maxLength":1},"header":{"type":"boolean"}},"required":[]}}}},"responses":{"200":{"description":"CSV to JSON and back","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"format":{"type":"string"},"records":{"type":"array"},"csv":{"type":"string"}},"required":["ok"]},"example":{"ok":true,"format":"json","records":[{"name":"widget","qty":"2"}],"rows":1,"columns":2,"delimiter":",","header":true}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/v1/score":{"post":{"operationId":"readabilityPost","summary":"Readability scores ($0.002 per call)","description":"Score English-oriented readability of a text: Flesch Reading Ease, Flesch-Kincaid Grade, Automated Readability Index, and Coleman-Liau, plus word, sentence, and syllable counts. Heuristic only, not a human judgment of quality. Local compute. Oversized input is not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","examples":["The cat sat on the mat. It was a sunny day."]}},"required":["text"]}}}},"responses":{"200":{"description":"Readability scores","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"fleschReadingEase":{"type":"number"},"fleschKincaidGrade":{"type":"number"},"words":{"type":"integer"}},"required":["ok"]},"example":{"ok":true,"words":11,"sentences":2,"fleschReadingEase":100,"fleschKincaidGrade":0.5,"note":"Heuristic English-oriented scores."}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/v1/headers":{"get":{"operationId":"http_headers","summary":"HTTP headers and redirects ($0.002 per call)","description":"Fetch a public URL and return the final status, redirect chain, response headers, and whether common security headers are present. This is not a vulnerability scan or a grade. Does not run JavaScript. Respects robots.txt. Failed fetches are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri","examples":["https://example.com/"]}}],"responses":{"200":{"description":"HTTP headers and redirects","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"status":{"type":"integer"},"redirectChain":{"type":"array"},"securityPresent":{"type":"array"}},"required":["ok"]},"example":{"ok":true,"status":200,"https":true,"redirectChain":["https://example.com/"],"securityPresent":[],"securityMissing":["content-security-policy"]}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}},"post":{"operationId":"http_headersPost","summary":"HTTP headers and redirects ($0.002 per call)","description":"Fetch a public URL and return the final status, redirect chain, response headers, and whether common security headers are present. This is not a vulnerability scan or a grade. Does not run JavaScript. Respects robots.txt. Failed fetches are not charged. Costs $0.002 USDC via x402. Failed calls are not charged.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","examples":["https://example.com/"]}},"required":["url"]}}}},"responses":{"200":{"description":"HTTP headers and redirects","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"status":{"type":"integer"},"redirectChain":{"type":"array"},"securityPresent":{"type":"array"}},"required":["ok"]},"example":{"ok":true,"status":200,"https":true,"redirectChain":["https://example.com/"],"securityPresent":[],"securityMissing":["content-security-policy"]}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]}}},"/v1/cron/next":{"post":{"operationId":"cron_next","summary":"Cron next runs ($0.001 per call)","description":"Parse a standard 5-field cron expression (minute hour day-of-month month day-of-week; lists, ranges, steps, JAN-DEC/SUN-SAT names, @daily-style macros) and return the next 1-50 run times in an IANA time zone, as UTC and local ISO 8601. DST-aware: wall times skipped by a spring-forward gap do not fire. Day-of-month and day-of-week use Vixie OR semantics. Local compute, no network. Invalid expressions are not charged. Costs $0.001 USDC via x402.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expression":{"type":"string","maxLength":200,"description":"5-field cron: \"minute hour day-of-month month day-of-week\", or @hourly/@daily/@weekly/@monthly/@yearly","examples":["*/15 9-17 * * MON-FRI"]},"timezone":{"type":"string","maxLength":64,"description":"IANA time zone the schedule runs in, e.g. America/New_York. Default UTC.","examples":["America/New_York"]},"count":{"type":"integer","minimum":1,"maximum":50,"description":"How many upcoming runs to return (1-50). Default 5."},"from":{"type":"string","maxLength":40,"description":"ISO 8601 instant to search after (with Z or offset). Default: now.","examples":["2026-11-22T15:00:00Z"]}},"required":["expression"]},"example":{"expression":"0 9 * * MON-FRI","timezone":"America/New_York","count":2,"from":"2026-11-22T15:00:00Z"}}}},"responses":{"200":{"description":"Cron next runs","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"expression":{"type":"string"},"timezone":{"type":"string"},"from":{"type":"string"},"runs":{"type":"array","items":{"type":"object","properties":{"utc":{"type":"string"},"local":{"type":"string"}},"required":["utc","local"]}},"exhausted":{"type":"boolean","description":"true if fewer than count runs exist in the next 8 years"}},"required":["ok","runs"]},"example":{"ok":true,"expression":"0 9 * * MON-FRI","timezone":"America/New_York","from":"2026-11-22T15:00:00.000Z","runs":[{"utc":"2026-11-23T14:00:00.000Z","local":"2026-11-23T09:00:00-05:00"},{"utc":"2026-11-24T14:00:00.000Z","local":"2026-11-24T09:00:00-05:00"}],"exhausted":false}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"},"413":{"description":"Input too large (not charged)"},"422":{"description":"Valid input that could not be processed (not charged)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/v1/diff":{"post":{"operationId":"text_diff","summary":"Text diff ($0.001 per call)","description":"Line-by-line diff of two texts (Myers algorithm, same minimal edit script as git/GNU diff for most inputs). Returns a unified diff with 0-20 context lines plus added/removed/unchanged counts. Options: ignore whitespace, ignore case, custom header labels. Limits: 200,000 characters and 20,000 lines per text, at most 2,000 added+removed lines. Local compute, no network. Oversized or invalid input is not charged. Costs $0.001 USDC via x402.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"before":{"type":"string","maxLength":200000,"description":"Original text","examples":["a\nb\nc\n"]},"after":{"type":"string","maxLength":200000,"description":"New text","examples":["a\nB\nc\n"]},"context":{"type":"integer","minimum":0,"maximum":20,"description":"Unchanged lines of context around each hunk (0-20). Default 3."},"ignoreWhitespace":{"type":"boolean","description":"Compare lines with whitespace runs collapsed and trimmed. Default false."},"ignoreCase":{"type":"boolean","description":"Compare lines case-insensitively. Default false."},"fromLabel":{"type":"string","maxLength":200},"toLabel":{"type":"string","maxLength":200}},"required":["before","after"]},"example":{"before":"a\nb\nc\n","after":"a\nB\nc\n"}}}},"responses":{"200":{"description":"Text diff","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"identical":{"type":"boolean"},"stats":{"type":"object","properties":{"added":{"type":"integer"},"removed":{"type":"integer"},"unchanged":{"type":"integer"},"linesBefore":{"type":"integer"},"linesAfter":{"type":"integer"}}},"unified":{"type":"string","description":"Unified diff text; empty when identical"},"hunks":{"type":"integer"},"options":{"type":"object"}},"required":["ok","identical","stats","unified"]},"example":{"ok":true,"identical":false,"stats":{"added":1,"removed":1,"unchanged":2,"linesBefore":3,"linesAfter":3},"unified":"--- a\n+++ b\n@@ -1,3 +1,3 @@\n a\n-b\n+B\n c\n","hunks":1,"options":{"context":3,"ignoreWhitespace":false,"ignoreCase":false}}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"},"413":{"description":"Input too large (not charged)"},"422":{"description":"Valid input that could not be processed (not charged)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/v1/evm/decode":{"post":{"operationId":"evm_decode","summary":"EVM calldata / event log decoder ($0.001 per call)","description":"Decode EVM transaction calldata or an event log (topics + data) against an ABI you supply (JSON ABI or human-readable signatures). Returns the function or event name, canonical signature, 4-byte/32-byte selector, and named arguments (uint/int as decimal strings, addresses EIP-55 checksummed). Also checksums a list of addresses. Runs locally with viem: no RPC, no chain lookups, no signature database, so the ABI must contain the item. Invalid input is not charged. Costs $0.001 USDC via x402.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"calldata":{"type":"string","pattern":"^0x([0-9a-fA-F]{2})*$","description":"Transaction input data (0x + 4-byte selector + ABI-encoded args). Max 64 KiB."},"log":{"type":"object","properties":{"topics":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"string"}},"data":{"type":"string"}},"required":["topics","data"],"description":"An event log to decode instead of calldata"},"abi":{"type":["array","string"],"description":"JSON ABI (array or JSON string), max 300 items"},"signatures":{"type":"array","items":{"type":"string"},"maxItems":300,"description":"Human-readable signatures instead of a JSON ABI, e.g. [\"function transfer(address to, uint256 amount)\", \"event Transfer(address indexed from, address indexed to, uint256 value)\"]","examples":[["function transfer(address to, uint256 amount)"]]},"addresses":{"type":"array","items":{"type":"string"},"maxItems":100,"description":"Optional addresses to validate and return in EIP-55 checksum form"}},"required":[]},"example":{"calldata":"0xa9059cbb000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda0291300000000000000000000000000000000000000000000000000000000000003e8","signatures":["function transfer(address to, uint256 amount)"]}}}},"responses":{"200":{"description":"EVM calldata / event log decoder","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"kind":{"type":["string","null"],"enum":["function","event",null]},"name":{"type":["string","null"]},"signature":{"type":["string","null"]},"selector":{"type":["string","null"]},"args":{"type":"array","items":{"type":"object","properties":{"name":{"type":["string","null"]},"type":{"type":"string"},"value":{}}}},"addresses":{"type":"array","items":{"type":"object","properties":{"input":{"type":"string"},"valid":{"type":"boolean"},"checksum":{"type":["string","null"]},"checksumOk":{"type":["boolean","null"]}}}}},"required":["ok"]},"example":{"ok":true,"kind":"function","name":"transfer","signature":"transfer(address,uint256)","selector":"0xa9059cbb","args":[{"name":"to","type":"address","value":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},{"name":"amount","type":"uint256","value":"1000"}],"addresses":[]}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"},"413":{"description":"Input too large (not charged)"},"422":{"description":"Valid input that could not be processed (not charged)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}},"/v1/time/convert":{"post":{"operationId":"time_convert","summary":"Time zone convert, add, diff ($0.001 per call)","description":"Convert a date-time between IANA time zones, optionally add a duration (calendar units follow the wall clock, so +1 day across DST keeps the same local time; months clamp to month end), and diff against a second date-time. Reports offset, abbreviation, weekday, and whether a local time fell in a DST gap or fold. Uses the server's built-in tz data (Intl), years 1900-2200, no network. Invalid input is not charged. Costs $0.001 USDC via x402.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"datetime":{"type":"string","maxLength":40,"description":"ISO 8601 date-time. With Z/offset it is an exact instant; without one it is wall-clock time in `timezone`. Unix seconds also accepted.","examples":["2026-11-22T10:00"]},"timezone":{"type":"string","maxLength":64,"description":"IANA zone used to read an offset-less datetime and for calendar math in `add`. Default UTC.","examples":["America/New_York"]},"to":{"type":"array","maxItems":20,"items":{"type":"string"},"description":"IANA zones to express the result in (max 20).","examples":[["Europe/London","Asia/Tokyo"]]},"add":{"type":"object","description":"Optional duration: years/months/weeks/days move the wall clock in `timezone`; hours/minutes/seconds are exact elapsed time.","properties":{"years":{"type":"integer"},"months":{"type":"integer"},"weeks":{"type":"integer"},"days":{"type":"integer"},"hours":{"type":"integer"},"minutes":{"type":"integer"},"seconds":{"type":"integer"}},"additionalProperties":false},"diffTo":{"type":"string","maxLength":40,"description":"Optional second date-time (same rules as datetime). Returns diffTo minus result."}},"required":["datetime"]},"example":{"datetime":"2026-11-22T10:00","timezone":"America/New_York","to":["Asia/Tokyo"],"add":{"days":1}}}}},"responses":{"200":{"description":"Time zone convert, add, diff","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"input":{"type":"object"},"result":{"type":"object","properties":{"utc":{"type":"string"},"unix":{"type":"number"},"disambiguation":{"type":"string"}}},"zones":{"type":"array","items":{"type":"object"}},"diff":{"type":["object","null"]}},"required":["ok","result","zones"]},"example":{"ok":true,"input":{"utc":"2026-11-22T15:00:00.000Z","disambiguation":"exact"},"result":{"utc":"2026-11-23T15:00:00.000Z","unix":1795446000,"disambiguation":"exact"},"zones":[{"timezone":"America/New_York","local":"2026-11-23T10:00:00-05:00","offset":"-05:00","abbreviation":"EST","weekday":"Monday"},{"timezone":"Asia/Tokyo","local":"2026-11-24T00:00:00+09:00","offset":"+09:00","abbreviation":"GMT+9","weekday":"Tuesday"}],"diff":null}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402)"},"413":{"description":"Input too large (not charged)"},"422":{"description":"Valid input that could not be processed (not charged)"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]}}}}}