Zum Inhalt springen
GET /v1/unified

Unified diff (patch)

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/textdiff-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}