Zum Inhalt springen
GET /v1/craps

Craps house edge

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}