Vai al contenuto
GET /v1/true-shooting

True shooting percentage

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

Risposta di esempio

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

{
    "data": {
        "note": "True shooting percentage weighs every way a player scores — twos, threes and free throws — into one number: TS% = points ÷ (2 × (field-goal attempts + 0.44 × free-throw attempts)) × 100. The 0.44 approximates how many possessions a trip to the line really uses. 25 points on 18 field goals and 6 free throws is about 60.6 % — an efficient night; league-average is near 56–58 %, and elite scorers top 62 %.",
        "inputs": {
            "fga": 18,
            "fta": 6,
            "points": 25
        },
        "true_shooting_pct": 60.56,
        "scoring_possessions": 20.64
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:50.864Z",
        "request_id": "c73e50a8-42a3-4508-a098-95f3d397ea0a"
    },
    "status": "ok",
    "message": "True shooting",
    "success": true
}