/v1/total
Bonus + grand total
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}