Ir al contenido
GET /v1/round

Cancellation scoring for a round

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/cornhole-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}