/v1/meta
Spec
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/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cribbage-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cribbage-api/v1/meta");
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/meta",
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": {
"notes": "Cards as rank+suit: A,2-9,T/10,J,Q,K and H,D,C,S (e.g. '5H', 'TD', 'JS'). Fifteens use face value (J/Q/K = 10, A = 1); runs use rank order. The crib only scores a 5-card flush. Maximum 29.",
"service": "cribbage-api",
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/count": "Fifteens, pairs and runs for any 1–8 cards (no flush/nobs).",
"GET /v1/score": "Score a 4-card hand with the starter card (set is_crib for the crib's flush rule)."
},
"description": "Cribbage hand scoring: fifteens, pairs, runs, flush and his-nobs for a hand plus the starter, and a partial count of any cards."
},
"meta": {
"timestamp": "2026-06-06T15:30:51.180Z",
"request_id": "3e830259-5e62-42a1-bd25-a141fe6ceec1"
},
"status": "ok",
"message": "Meta",
"success": true
}