Map Bonus
Lillis.9473:
Is there a method to query the map bonuses available for a given map? I was looking a the wiki and there appears to be an embedded curl query but I haven’t been able to tease it out yet. Any suggestions appreciated.
https://wiki.guildwars2.com/wiki/Special:RunQuery/Map_bonus_rewards_query
Thanks,
Lawton Campbell.8517:
The API doesn’t currently expose map rewards — the wiki’s got a hand-curated table that that’s querying. That wiki page looks to be POST’ing a form to /wiki/Special:RunQuery/Map_bonus_rewards_query with the parameters
query: true
Map+bonus+reward+query[zone]: “Blazeridge Steppes”
wpRunQuery: “List map bonus rewards”
This corresponds to the following cURL command:
curl -X POST ‘https://wiki.guildwars2.com/wiki/Special:RunQuery/Map_bonus_rewards_query’ -F ‘query=true’ -F ‘Map bonus reward query[zone]=Blazeridge Steppes’ -F ‘wpRunQuery=List map bonus rewards’
I’m not sure there’s a way to get the data out in a machine-readable format though, I’m not that familiar with the wiki bits.