Ir al contenido
GET /v1/strategy

Basic-strategy action

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/blackjack-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "note": "Basic strategy for 4–8 decks, dealer stands on soft 17, double-after-split allowed. Double and split apply only to a fresh two-card hand; otherwise hit or stand. Following basic strategy holds the house edge to about half a percent — but it is a guide, not a guarantee on any single hand.",
        "soft": false,
        "basis": "pair",
        "total": 16,
        "action": "P",
        "inputs": {
            "cards": "8,8",
            "dealer": "10"
        },
        "action_label": "split"
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:40.018Z",
        "request_id": "e13f818b-8f86-4b61-839d-dd14cb565de6"
    },
    "status": "ok",
    "message": "Basic strategy",
    "success": true
}