/v1/total
Bonus + grand total
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}