Skip to content
GET /v1/exploding

Exploding die expectation

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/dicepool-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest 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
}