/v1/count
Partial count
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/cribbage-api/v1/count" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cribbage-api/v1/count", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cribbage-api/v1/count");
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/cribbage-api/v1/count",
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": "Counts only fifteens, pairs and runs for any set of cards — handy for checking part of a hand or the running pile. Flush and his-nobs depend on the full hand and the starter, so use /v1/score for a complete count.",
"total": 8,
"inputs": {
"cards": [
"5H",
"5S",
"5C"
]
},
"breakdown": {
"runs": 0,
"pairs": 6,
"fifteens": 2
}
},
"meta": {
"timestamp": "2026-06-06T15:30:50.996Z",
"request_id": "d2a29307-3d88-4f25-9371-daa11dff0262"
},
"status": "ok",
"message": "Partial count",
"success": true
}