/v1/card-value
Point value of cards
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}