swar / nba_api

An API Client package to access the APIs for NBA.com
MIT License
2.34k stars 515 forks source link

Is there an endpoint for accessing basic team opponent stats (besides just shot-related stats), such as RPG allowed, APG allowed, etc., as well as advanced team opponent stats? #411

Open sspink opened 7 months ago

sspink commented 7 months ago

I'd like to start by stating this is such an awesome tool, and I'm super grateful that people have put the work in to make this data easily accessible.

I've found some team opponent stats via the LeagueDashOppPtShot endpoint, but this only provides allowed field goal data. Is there an equivalent endpoint for other basic and advanced stats?

Also, as a secondary issue, I noticed that the output from LeagueDashOppPtShot seems to be a few games behind the output from other endpoints. For example, the output from leaguedashteamstats.LeagueDashTeamStats shows that Denver has played 17 games (correct), while the output from leaguedashoppptshot.LeagueDashOppPtShot shows that Denver has played 15 games (incorrect).

Thanks!