Skip to main content

Variable: espnNbaCdnSchedule

const espnNbaCdnSchedule: Wrapper<Row[], EspnCdnScheduleParams>

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

NBA — cdn schedule (ESPN cdn.espn.com (espn.com page data)).

Endpoint: GET https://cdn.espn.com/core/nba/schedule?xhr=1

Param​

params.date

number | string — Single date (YYYYMMDD). Ignored by cfb and nfl, which are week-oriented. Defaults to today.

Param​

params.week

number | string — Week number (cfb and nfl).

Param​

params.season

number | string — Season year that week belongs to (cfb and nfl).

Param​

params.season_type

number | string — Season phase for week: 1=preseason, 2=regular season, 3=postseason (cfb and nfl).

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.espnNbaCdnSchedule({});

See​

https://js.sportsdataverse.org/docs/nba/reference/cdn#espnnbacdnschedule