/v1/score
Winner points from leftover tiles
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/dominoes-api/v1/score" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dominoes-api/v1/score", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dominoes-api/v1/score");
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/dominoes-api/v1/score",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "When a player dominoes (or the game blocks), the winner scores the total pip count left in the opponents' hands. Some house rules (common in Muggins/All Fives) round that total to the nearest five — set round_to_five. Pass each opponent's remaining pip total as a list.",
"inputs": {
"opponent_pips": [
12,
8,
23
],
"round_to_five": false
},
"raw_total": 43,
"score_awarded": 43
},
"meta": {
"timestamp": "2026-06-06T15:30:45.391Z",
"request_id": "27873c02-fdda-486a-bbbb-1419e1327040"
},
"status": "ok",
"message": "Hand score",
"success": true
}