Skip to content
GET /v1/count

Partial count

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/cribbage-api

It works. Grab an API key and use it in your project.

Get an API key

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

Example response

A real response from this endpoint, captured by the latest 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
}