{"openapi":"3.1.0","info":{"title":"Website Change Evidence API","version":"1.1.0","description":"Read public webpages, capture citation-grade metadata and hashes, and detect live page changes deterministically.","x-guidance":"Use web-read-evidence for clean text plus metadata, redirects, phrase checks and hashes. Use compare-live to check whether a URL changed since a prior capture. Free capture and local compare routes remain available."},"servers":[{"url":"https://website-change-evidence.inboxtzdjqv.workers.dev"}],"paths":{"/v1/capture":{"post":{"operationId":"captureWebsiteEvidenceFree","summary":"Capture timestamped website evidence (free)","tags":["Free tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Public HTTPS URL"},"phrases":{"type":"array","maxItems":20,"items":{"type":"string"},"description":"Optional exact phrases to check"}}}}}},"responses":{"200":{"description":"Evidence capture"},"400":{"description":"Invalid URL"}}}},"/v1/compare":{"post":{"operationId":"compareStoredCapturesFree","summary":"Compare two prior capture objects (free)","tags":["Free tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["before","after"]}}}},"responses":{"200":{"description":"Change report"}}}},"/v1/web-read-evidence":{"post":{"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}]},"description":"Fetch a public HTTPS page and return clean text, redirect-aware metadata, hashes, exact phrase evidence, and source timestamps.","operationId":"readWebpageWithEvidence","summary":"Read a public webpage with clean text and citation-grade evidence","tags":["Web reading","Evidence"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Public HTTPS URL"},"phrases":{"type":"array","maxItems":20,"items":{"type":"string"},"description":"Optional exact phrases to check"}}},"example":{"url":"https://example.com","phrases":["Example Domain"]}}}},"responses":{"200":{"description":"Fresh webpage evidence"},"400":{"description":"Invalid URL"},"402":{"description":"Payment Required"}}}},"/v1/compare-live":{"post":{"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.003"},"protocols":[{"x402":{}}]},"description":"Fetch a public HTTPS page now and compare its status, final URL, title, canonical, headers, hashes and phrase evidence with a prior snapshot.","operationId":"checkLiveWebsiteChange","summary":"Check whether a webpage changed since a prior snapshot","tags":["Change detection","Evidence"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url","before"],"properties":{"url":{"type":"string","format":"uri"},"before":{"type":"object"},"phrases":{"type":"array","maxItems":20,"items":{"type":"string"}}}},"example":{"url":"https://example.com","before":{"status":200,"sha256":"prior-sha256"},"phrases":["Example Domain"]}}}},"responses":{"200":{"description":"Fresh capture and change report"},"400":{"description":"Invalid input"},"402":{"description":"Payment Required"}}}}}}