Aller au contenu
GET /v1/hand-value

Best hand value

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/blackjack-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/blackjack-api/v1/hand-value" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/blackjack-api/v1/hand-value", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/blackjack-api/v1/hand-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/blackjack-api/v1/hand-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": "Aces count 11 unless that busts the hand, then 1 — a 'soft' total still has an ace counted as 11, so it can't bust on the next card. A two-card 21 is a blackjack (pays 3:2). Hit a soft hand freely; a hard 12–16 is the danger zone.",
        "soft": true,
        "total": 18,
        "inputs": {
            "cards": "a,7"
        },
        "is_bust": false,
        "is_blackjack": false
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:39.911Z",
        "request_id": "1c09f7f2-9fea-47e3-8bcc-56390d0e3416"
    },
    "status": "ok",
    "message": "Hand value",
    "success": true
}