Skip to main content

WNBA recipes

The WNBA lives under sdv.wnba and exposes the full ESPN cross-league surface under espnWnba* method names — scoreboard, standings, team list, rosters, and the 21-section summary dispatcher. Every method takes a single options object; pass { parsed: true } for tidy rows, or omit it for the raw ESPN payload.

Today's scoreboard​

Raw payload first, then the same call tidied to one row per game:

import sdv from 'sportsdataverse';

const raw = await sdv.wnba.espnWnbaScoreboard({});
const games = await sdv.wnba.espnWnbaScoreboard({ parsed: true });
console.table(games);

Live and inline — edit dates (YYYYMMDD) and hit Run ▶:

Loading live cell…

Open in playground â–¶

League standings​

No parameters needed — the current season, tidied.

import sdv from 'sportsdataverse';

const standings = await sdv.wnba.espnWnbaStandings({ parsed: true });
console.table(standings);
Loading live cell…

Open in playground â–¶

Every team, then a roster​

espnWnbaTeamsSite lists the league's teams (grab an id); espnWnbaTeamRoster returns one row per player.

import sdv from 'sportsdataverse';

const teams = await sdv.wnba.espnWnbaTeamsSite({ parsed: true });
console.table(teams);

// team_id 9 is the Las Vegas Aces
const roster = await sdv.wnba.espnWnbaTeamRoster({ team_id: 9, parsed: true });
console.table(roster);

Open in playground â–¶

Drill into a game (summary dispatcher)​

The summary endpoint returns many sub-frames (boxscore, plays, leaders…). Pull one with section:

import sdv from 'sportsdataverse';

const sb = await sdv.wnba.espnWnbaScoreboard({});
const id = sb.events[0].id;

const boxscore = await sdv.wnba.espnWnbaSummary({
event_id: id,
parsed: true,
section: 'boxscore_team',
});
console.table(boxscore);

Open in playground â–¶

tip

Full method + parameter tables: WNBA reference. The men's and women's pro leagues share the same surface — see the NBA & WNBA guide for the NBA side.