AfterXII.2761:

Hey guys,

Does anyone know how long it takes after a patch goes live for the new items to propagate through the API and becomes ready to be pulled? I’m developing a website (http://gw2shinies.com) that needs to know when to update the item database.

Thanks in advance!

darthmaim.6017:

Not all items are directly related to updates but get unlocked once they get ‘discovered’ by players in game. Some items will appear a few hours before the patch in the api but return errors until the patch goes live.

To always have up-to-date items you have to query the items api regularly and check for items that you don’t have in your database, since new items can be discoverer at any moment.

For https://gw2treasures.com I am currently checking https://api.guildwars2.com/v2/items every 10 minutes and diff it with my database, then adding all items that are new.

Dr Ishmael.9685:

You can do that as soon as /v1/builds.json reports a new build ID.

However, you should be updating periodically in between builds anyway in order to catch new items that get discovered – just query /v2/items, determine which IDs you don’t have, and then pull the details only for those new IDs.