Zum Inhalt springen
GET /v1/factorial

Factorial

Live testen

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

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

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

API-Key holen

Code-Snippets

curl "https://api.oanor.com/combinatorics-api/v1/factorial" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/combinatorics-api/v1/factorial", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/combinatorics-api/v1/factorial");
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/combinatorics-api/v1/factorial",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

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

{
    "data": {
        "note": "n! = 1·2·3···n (0! = 1). Returned exactly as a string; the floating-point approximation is null once it exceeds ~1.8×10^308.",
        "inputs": {
            "n": 10
        },
        "factorial": {
            "exact": "3628800",
            "digits": 7,
            "approximate": 3628800
        }
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:32.029Z",
        "request_id": "63d6cf92-61b6-4ef3-92ec-a2cb169b92c2"
    },
    "status": "ok",
    "message": "Factorial",
    "success": true
}