Create a sheet called guild with these headings .. you can see the beginning of the result below. note that you must have a blank column between the buys and sells - this is because they both need to have the same column heading which is not allowed in the same table
The code is very straughtforward .. just a few lines. If you need to append other queries for other ids, you can just set the append argument to true
Private Function guild()
With restQuery("guild", , "19721", , "
https://api.guildwars2.com/v2/commerce/listings/", "buys", , , , , , , , , , "id")
With restQuery("guild!f1", , , , "foo", "sells", , , , , True, .response)
.tearDown
End With
.tearDown
End With
End Function