jasonroman / nba-api

PHP Library to access NBA API endpoints
MIT License
95 stars 14 forks source link

Request: all-time leaders #3

Open tbradsha opened 6 years ago

tbradsha commented 6 years ago

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).

jasonroman commented 6 years ago

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

tbradsha commented 6 years ago

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 :^)