NBAreact icon indicating copy to clipboard operation
NBAreact copied to clipboard

Look at differences between /games endpoint

Open jbkuczma opened this issue 7 years ago • 1 comments

Currently the ScoresScreen is populated with data from data.nba.net. There is another endpoint from stats.nba.com that provides game info as well, sometimes with more information. This ticket is a place to gather info for if I want to change the source or even extend to include data from both sources.

Example endpoints:

Source URL Notable Data
data.nba.net https://data.nba.net/prod/v2/20180507/scoreboard.json - Faster data updates (not verified, based on observation)
- All data for a game is contained in one object
- Playoff matchup information
stats.nba.com http://stats.nba.com/stats/scoreboardV2/?gamedate=2018-05-07&leagueid=00&dayoffset=0 - TeamLeaders for game
- Playoff matchup information
- Last Meeting
- Win Probability (empty)

jbkuczma avatar May 08 '18 01:05 jbkuczma

Playoff data

  • data.nba.net
"playoffs":{
    "roundNum":"2",
    "confName":"West",
    "seriesId":"20",
    "seriesSummaryText":"HOU leads 3-1",
    "isSeriesCompleted":false,
    "gameNumInSeries":"4",
    "isIfNecessary":false,
    "vTeam":{"seedNum":"1","seriesWin":"3","isSeriesWinner":false},
    "hTeam":{"seedNum":"5","seriesWin":"1","isSeriesWinner":false}
}
  • stats.nba.com
    {
        "name": "SeriesStandings",
        "headers":["GAME_ID","HOME_TEAM_ID","VISITOR_TEAM_ID","GAME_DATE_EST","HOME_TEAM_WINS","HOME_TEAM_LOSSES","SERIES_LEADER"],
        "rowSet":[
            ["0041700234",1610612740,1610612744,"2018-05-06T00:00:00",1,3,"Golden State"],      
            ["0041700224",1610612762,1610612745,"2018-05-06T00:00:00",1,3,"Houston"]
        ]
    }

jbkuczma avatar May 08 '18 02:05 jbkuczma