DarkSpirit.7046:

This can be useful as side information to supplement the Items api, so we know where to acquire certain items and their acquisition cost.

What we need are:

1. Vendor ID
2. Vendor Name
3. Vendor Location Map ID (see https://api.guildwars2.com/v1/map_names.json)
4. Items that the vendor sells :
[{ Item id1, Quantity,GoldCost}, {Item id2, Quantity,KarmaCost}, {Item id3, Quantity,SkillPointCost}, {Item id4, Quantity,LaurelCost}, etc…]

ozma.3498:

This is a good idea. It would be nice to actually see a general NPC API that incorporates the stuff they sell if they are in fact a vendor, but also includes NPCs that aren’t vendors as that could be useful in certain situations.

Yamagawa.5941:

But….but….

Then people would see where I buy my apples for coin!

The horror! :P

Great idea, worth having. Not sure a complete NPC list is practical (some NPCs appear multiply, in instances, etc…), and I don’t know the value of knowing the location of each and every ‘Villager’ in the game, but yes, merchants and all NPCs offering player services are a must in my book.
//Yamagawa