Naar de inhoud
GET /v1/total

Bonus + grand total

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "note": "Score 63 or more in the upper section (an average of three of each number) for the 35-point bonus. Each Yahtzee after the first, if the Yahtzee box is already filled with 50, is worth a 100-point bonus.",
        "inputs": {
            "lower_total": 150,
            "upper_total": 63,
            "yahtzee_bonuses": 1
        },
        "grand_total": 348,
        "upper_bonus": 35,
        "upper_section_total": 98,
        "upper_needed_for_bonus": 0
    },
    "meta": {
        "timestamp": "2026-06-06T07:13:56.295Z",
        "request_id": "bdb64ed6-d04c-4832-9325-daa9c5b8c5fc"
    },
    "status": "ok",
    "message": "Grand total",
    "success": true
}