TibiaData / tibiadata-api-go

TibiaData API written in Golang and deployed in container (version v3 and above).
https://api.tibiadata.com
MIT License
84 stars 28 forks source link

Endpoint for Drome leaderboards #212

Open mathiasbynens opened 1 year ago

mathiasbynens commented 1 year ago

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.

tobiasehlert commented 1 year ago

@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 🤔

mathiasbynens commented 1 year ago

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.