Zum Inhalt springen
GET /v1/round

Cancellation scoring for a round

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/cornhole-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Cornhole uses cancellation scoring: a bag on the board is 1 point, in the hole is 3. Each round only the higher player scores, and only the difference — so 7 against 5 nets 2 points to the leader. A tied round scores nothing for either side.",
        "inputs": {
            "p1_in_hole": 1,
            "p2_in_hole": 2,
            "p1_on_board": 2,
            "p2_on_board": 1
        },
        "p1_raw": 5,
        "p2_raw": 7,
        "round_winner": "p2",
        "points_awarded": 2
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:44.722Z",
        "request_id": "c2046f92-f561-418a-9a0a-a46830ab4eed"
    },
    "status": "ok",
    "message": "Round score",
    "success": true
}