{"slug":"text-openverbs-com-v1-diff-0c24f9","title":"Diff two texts","host":"text.openverbs.com","method":"POST","resource":"https://text.openverbs.com/v1/diff","category":"other","description":"Diff two texts. The default `unified` mode returns a unified-diff patch string; `lines`, `words`, and `chars` modes return a structured array of added/removed/unchanged parts.","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":602,"reported_calls_30d":4,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"a":"example","b":"example","mode":"unified"},"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":{"a":{"description":"The original text.","maxLength":1000000,"type":"string"},"b":{"description":"The changed text.","maxLength":1000000,"type":"string"},"mode":{"description":"Diff granularity, one of unified, lines, words, chars. Default unified.","enum":["unified","lines","words","chars"],"type":"string"}},"required":["a","b"],"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"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":602,"error":null}],"description_full":"Diff two texts. The default `unified` mode returns a unified-diff patch string; `lines`, `words`, and `chars` modes return a structured array of added/removed/unchanged parts.","last_updated":"2026-09-14T19:59:54.139Z","schemes":["exact"]}