/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/cornhole-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cornhole-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cornhole-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/cornhole-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": "On the board = 1, in the hole = 3; cancellation scoring; game to 21 (ACL: no bust; backyard exact-21 busts to 15/11). PPR = points ÷ rounds. Standard ACL rules; house rules vary.",
"service": "cornhole-api",
"endpoints": {
"GET /v1/ppr": "Points-per-round and in-the-hole percentage stats.",
"GET /v1/game": "Apply a round's points to a running score with the win/bust rule.",
"GET /v1/meta": "This document.",
"GET /v1/round": "Cancellation scoring for one round from each player's bags on board and in the hole."
},
"description": "Cornhole (bag-toss) scoring: cancellation scoring for a round, applying a round to the game with win/bust rules, and the PPR and in-the-hole stats."
},
"meta": {
"timestamp": "2026-06-06T15:30:44.788Z",
"request_id": "461808f3-e303-456f-b511-8f48aadc99f5"
},
"status": "ok",
"message": "Meta",
"success": true
}