Vai al contenuto
GET /v1/meta

Spec

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "notes": "TS% = PTS/(2·(FGA+0.44·FTA))·100; eFG% = (FGM+0.5·3PM)/FGA·100; Game Score = Hollinger formula. For baseball use a baseball API; for cricket a cricket API.",
        "service": "basketball-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/game-score": "Hollinger Game Score from a box-score line.",
            "GET /v1/effective-fg": "Effective field-goal % from FGM, threes made and FGA.",
            "GET /v1/true-shooting": "True shooting % from points, FGA and FTA."
        },
        "description": "Basketball efficiency stats: true shooting %, effective field-goal %, and Hollinger Game Score."
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:50.959Z",
        "request_id": "6e014b2c-4c02-4153-8387-ab2a7a7ad51e"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}