Skip to content
GET /v1/game

Apply a round to the running score

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/cornhole-api

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

Get an API key

Code snippets

curl "https://api.oanor.com/cornhole-api/v1/game" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cornhole-api/v1/game", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cornhole-api/v1/game");
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/game",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "won": true,
        "note": "Official ACL play is first to 21 or more at the end of an inning — no bust. Backyard 'exact 21' rules bust a player who goes over back to a set score (commonly 15 or 11); set exact and bust_to for that. Points to win counts down what is still needed.",
        "busted": false,
        "inputs": {
            "exact": false,
            "target": 21,
            "current_score": 18,
            "points_scored": 4
        },
        "new_score": 22,
        "points_to_win": 0
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:44.528Z",
        "request_id": "f9e97c17-245e-46a7-b0a5-e5fef212b00b"
    },
    "status": "ok",
    "message": "Game state",
    "success": true
}