Naar de inhoud
GET /v1/exploding

Exploding die expectation

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/dicepool-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "An exploding die re-rolls and adds on its maximum face. Mean = ((sides+1)/2) × sides/(sides−1): a d6 averages 4.2 (vs 3.5), a d10 about 6.11.",
        "inputs": {
            "sides": 6
        },
        "average_normal": 3.5,
        "average_exploding": 4.2,
        "explode_chance_percent": 16.6667
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:06.995Z",
        "request_id": "80f841dd-bce7-44a6-9b0f-3d9bd13e61c6"
    },
    "status": "ok",
    "message": "Exploding dice",
    "success": true
}