/v1/unified
Unified diff (patch)
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/textdiff-api/v1/unified" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/textdiff-api/v1/unified", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/textdiff-api/v1/unified");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/textdiff-api/v1/unified",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"hunks": 1,
"patch": "--- old.txt\n+++ new.txt\n@@ -1,1 +1,1 @@\n-line one\\nline two\\nline three\n+line one\\nline 2\\nline three\n",
"identical": false
},
"meta": {
"timestamp": "2026-05-30T18:17:09.756Z",
"request_id": "21f138bb-4932-4a59-8e35-703a90e66677"
},
"status": "ok",
"message": "OK",
"success": true
}