nba-api icon indicating copy to clipboard operation
nba-api copied to clipboard

Request: all-time leaders

Open tbradsha opened this issue 6 years ago • 2 comments

It doesn't look like an all-time leaders request is included in the API. If you'd like to include it, here is an example:

https://stats.nba.com/stats/alltimeleadersgrids?LeagueID=00&PerMode=Totals&SeasonType=Regular+Season&TopX=10

This returns the top leaders in several available stats in one request for a given league, mode, and season type. This is different than LeagueLeaders, as it just returns the top X of a given stat (note that the actual LeagueLeaders endpoint has more options, but they aren't all implemented).

tbradsha avatar May 30 '18 15:05 tbradsha

Cool thanks for pointing it out. I'll add it - or if you'd like to submit a PR for it that works too.

jasonroman avatar May 30 '18 16:05 jasonroman

I'm more of a scripter than a programmer, and just noticed your API in passing (great work, but overkill for my narrow needs), so I'll let you play with that on your own time :^)

tbradsha avatar May 30 '18 18:05 tbradsha