{"openapi":"3.0.3","info":{"title":"DiagnoseURL API","version":"1.0.0","description":"Website intelligence API for autonomous AI agents. Paid endpoints are metered per-request via the x402 protocol (USDC on Base).","contact":{"name":"DiagnoseURL"}},"servers":[{"url":"https://diagnoseurl.vercel.app"}],"tags":[{"name":"free"},{"name":"paid"}],"paths":{"/health":{"get":{"tags":["free"],"summary":"Service health check","responses":{"200":{"description":"Service is healthy"}}}},"/api/v1/pricing":{"get":{"tags":["free"],"summary":"Machine-readable pricing","responses":{"200":{"description":"Current pricing for all endpoints"}}}},"/api/v1/capabilities":{"get":{"tags":["free"],"summary":"Capability description for AI agents","responses":{"200":{"description":"Capabilities and constraints"}}}},"/api/v1/quick":{"get":{"tags":["paid"],"summary":"Fast website check","description":"Fast website check: HTTP status, latency, final URL, HTTPS status, page title, SSL expiration. Price: $0.01 USDC via x402.","parameters":[{"name":"url","in":"query","required":true,"description":"Public http(s) URL to analyze.","schema":{"type":"string","format":"uri","maxLength":2048},"example":"https://example.com"}],"responses":{"200":{"description":"Quick probe result"},"400":{"description":"Invalid or disallowed URL"},"402":{"description":"Payment required. Standards-compliant x402 v2 payment requirements are returned base64-JSON-encoded in the `PAYMENT-REQUIRED` response header (the JSON body is empty). An x402-aware HTTP client (e.g. @x402/fetch) decodes this automatically, signs a payment, and retries the request with an `X-PAYMENT` header attached.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON: { x402Version, accepts: [{ scheme, network, amount, asset, payTo, maxTimeoutSeconds }] }","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","description":"Empty on a 402 response; see the PAYMENT-REQUIRED header."}}}},"502":{"description":"Target website unreachable"},"504":{"description":"Target website timed out"}}}},"/api/v1/probe":{"get":{"tags":["paid"],"summary":"Full website intelligence","description":"Full website intelligence: HTTP, DNS, TLS, headers, redirects, page metadata, security headers, robots.txt/sitemap discovery. Price: $0.02 USDC via x402.","parameters":[{"name":"url","in":"query","required":true,"description":"Public http(s) URL to analyze.","schema":{"type":"string","format":"uri","maxLength":2048},"example":"https://example.com"}],"responses":{"200":{"description":"Full probe result"},"400":{"description":"Invalid or disallowed URL"},"402":{"description":"Payment required. Standards-compliant x402 v2 payment requirements are returned base64-JSON-encoded in the `PAYMENT-REQUIRED` response header (the JSON body is empty). An x402-aware HTTP client (e.g. @x402/fetch) decodes this automatically, signs a payment, and retries the request with an `X-PAYMENT` header attached.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON: { x402Version, accepts: [{ scheme, network, amount, asset, payTo, maxTimeoutSeconds }] }","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","description":"Empty on a 402 response; see the PAYMENT-REQUIRED header."}}}},"502":{"description":"Target website unreachable"},"504":{"description":"Target website timed out"}}}},"/.well-known/agent.json":{"get":{"tags":["free"],"summary":"Agent-discovery document","responses":{"200":{"description":"Structured agent-discovery metadata"}}}},"/llms.txt":{"get":{"tags":["free"],"summary":"Plain-text documentation for LLMs","responses":{"200":{"description":"Plain-text docs"}}}}}}