/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}