Zum Inhalt springen
GET /v1/pool

Dice-pool success odds

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "Each die succeeds with probability (faces ≥ threshold)/sides; the number of successes is binomial. Expected successes = dice × that chance. Useful for World of Darkness, Shadowrun and other pool systems.",
        "inputs": {
            "dice": 6,
            "sides": 10,
            "target_successes": 3,
            "success_threshold": 7
        },
        "expected_successes": 2.4,
        "probability_exactly_percent": 27.648,
        "probability_at_least_percent": 45.568,
        "success_chance_per_die_percent": 40
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:07.099Z",
        "request_id": "6a7c350b-8656-41f0-baee-07f2d0e311da"
    },
    "status": "ok",
    "message": "Dice pool",
    "success": true
}