Vai al contenuto
GET /v1/card-value

Point value of cards

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/canasta-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}