seemethere / nba_py

Python client for NBA statistics located at stats.nba.com
BSD 3-Clause "New" or "Revised" License
1.05k stars 255 forks source link

data.nba.com endpoint with more location information for play by play #70

Open vladiki opened 7 years ago

vladiki commented 7 years ago

It looks like aside from stats.nba.com there is also data.nba.com. Does anyone know anything about this endpoint? It looks like the current stats.nba.com website is pulling play-by-play data from here:

http://data.nba.com/data/10s/v2015/json/mobile_teams/nba/2016/scores/pbp/0021600361_full_pbp.json

It seems similar to current play by play endpoint but in addition it also contains x,y locations of fouls (rebounds seem to be the same value all the time). Does anyone know more about this endpoint. Should we add this endpoint to enable the extra x,y information? Please let me know if this just duplicate of something that is already available with the current API.

insightpeter commented 7 years ago

I made a pull request with this endpoint. All I could find there was a huge json dump of games (both played and future games) but all I needed was game ids for future games so I didn't look much more.

The endpoint I used was http://data.nba.com/data/10s/v2015/json/mobile_teams/nba/2016/league/00_full_schedule.json

On 13 December 2016 at 06:00, vladiki notifications@github.com wrote:

It looks like aside from stats.nba.com there is also data.nba.com. Does anyone know anything about this endpoint? It looks like the current stats.nba.com website is pulling play-by-play data from here:

http://data.nba.com/data/10s/v2015/json/mobile_teams/nba/ 2016/scores/pbp/0021600361_full_pbp.json

It seems similar to current play by play endpoint but in addition it also contains x,y locations of fouls (rebounds seem to be the same value all the time). Does anyone know more about this endpoint. Should we add this endpoint to enable the extra x,y information? Please let me know if this just duplicate of something that is already available with the current API.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/seemethere/nba_py/issues/70, or mute the thread https://github.com/notifications/unsubscribe-auth/AXGiahz-ehp4-oMrpKBpYdu8Ioxhp9uGks5rHjRmgaJpZM4LLXpC .

vladiki commented 7 years ago

looking around at this version of the play-by-play, I didn't find any information that isn't already available except for the x, y locations of the fouls.

sirhcb commented 7 years ago

Is there anymore documentation on the data.nba.com side of things? I'm looking to see if might be a little more responsive than stats, which seems slow at times during games.

I'd also like to find a source that provides foul numbers and timeouts during games.