Skip to main content

Variable: espnWnbaTeamHistory

const espnWnbaTeamHistory: Wrapper<Row[], EspnTeamHistoryParams>

Defined in: src/generated/espn/wnba.ts:3497

WNBA — team history (ESPN site.api.espn.com).

Endpoint: GET https://site.api.espn.com/apis/site/v2/sports/basketball/wnba/teams/{team_id}/history

Param​

params.team_id

number | string — the ESPN team id (see espn_<league>_teams).

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.wnba.espnWnbaTeamHistory({ team_id: '…' });

See​

https://js.sportsdataverse.org/docs/wnba/reference/site#espnwnbateamhistory