Ir al contenido
GET /v1/effective-fg

Effective field-goal percentage

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/basketball-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}