/v1/algorithms
Supported algorithms
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/checkdigit-api/v1/algorithms" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/checkdigit-api/v1/algorithms", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/checkdigit-api/v1/algorithms");
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/checkdigit-api/v1/algorithms",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"algorithms": [
{
"name": "luhn",
"description": "Mod 10 — credit cards, IMEI, many ID numbers.",
"check_length": 1
},
{
"name": "verhoeff",
"description": "Catches all single-digit and most transposition errors.",
"check_length": 1
},
{
"name": "damm",
"description": "Single-digit, detects all single and adjacent transposition errors.",
"check_length": 1
},
{
"name": "mod97",
"description": "ISO 7064 mod 97-10 — two check digits, as used by IBAN.",
"check_length": 2
}
]
},
"meta": {
"timestamp": "2026-06-03T01:09:43.298Z",
"request_id": "fae0e1cf-e045-451c-bc4d-0f3bcbf98b6f"
},
"status": "ok",
"message": "Supported algorithms",
"success": true
}