tibiadata-api-go
tibiadata-api-go copied to clipboard
Endpoint for Drome leaderboards
Have you considered exposing an endpoint for getting the Drome leaderboard data? Parameters would be world
and rotation
, where rotation
would default to the current one, just like on the website:
The source of truth would be, e.g.
https://www.tibia.com/community/?subtopic=leaderboards&world=Vunira&rotation=12
…for the Vunira leaderboard of Drome rotation 12.
@mathiasbynens good suggestion 👍 This would be something new for v4, but should be added I guess.
What is the rotation value? Switched to two other worlds and it doesn't seem to be logic to me 🤔
The rotation is a monotonically increasing number starting at 1
, which indicates the first rotation, i.e. the first 2 weeks since the release of the Drome update.
E.g. https://www.tibia.com/community/?subtopic=leaderboards&world=Vunira&rotation=1
has the Vunira leaderboard for this very first rotation.
For servers that are created more recently, rotation 1
won't yield any results. The current rotation number is 49
, and that's the same across all servers.