/v1/effective-fg
Effective field-goal percentage
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/basketball-api/v1/effective-fg" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/basketball-api/v1/effective-fg", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/basketball-api/v1/effective-fg");
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/effective-fg",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"note": "Effective field-goal percentage credits a three-pointer for being worth 50 % more than a two: eFG% = (field goals made + 0.5 × threes made) ÷ field-goal attempts × 100. 9 makes including 3 threes on 18 attempts is 58.3 %, versus a raw 50 % field-goal percentage — the gap is the value of the long ball. It is the simplest way to compare a high-volume three-point shooter with an inside scorer.",
"inputs": {
"fga": 18,
"fgm": 9,
"fg3m": 3
},
"effective_fg_pct": 58.33
},
"meta": {
"timestamp": "2026-06-07T08:17:50.654Z",
"request_id": "f4b7da63-a1f4-4d58-abe1-8e943d565b4e"
},
"status": "ok",
"message": "Effective FG",
"success": true
}