bttmly / nba

Node.js client for nba.com API endpoints

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

teamInfoCommon not working

bialesdaniel opened this issue · comments

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

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.

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?

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

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