Vai al contenuto
GET /v1/meta

Spec

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/checkdigit-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

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