Skip to main content

Variable: espnNbaPlayerSplits

const espnNbaPlayerSplits: Wrapper<Row[], EspnAthleteSplitsParams>

Defined in: src/generated/espn/nba.ts:576

NBA — player splits (ESPN site.web.api.espn.com (web v3)).

Endpoint: GET https://site.web.api.espn.com/apis/common/v3/sports/basketball/nba/athletes/{athlete_id}/splits

Param​

params.athlete_id

number | string — the ESPN athlete id.

Param​

params.season

number | string — the season year (the year the season ends for winter sports, e.g. 2025 for 2024-25).

Param​

params.parsed

boolean — when true, route the payload through this endpoint's tidy.js parser and return rows instead of raw JSON.

Returns​

Promise<Row[]> with { parsed: true } (rows are untyped: not parity-verified yet); the raw ESPN payload (unknown) otherwise.

Example​

await sdv.nba.espnNbaPlayerSplits({ athlete_id: '…' });

See​

https://js.sportsdataverse.org/docs/nba/reference/web#espnnbaplayersplits