/v1/algorithms
Supported algorithms
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}