Wynncraft / WynncraftAPI

Official Wynncraft Public API (Documentation & Issue Tracker)
https://docs.wynncraft.com/
21 stars 10 forks source link

Request: allow to change sorting method for leaderboards #5

Open dieterblancke opened 5 years ago

dieterblancke commented 5 years ago

This is just a simple feature request which would be great for having multiple (accurate) leaderboards in a Discord Bot or stats site or ...

So basically:

GET https://api.wynncraft.com/public_api.php?action=statsLeaderboard&type=player&timeframe={timeframe}&sort={sorttype}

Possible timeframe values: alltime (like it is currently) Possible sorting values: tolalexp (default), mobskilled, combatexp, professionexp, ...

As right now, tools that have like mobskills 'leaderboards' are often inaccurate and work by requesting random players that are online in the server, which ends up having a higher load onto the API.