Vai al contenuto
GET /v1/stableford

Stableford points (hole)

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "note": "Stableford: net par scores 2 points, each stroke better +1 (birdie 3, eagle 4), each worse −1 (bogey 1), and net double bogey or worse scores 0. Net score = gross − strokes received.",
        "inputs": {
            "par": 4,
            "gross": 5,
            "strokes_received": 1
        },
        "result": "par",
        "net_score": 4,
        "net_to_par": 0,
        "stableford_points": 2
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:08.531Z",
        "request_id": "acf1e80d-d6fe-46fc-b0d6-4b1167654b11"
    },
    "status": "ok",
    "message": "Stableford points",
    "success": true
}