Naar de inhoud
GET /v1/hand-score

Net hand score

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/canasta-api/v1/hand-score" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/canasta-api/v1/hand-score", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/canasta-api/v1/hand-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/canasta-api/v1/hand-score",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Hand score = the card points you melded, plus the canasta/red-three/going-out bonuses, minus the card points left in your hand when the round ends. Cards still in hand are a straight penalty, so meld them or go out. First team to 5,000 points wins the game.",
        "inputs": {
            "hand_points": 45,
            "bonus_points": 700,
            "melded_points": 200
        },
        "net_score": 855
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:41.649Z",
        "request_id": "16b34480-a09f-4859-b9ce-64aaec45f20f"
    },
    "status": "ok",
    "message": "Hand score",
    "success": true
}