Zum Inhalt springen
GET /v1/card-value

Point value of cards

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Card points in Canasta: a joker is 50; aces and twos (wild) 20; eights through kings 10; fours through sevens and black threes 5; a red three is a 100-point bonus card. These are the values that count toward melds and the minimum opening meld — bonuses for canastas and going out are separate.",
        "inputs": {
            "cards": "joker,a,k,7,red3"
        },
        "breakdown": {
            "7": 5,
            "a": 20,
            "k": 10,
            "red3": 100,
            "joker": 50
        },
        "total_points": 185
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:41.562Z",
        "request_id": "bafee282-5f1e-43c6-b931-cbd3b97847bf"
    },
    "status": "ok",
    "message": "Card value",
    "success": true
}