Skip to main content

Variable: espnNbaNews

const espnNbaNews: Wrapper<Row[], EspnNewsParams>

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

NBA — news (ESPN site.api.espn.com).

Endpoint: GET https://site.api.espn.com/apis/site/v2/sports/basketball/nba/news

Param​

params.limit

number | string — the maximum number of items to return; default 50.

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

See​

https://js.sportsdataverse.org/docs/nba/reference/site#espnnbanews