Aller au contenu
GET /v1/meta

Spec

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/checkdigit-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/checkdigit-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/checkdigit-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/checkdigit-api/v1/meta");
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/meta",
    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": {
        "name": "Check Digit API",
        "notes": "Luhn, Verhoeff and Damm produce one check digit; mod 97-10 produces two. Spaces and hyphens in the input are ignored. Nothing is stored.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/generate",
                "params": {
                    "number": "the base number (required)",
                    "algorithm": "luhn|verhoeff|damm|mod97 (default luhn)"
                },
                "returns": "the check digit(s) and the full number"
            },
            {
                "path": "/v1/validate",
                "params": {
                    "number": "the number including its check digit (required)",
                    "algorithm": "default luhn"
                },
                "returns": "whether the check digit is correct"
            },
            {
                "path": "/v1/algorithms",
                "params": [],
                "returns": "the supported algorithms"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Generate and validate check digits with the standard algorithms — Luhn (mod 10), Verhoeff, Damm and ISO 7064 mod 97-10 — on any number. Use it to add or verify a check digit on IDs, references, account and membership numbers. Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-03T01:09:43.390Z",
        "request_id": "8822d220-dfba-4814-b544-432cfefabfbb"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}