{"slug":"shop-lordevo-com-api-quick-text-diff-36422b","title":"Text diff","host":"shop.lordevo.com","method":"GET","resource":"https://shop.lordevo.com/api/quick/text-diff","category":"other","description":"Text diff: unified diff, hunks and similarity of two texts: Compares two texts you send and returns whether they are identical, a similarity score, counts of added, removed and unchanged lines (or words or characters), plus a unified diff and hunks in line mode or a change list in word and char mode","price_listed":0.002,"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":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"after":"name: shop\nprice: 0.002\nnetwork: base\n","before":"name: shop\nprice: 0.003\nnetwork: base\n"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"after":{"description":"The new text, up to 200,000 characters (POST for long text)","maxLength":200000,"type":"string"},"before":{"description":"The original text, up to 200,000 characters (POST JSON {\"before\": \"...\", \"after\": \"...\"} for long text)","type":"string"},"context":{"default":"3","description":"Unchanged lines around each change in line mode, 0-20 (default 3)","pattern":"^\\d{1,2}$","type":"string"},"ignore_case":{"default":"no","description":"Ignore upper/lower case","enum":["yes","no"],"type":"string"},"ignore_whitespace":{"default":"no","description":"Line mode: ignore leading/trailing whitespace","enum":["yes","no"],"type":"string"},"mode":{"default":"line","description":"Compare by line (default, unified diff), word or character","enum":["line","word","char"],"type":"string"}},"required":["before","after"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"changes":{"items":{"properties":{"type":{"enum":["added","removed","unchanged"],"type":"string"},"value":{"type":"string"}},"type":"object"},"type":"array"},"hunks":{"items":{"properties":{"lines":{"items":{"type":"string"},"type":"array"},"new_lines":{"type":"integer"},"new_start":{"type":"integer"},"old_lines":{"type":"integer"},"old_start":{"type":"integer"}},"type":"object"},"type":"array"},"identical":{"type":"boolean"},"mode":{"enum":["line","word","char"],"type":"string"},"similarity":{"maximum":1,"minimum":0,"type":"number"},"stats":{"properties":{"added":{"type":"integer"},"removed":{"type":"integer"},"unchanged":{"type":"integer"}},"type":"object"},"tool":{"type":"string"},"unified":{"type":"string"},"unit":{"type":"string"}},"required":["tool","identical","similarity","stats"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Text diff: unified diff, hunks and similarity of two texts: Compares two texts you send and returns whether they are identical, a similarity score, counts of added, removed and unchanged lines (or words or characters), plus a unified diff and hunks in line mode or a change list in word and char mode","last_updated":"2026-10-30T14:24:27.279Z","schemes":["exact"]}