/v1/compare
Combined fuzzy comparison
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/soundex-api/v1/compare" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/soundex-api/v1/compare", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/soundex-api/v1/compare");
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/soundex-api/v1/compare",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Combines Soundex (sounds alike) and Levenshtein (spelled alike). likely_match is true if the Soundex codes agree or the similarity is at least 0.8.",
"inputs": {
"a": "Robert",
"b": "Rupert"
},
"soundex_a": "R163",
"soundex_b": "R163",
"similarity": 0.666667,
"likely_match": true,
"soundex_match": true,
"similarity_percent": 66.6667,
"levenshtein_distance": 2
},
"meta": {
"timestamp": "2026-06-05T19:50:12.398Z",
"request_id": "125a7115-9b95-4aac-a588-e1de777f9e47"
},
"status": "ok",
"message": "Fuzzy compare",
"success": true
}