tibiadata-api-go icon indicating copy to clipboard operation
tibiadata-api-go copied to clipboard

Endpoint for Drome leaderboards

Open mathiasbynens opened this issue 1 year ago • 2 comments

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 avatar May 19 '23 12:05 mathiasbynens

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

tobiasehlert avatar May 19 '23 14:05 tobiasehlert

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.

mathiasbynens avatar May 19 '23 18:05 mathiasbynens