Skip to main content

WNBA — WNBA Stats API (stats.wnba.com) — Other: playbyplayv3–videostatus

wnba_stats_playbyplayv3​

GET /stats/playbyplayv3

Endpoint URL: GET https://stats.wnba.com/stats/playbyplayv3

Valid URL: https://stats.wnba.com/stats/playbyplayv3?EndPeriod=0&GameID=1022200034&StartPeriod=0

API ParameterPythonPatternRequiredNullableDescription
EndPeriodend_periodY
GameIDgame_idY
StartPeriodstart_periodY

Returns​

return_parsed=True (default) — the output of parse_wnba_stats_result_sets; pass return_as_pandas=True for a pandas.DataFrame.

No returns table is published for this endpoint: the committed capture tests/fixtures/wnba_stats/endpoints/playbyplayv3.json holds no rows, so parse_nba_stats_result_sets emits no columns; a capture with rows needs a residential IP (stats.nba.com / stats.wnba.com hang on datacenter IPs) and SDV_PY_NBA_STATS_LIVE=1.

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.
ImportErrorcurl_cffi is not installed -- stats.nba.com / stats.wnba.com block plain requests, so the transport needs it (pip install curl_cffi or sportsdataverse[all]).

Example​

wnba_stats_playbyplayv3()

wnba_stats_videostatus​

GET /stats/videostatus

Endpoint URL: GET https://stats.wnba.com/stats/videostatus

Valid URL: https://stats.wnba.com/stats/videostatus?GameDate=2022-06-10&LeagueID=10

API ParameterPythonPatternRequiredNullableDescription
GameDategame_dateY
LeagueIDleague_idY

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
game_idcharacterUnique game identifier.
game_datecharacterGame date (YYYY-MM-DD).
visitor_team_idintegerUnique identifier for visitor team.
visitor_team_citycharacterCity name of the visiting team.
visitor_team_namecharacterNickname of the visiting team.
visitor_team_abbreviationcharacterAbbreviation of the visiting team.
home_team_idintegerUnique identifier for the home team.
home_team_citycharacterHome team city / location.
home_team_namecharacterHome team name.
home_team_abbreviationcharacterHome team's three-letter tricode (e.g. 'PHI').
game_statusintegerGame status label.
game_status_textcharacterGame status display text (e.g. 'Final', '4:32 - 4th').
is_availableintegerFlag indicating whether game video is available in the league's stats video system.
pt_xyz_availableintegerPt xyz available.

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.
ImportErrorcurl_cffi is not installed -- stats.nba.com / stats.wnba.com block plain requests, so the transport needs it (pip install curl_cffi or sportsdataverse[all]).

Example​

wnba_stats_videostatus(league_id='10')