Zum Inhalt springen
GET /v1/count

Partial count

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/cribbage-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "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
}