I see that I can hit /data/wow/mount/{mountId}
to get information about a specific mount, and it says how you get it (vendor), but it’s missing several crucial things: Which faction you can buy it from, what the required reputation is with that faction (it isn’t always Exalted), and how much it costs.
For example, I can look up the Voldunai Dunescraper and get this:
{ "_links": { "self": { "href": "https://us.api.blizzard.com/data/wow/mount/1060?namespace=static-9.0.2_36532-us" } }, "id": 1060, "name": "Voldunai Dunescraper", "creature_displays": [ { "key": { "href": "https://us.api.blizzard.com/data/wow/media/creature-display/80972?namespace=static-9.0.2_36532-us" }, "id": 80972 } ], "description": "These brightly-colored fliers are rarely captured in the wild due to their naturally untrusting natures.", "source": { "type": "VENDOR", "name": "Vendor" }, "faction": { "type": "HORDE", "name": "Horde" }, "requirements": { "faction": { "type": "HORDE", "name": "Horde" } } }
It doesn’t tell me that the faction required to get that mount is Voldunai. In this case, the faction is in the name, but it isn’t always in the name! In any case, I don’t have the gold required or reputation required.
And if I look up the Voldunai faction:
{ "_links": { "self": { "href": "https://us.api.blizzard.com/data/wow/reputation-faction/2158?namespace=static-9.0.2_36532-us" } }, "id": 2158, "name": "Voldunai", "description": "Comprised of exiles and scavengers, the Voldunai use their knowledge of the sands to thrive where others would wither and die.", "can_paragon": true, "reputation_tiers": { "key": { "href": "https://us.api.blizzard.com/data/wow/reputation-tiers/0?namespace=static-9.0.2_36532-us" }, "id": 0 }, "player_faction": { "type": "HORDE", "name": "Horde" } }
I know it uses the tier id 0, and I can look up information about that tier, but I still don’t know which tier is required to buy Voldunai mounts or how much they cost.
As a result, in an app I’m building that includes all mounts that can be obtained by reputation, the reputation required, and the cost, I’m having to create a self-maintained, hardcoded JSON dictionary with this information.
An excerpt:
,
“Alabaster Hyena”: {
“expansion”: “Battle for Azeroth”,
“faction”: “Voldunai”,
“reputation”: “Exalted”,
“side”: “Horde”,
“cost”: 10000
},
“Voldunai Dunescraper”: {
“expansion”: “Battle for Azeroth”,
“faction”: “Voldunai”,
“reputation”: “Exalted”,
“side”: “Horde”,
“cost”: 90000
},
Am I missing something or am I going to have to stick with this manually-created and maintained dictionary?
I’d love for there to be a way to, say:
- Look up all reputations for an expansion
- For each reputation, find out if they sell a mount
- For each mount, find out the cost and reputation required.