Vai al contenuto
GET /v1/player

Player profile

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "player": {
            "id": "1966",
            "age": 41,
            "name": "LeBron James",
            "team": "Los Angeles Lakers",
            "active": true,
            "height": "6' 9\"",
            "jersey": "23",
            "status": "active",
            "weight": "250 lbs",
            "headshot": "https://a.espncdn.com/i/headshots/nba/players/full/1966.png",
            "position": "F",
            "last_name": "James",
            "experience": "22nd Season",
            "first_name": "LeBron",
            "date_of_birth": "30/12/1984",
            "position_name": "Forward"
        }
    },
    "meta": {
        "timestamp": "2026-06-07T16:46:35.379Z",
        "request_id": "c3e81e13-d3df-4ec0-9e79-a122d62a2a09"
    },
    "status": "ok",
    "message": "Player retrieved successfully",
    "success": true
}