Skip to main content

Variable: espnNbaFranchise

const espnNbaFranchise: Wrapper<Row[], EspnFranchiseParams>

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

NBA — franchise (ESPN sports.core.api.espn.com (core v2)).

Endpoint: GET https://sports.core.api.espn.com/v2/sports/basketball/leagues/nba/franchises/{franchise_id}

Param​

params.franchise_id

number | string — the ESPN franchise id.

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.espnNbaFranchise({ franchise_id: '…' });

See​

https://js.sportsdataverse.org/docs/nba/reference/core#espnnbafranchise