bttmly / nba

Node.js client for nba.com API endpoints
MIT License
708 stars 173 forks source link

Endpoint with the most up-to-date scores #55

Closed garyking closed 6 years ago

garyking commented 6 years ago

This endpoint (which is used in this library) has by far the most up-to-date scores (within seconds of the live score). In comparison, the source currently in use by the nba library is often delayed by about 5 minutes of game-time, and even this source (which is the basis of this page as mentioned in #54) is often delayed by about a minute of game-time.

Please consider using the first URL mentioned in this post. I imagine the format is different though, so that might be a problem? I know that a number of NBA apps on GitHub use the other library for the most up-to-date scores, but this library for general player stats, etc.

Otherwise, at least consider using the second source, which I believe is the same format as the source currently in use by this library.

bttmly commented 6 years ago

released in nba@4.4.0 under nba.data.scoreboard() method here https://github.com/bttmly/nba/blob/master/src/data.js#L11-L20 (endpoints in this package are namespaced by the NBA's URL naming scheme). I'm not applying any data transformation to the response currently.

garyking commented 6 years ago

Great thanks, that works well.