{"slug":"rengi-dev-v1-web-tools-visual-diff-af9eb0","title":"Web tools","host":"rengi.dev","method":"POST","resource":"https://rengi.dev/v1/web-tools/visual-diff","category":"image","description":"Web tools: Visual regression check: screenshot a page and compare it with another URL (preview against production) or with an earlier screenshot. Returns the share of changed pixels, a same/different verdict, boxes around the changes and a diff image. Full schema: https://rengi.dev/v1/web-tools/sche","price_listed":0.04,"price_asked":0.04,"state":"answering","state_label":"Answering","checks_7d":6,"answered_7d":6,"latency_ms_median":899,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"baselineUrl":"https://rengi.dev/samples/page.html","device":"desktop","fullPage":true,"url":"https://rengi.dev/samples/page-v2.html"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"baselineImage":{"description":"Or an earlier screenshot as base64 PNG, taken with the same device and settings.","type":"string"},"baselineImageUrl":{"format":"uri","type":"string"},"baselineUrl":{"description":"Page to compare against: production against a preview deploy, for example.","format":"uri","maxLength":2000,"type":"string"},"dark":{"default":false,"type":"boolean"},"device":{"default":"desktop","description":"desktop 1280x800, laptop 1440x900, tablet 810x1080, phone 390x844 with a mobile browser identity.","enum":["desktop","laptop","tablet","phone"],"type":"string"},"failPercent":{"default":0.1,"description":"Above this share of changed pixels the pages count as different.","maximum":100,"minimum":0,"type":"number"},"fullPage":{"default":true,"type":"boolean"},"hide":{"default":[],"description":"CSS selectors to hide in both: timestamps, carousels, ads, anything that changes on its own.","items":{"maxLength":200,"type":"string"},"maxItems":20,"type":"array"},"threshold":{"default":0.1,"maximum":1,"minimum":0,"type":"number"},"url":{"description":"The page to check (the new version).","format":"uri","maxLength":2000,"type":"string"},"waitFor":{"description":"CSS selector that must be visible before the capture.","maxLength":200,"type":"string"},"waitMs":{"default":0,"description":"Extra wait after the page has loaded, for animations or late content.","maximum":10000,"minimum":0,"type":"integer"}},"required":["url"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":false,"properties":{"baseline":{"type":"string"},"baselineSize":{"additionalProperties":false,"properties":{"height":{"type":"number"},"width":{"type":"number"}},"required":["width","height"],"type":"object"},"changedPercent":{"type":"number"},"changedPixels":{"type":"number"},"current":{"description":"Screenshot of url. Save it to use as the baseline next time.","type":"string"},"currentSize":{"additionalProperties":false,"properties":{"height":{"type":"number"},"width":{"type":"number"}},"required":["width","height"],"type":"object"},"diff":{"type":"string"},"notes":{"items":{"type":"string"},"type":"array"},"regions":{"items":{"additionalProperties":false,"properties":{"height":{"type":"number"},"pixels":{"type":"number"},"width":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y","width","height","pixels"],"type":"object"},"type":"array"},"same":{"type":"boolean"},"sideBySide":{"type":"string"},"sizeMismatch":{"type":"boolean"}},"required":["same","changedPercent","changedPixels","sizeMismatch","regions","current","baseline","diff","sideBySide","currentSize","baselineSize","notes"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.04,"price_match":true,"latency_ms":892,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.04,"price_match":true,"latency_ms":907,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.04,"price_match":true,"latency_ms":934,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.04,"price_match":true,"latency_ms":877,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.04,"price_match":true,"latency_ms":927,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.04,"price_match":true,"latency_ms":888,"error":null}],"description_full":"Web tools: Visual regression check: screenshot a page and compare it with another URL (preview against production) or with an earlier screenshot. Returns the share of changed pixels, a same/different verdict, boxes around the changes and a diff image. Full schema: https://rengi.dev/v1/web-tools/schema","last_updated":"2026-11-21T15:12:00.795Z","schemes":["exact"]}