{"slug":"readfetch-com-v1-diff-e29b68","title":"Stateless change detection on readable page text (same HTTP-first extraction as ","host":"readfetch.com","method":"POST","resource":"https://readfetch.com/v1/diff","category":"commerce","description":"Stateless change detection on readable page text (same HTTP-first extraction as readfetch_text): fetch the URL, compare to a hash or prior body you store client-side, return changed/unchanged plus optional line diff. First call with no prior fields returns a baseline hash (see hint). `previous_hash`","price_listed":0.003,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":4,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"format":"text","timeout_s":30,"url":"https://example.com"},"bodyType":"json","description":"Stateless change detection. Send the hash you hold, get back whether it changed and a bounded diff.","method":"POST","type":"http"},"output_schema":{"$defs":{},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"properties":{"body":{"properties":{"format":{"default":"text","description":"Extraction flavour for this fetch and for the hash (default text). Must match how you built `previous_content` if you send it.","enum":["text","markdown"],"type":"string"},"previous_content":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Full prior extracted text (what you stored from readfetch_text/readfetch_diff). Required for `added`/`removed`/`diff` output; hash-only compares do not emit a line diff."},"previous_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`sha256:…` or bare hex from readfetch_diff, readfetch_probe `content_sha256`, or a prior text read. Omit on the first poll to establish a baseline hash in the response."},"timeout_s":{"default":30,"description":"Total budget for the whole call in seconds, both fetches included. 60 s is the ceiling on this route.","maximum":60,"minimum":1,"type":"number"},"url":{"description":"Public http(s) page to re-fetch and compare; must match the extraction used when you saved the hash (same `format`).","format":"uri","type":"string"}},"required":["url"],"type":"object"},"bodyType":{"const":"json"},"method":{"enum":["POST"]},"type":{"const":"http"}},"required":["type","method","body"],"type":"object"},"output":{"properties":{"added":{"items":{"type":"string"},"type":"array"},"billed":{"type":"boolean"},"changed":{"type":"boolean"},"diff":{"type":"string"},"hash":{"type":"string"},"hint":{"type":["string","null"]},"removed":{"items":{"type":"string"},"type":"array"},"status":{"type":"string"},"status_code":{"type":"integer"},"url":{"format":"uri","type":"string"}},"type":"object"}}},"history":[],"description_full":"Stateless change detection on readable page text (same HTTP-first extraction as readfetch_text): fetch the URL, compare to a hash or prior body you store client-side, return changed/unchanged plus optional line diff. First call with no prior fields returns a baseline hash (see hint). `previous_hash` alone detects change without a line diff; add `previous_content` when you need added/removed/diff. A no-change answer is still billable when text was delivered. Prefer readfetch_t","last_updated":"2026-11-22T19:15:37.8Z","schemes":["exact"]}