I'm trying to use the nba-api stats scoreboardv2 class to fetch the All-Star 2022 game results, however it looks like the All Star game isn't registered as a game.
I tried fetching the scoreboard for the date of the all star game:
scoreboard = scoreboardv2.ScoreboardV2(game_date='2022-02-22')
print(scoreboard.get_dict())
Which lead to a successful response containing no games:
{
'resource': 'scoreboardV2',
'parameters': {
'GameDate': '2022-02-22',
'LeagueID': '00',
'DayOffset': '0'
},
'resultSets': [
{
'name': 'GameHeader',
'headers': [
'GAME_DATE_EST',
'GAME_SEQUENCE',
'GAME_ID',
'GAME_STATUS_ID',
'GAME_STATUS_TEXT',
'GAMECODE',
'HOME_TEAM_ID',
'VISITOR_TEAM_ID',
'SEASON',
'LIVE_PERIOD',
'LIVE_PC_TIME',
'NATL_TV_BROADCASTER_ABBREVIATION',
'HOME_TV_BROADCASTER_ABBREVIATION',
'AWAY_TV_BROADCASTER_ABBREVIATION',
'LIVE_PERIOD_TIME_BCAST',
'ARENA_NAME',
'WH_STATUS',
'WNBA_COMMISSIONER_FLAG'
],
'rowSet': [
]
},
{
'name': 'LineScore',
'headers': [
'GAME_DATE_EST',
'GAME_SEQUENCE',
'GAME_ID',
'TEAM_ID',
'TEAM_ABBREVIATION',
'TEAM_CITY_NAME',
'TEAM_NAME',
'TEAM_WINS_LOSSES',
'PTS_QTR1',
'PTS_QTR2',
'PTS_QTR3',
'PTS_QTR4',
'PTS_OT1',
'PTS_OT2',
'PTS_OT3',
'PTS_OT4',
'PTS_OT5',
'PTS_OT6',
'PTS_OT7',
'PTS_OT8',
'PTS_OT9',
'PTS_OT10',
'PTS',
'FG_PCT',
'FT_PCT',
'FG3_PCT',
'AST',
'REB',
'TOV'
],
'rowSet': [
]
},
}
Would anyone know how I can find the AllStar game stats?
Cheers!