Naar de inhoud
GET /v1/craps

Craps house edge

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "note": "Exact 36-outcome dice maths. Pass line 1.41%, don't pass 1.36%, field (12 pays 3:1) 2.78%, any seven 16.67% house edge.",
        "inputs": {
            "bet": "pass line"
        },
        "payout_to_1": 1,
        "win_probability": 0.492929,
        "lose_probability": 0.507071,
        "push_probability": 0,
        "house_edge_percent": 1.4141,
        "expected_value_per_unit": -0.014141
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:09.282Z",
        "request_id": "70b3674f-aa82-4bfa-bfb9-4ac9158104b7"
    },
    "status": "ok",
    "message": "Craps edge",
    "success": true
}