{"version":1,"resources":["https://clearmd.clearmd.workers.dev/v1/read","https://clearmd.clearmd.workers.dev/v1/extract","https://clearmd.clearmd.workers.dev/v1/pdf","https://clearmd.clearmd.workers.dev/v1/feed","https://clearmd.clearmd.workers.dev/v1/links","https://clearmd.clearmd.workers.dev/v1/domain","https://clearmd.clearmd.workers.dev/v1/image","https://clearmd.clearmd.workers.dev/v1/fx","https://clearmd.clearmd.workers.dev/v1/weather","https://clearmd.clearmd.workers.dev/v1/qr","https://clearmd.clearmd.workers.dev/v1/csv","https://clearmd.clearmd.workers.dev/v1/score","https://clearmd.clearmd.workers.dev/v1/headers","https://clearmd.clearmd.workers.dev/v1/cron/next","https://clearmd.clearmd.workers.dev/v1/diff","https://clearmd.clearmd.workers.dev/v1/evm/decode","https://clearmd.clearmd.workers.dev/v1/time/convert"],"instructions":"Every resource returns HTTP 402 with x402 v2 terms (USDC on Base, $0.001 to $0.002 per call). Failed calls are not charged. OpenAPI: https://clearmd.clearmd.workers.dev/openapi.json. MCP: https://clearmd.clearmd.workers.dev/mcp.","service":"ClearMD","serviceVersion":"1.1.0","description":"Pay-per-call tools for AI agents. Failed calls are not charged.","network":"eip155:8453","asset":"USDC","routes":[{"method":"GET","path":"/v1/read","price":"$0.001","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.","atomic":"1000"},{"method":"POST","path":"/v1/read","price":"$0.001","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.","atomic":"1000"},{"method":"GET","path":"/v1/extract","price":"$0.002","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.","atomic":"2000"},{"method":"POST","path":"/v1/extract","price":"$0.002","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.","atomic":"2000"},{"method":"GET","path":"/v1/pdf","price":"$0.002","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.","atomic":"2000"},{"method":"POST","path":"/v1/pdf","price":"$0.002","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.","atomic":"2000"},{"method":"GET","path":"/v1/feed","price":"$0.002","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.","atomic":"2000"},{"method":"POST","path":"/v1/feed","price":"$0.002","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.","atomic":"2000"},{"method":"GET","path":"/v1/links","price":"$0.002","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.","atomic":"2000"},{"method":"POST","path":"/v1/links","price":"$0.002","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.","atomic":"2000"},{"method":"GET","path":"/v1/domain","price":"$0.002","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.","atomic":"2000"},{"method":"POST","path":"/v1/domain","price":"$0.002","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.","atomic":"2000"},{"method":"GET","path":"/v1/image","price":"$0.002","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.","atomic":"2000"},{"method":"POST","path":"/v1/image","price":"$0.002","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.","atomic":"2000"},{"method":"GET","path":"/v1/fx","price":"$0.002","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.","atomic":"2000"},{"method":"POST","path":"/v1/fx","price":"$0.002","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.","atomic":"2000"},{"method":"GET","path":"/v1/weather","price":"$0.002","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.","atomic":"2000"},{"method":"POST","path":"/v1/weather","price":"$0.002","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.","atomic":"2000"},{"method":"GET","path":"/v1/qr","price":"$0.002","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.","atomic":"2000"},{"method":"POST","path":"/v1/qr","price":"$0.002","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.","atomic":"2000"},{"method":"POST","path":"/v1/csv","price":"$0.002","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.","atomic":"2000"},{"method":"POST","path":"/v1/score","price":"$0.002","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.","atomic":"2000"},{"method":"GET","path":"/v1/headers","price":"$0.002","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.","atomic":"2000"},{"method":"POST","path":"/v1/headers","price":"$0.002","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.","atomic":"2000"},{"method":"POST","path":"/v1/cron/next","price":"$0.001","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.","atomic":"1000"},{"method":"POST","path":"/v1/diff","price":"$0.001","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.","atomic":"1000"},{"method":"POST","path":"/v1/evm/decode","price":"$0.001","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.","atomic":"1000"},{"method":"POST","path":"/v1/time/convert","price":"$0.001","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.","atomic":"1000"}]}