World of Warcraft Armory Data Item Update

This is a follow-up to one of my previous entries about World of Warcraft Armory Data. In this entry I will focus on the newly added Item pages which add a wealth of information about the items in game with the ability to even search for upgrades.

item-info.xml

Description

Contains information on item including base stats, sell price, reagent requirements if it is a craftable and quest information if it is from a quest along with info on what it disenchants into. Based on the type of item, the resulting XML will be different. For instance, the createdBy node only exists in craftable items while the rewardFromQuests node only exists for a quest drop. So make sure to check the existence of a particular node before trying to make use of it.

Parameters

i - Item Number

search.xml - Item Upgrade Search

Description

The search.xml is used for several functions of the Armory site but since this entry is specifically about items lets look at how to use the search.xml to find item upgrades. The item upgrade search has to be one of the coolest features added to the Armory. The ability to search for upgrades to existing gear and see where it stacks up is invaluable to planning time spent in World of Warcraft. Especially for a casual player like me. The item upgrade search customizes the results based on the type of item. For instance tanking gear will focus on tanking stats like stamina and defense while caster gear would focus on spell critical and spell damage.

Parameters

pn - Player Name
pr - Player Realm
pi - Player Item Number
searchType - Search Type is item (Optional)
sf - Sort Field. Can be itemname, itemLevel, requiredLevel, type, source, col1, col2, col3 or relevance (Optional)
sd - Sort Direction. Can be a for ascending or d for descending order (Optional)
p - Page Number. Default is 1 (Optional)

Comments
Jedorak's Gravatar After extensive digging through the armory's XML and XSL files, I've found a reliable source for item information that can be extracted through XML. The url is:
http://armory.worldofwarcraft.com/item-tooltip.xml...;
I've already created a perl script to parse the item data to use in WoWWiki tooltip entries. There are a few things that you may need to get from other sources. Happy parsing.
# Posted By Jedorak | 6/30/07 11:32 AM
Jedorak's Gravatar Also, if you are pulling the information off of the Armory using a script, you may want to add the header to your HTTP request:

Accept: text/xml

In order to limit the data you get back to just the XML data.
# Posted By Jedorak | 6/30/07 11:34 AM
Matt Shooks's Gravatar Awesome find. Thanks for the info.
# Posted By Matt Shooks | 7/4/07 9:53 AM
epocas's Gravatar Did anyone discover how to extract specific attributes from an item?

If you check an "of the something" item xml from the item-tooltip or the item-info, it will only give you that the item as an "<random enchantment>"

How can I get the specific enchant of an item someone's using?
# Posted By epocas | 8/27/07 4:20 AM
Matt Shooks's Gravatar I took a look and I think it may center around the randomPropertiesId attribute in each of the item nodes of the character sheet. What isn't clear yet is how to associate that number to the properties since some items "of the" have random stats. I have seen the same named item with different stat combos like one having 8 stam and 8 strength while the same named item might have 9 stam and 8 strength.
# Posted By Matt Shooks | 8/31/07 6:41 AM
epocas's Gravatar I have discovered the solution;

You need to access the xml of the page item-tooltip.xml
This page receives the following parameters:
i= the id of the item
n= the character name
r= the realm of the character

if you only pass the parameter "i", the xml return the generic information of the itme (the one with "<random enchantment>"
But if you pass "n" and "r" and the corresponding character is using the item "i", then the xml returns the specific item information.

Regards
# Posted By epocas | 8/31/07 7:02 AM
Matt Walter's Gravatar Is there an xml file on the armory site that has a key or index to all items? Something that could be used to iterate through the item-detail files. I'd like to be able to pull the WoW data so that I can index it differently for other searching approaches, but need to be able to pull or get a feed of all the available items. Any suggestions?

Thanks!
# Posted By Matt Walter | 9/8/07 2:33 PM
SimTex's Gravatar Reply to Matt Walter:
Unfortunatly it's not accisble or so it seems. I have trying to go through all the files there is something in the http://eu.wowarmory.com/data/en_gb/ folder. For instance you can load classes.xml and im pretty sure all the other data files are in here somewhere, i just can't figure out how to access them.
# Posted By SimTex | 9/13/07 9:44 AM
Matt Shooks's Gravatar I don't know of any files. Your best bet is to base it off of players. Run through all the guilds on a couple of realms and only record new items that you haven't seen. You will probably want to do this task a couple of times.
# Posted By Matt Shooks | 9/18/07 6:23 AM
Saritor's Gravatar Hey Matt, I was looking around your site and I am actually looking for a solution to pretty much the same problem. I am trying to find a way to extract out actual item attributes. I do know that the XML feeds from Wowhead.com actually will give you the attribute data, but parsing it seems like an unbearable task since the <htmlTooltip> tag's text is formatted for appearances and not for extraction.
# Posted By Saritor | 12/27/07 3:21 PM
Matt Shooks's Gravatar To answer your question, I made another entry with a couple of ideas on how to perform item data mining: http://blog.shooksweb.com/index.cfm/2007/12/28/Way...
# Posted By Matt Shooks | 12/28/07 7:08 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.001. Contact Blog Owner