Q:
Get WvW rank of map?
A:
Not currently, no.
You could parse https://leaderboards.guildwars2.com/de/na/wvwmain until there is a dedicated API endpoint for that available.
I use API:1/wvw/matches — “wvw_match_id”: “2-2”
The last number I take as being the Rank/Tier the world is in.
I use API:1/wvw/matches — “wvw_match_id”: “2-2”
The last number I take as being the Rank/Tier the world is in.
Match IDs are formatted as “%d-%d” % (datacenter, virtual shard id). I’m under the impression that the virtual shard id just happens to match up with the tier — an unexpected feature — because of how the matchmaking bits work.
You could parse https://leaderboards.guildwars2.com/de/na/wvwmain until there is a dedicated API endpoint for that available.
It did cross my mind to get it this way, but I rather wait untill the Api does provide it, it’s just a minor detail (for my usage) anyway.
I use API:1/wvw/matches — “wvw_match_id”: “2-2”
The last number I take as being the Rank/Tier the world is in.
I noticed the second number would indeed work as tier, but it’s the rank I was looking for.
—
Nonetheless, thanks for wanting to help find a solution.