Zum Inhalt springen
GET /v1/score

Winner points from leftover tiles

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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