Variable: espnNbaSeasonType
constespnNbaSeasonType:Wrapper<Row[],EspnSeasonTypeParams>
Defined in: src/generated/espn/nba.ts:2970
NBA — season type (ESPN sports.core.api.espn.com (core v2)).
Endpoint: GET https://sports.core.api.espn.com/v2/sports/basketball/leagues/nba/seasons/{season}/types/{season_type}
Param
params.season
number | string — the season year (the year the season ends for winter sports, e.g. 2025 for 2024-25).
Param
params.season_type
number | string — the season type: 1 preseason, 2 regular season, 3 postseason.
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.espnNbaSeasonType({ season: '…', season_type: '…' });
See
https://js.sportsdataverse.org/docs/nba/reference/core#espnnbaseasontype