bttmly / nba

Node.js client for nba.com API endpoints
MIT License
710 stars 180 forks source link

teamInfoCommon not working #77

Closed bialesdaniel closed 4 years ago

bialesdaniel commented 4 years ago

I can't get the teamInfoCommon endpoint to work. Though I think its an issue with stats.nba.com cause I can't get to it if I hit http://stats.nba.com/stats/teamInfoCommon/ Any idea if nba.com is acting up today or maybe they killed that endpoint

bttmly commented 4 years ago

I think https://nba.com has been in a long process of deprecating the endpoints under the https://stats.nba.com/stats umbrella – they seem to be moving to https://data.nba.com/data endpoints – the methods in this package under nba.data still work. Seems like today they finally shut down the old endpoints.

bialesdaniel commented 4 years ago

The playerStats still seems to be working. Is the switchover to the data endpoints as simple as just changing the host or are the endpoints very different?

bttmly commented 4 years ago

turns out they're really picky about the Referer header. Try 4.11.0I think it should be fixed

bttmly commented 4 years ago

@bialesdaniel the data endpoints are completely different from the stats endpoints from what I can tell.