Zum Inhalt springen
GET /v1/algorithms

Supported algorithms

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "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
}