Vai al contenuto
GET /v1/average

Average + target

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/bowling-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Average = total pins ÷ games (leagues drop the fraction). To reach a target average over the next games, you need target × (total games) − current pins. Bowl above your average to raise it.",
        "inputs": {
            "games": 3,
            "total_pins": 450
        },
        "average": 150,
        "average_floor": 150
    },
    "meta": {
        "timestamp": "2026-06-06T07:13:58.618Z",
        "request_id": "4b168d38-4450-461d-b0c8-352b2265be0c"
    },
    "status": "ok",
    "message": "Average",
    "success": true
}