Naar de inhoud
GET /v1/score

Winner points from leftover tiles

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}