Hey developer types, with the launch of the update Lorebook comes a new data.lotro.com API method - item XML!
The basic URL pattern is described at http://data.lotro.com/ and looks like this:
And the result XML will look something like this (pardon the poor indent formatting):Code:http://data.lotro.com/{DEVELOPER_NAME}/{API_KEY}/item/id/{ITEMID}/
The response will vary depending on the type of item. We do not have full documentation of the XML tag structure for each type of item but it should be fairly self-evident when looking at various types.Code:<?xml version="1.0" encoding="UTF-8"?> <apiresponse> <item id="1879094683" name="Doom-hunter's Helm" level="50" type="Medium Armour" quality="Incomparable" unique="1" isItemAdvancement="0" stackSize="1" bindOnAcquire="1" bindOnEquip="0" consumedOnUse="0" cooldown="" iconUrl="http://content.turbine.com/sites/lorebook.lotro.com/images/icons/item/head/eq_head_med_rift_set_1_hunter.png" decoration="" instrument=""> <requirements> <level minimum="50"/> <gloryRank/> <traits/> <races/> <classes> <class name="Hunter"/> </classes> <factions/> </requirements> <value baseCopperValue="1320" gold="0" silver="13" copper="20"/> <durability points="50" type="Tough"/> <damage/> <armour value="218"/> <effects> <effect value="+30 Will"/> <effect value="+8 Might"/> <effect value="+22 Maximum Morale"/> <effect value="+30 Agility"/> <effect value="+30 Vitality"/> </effects> <set name="Doom-hunter's Armour" level="50"> <piece id="1879094678"/> <piece id="1879094679"/> <piece id="1879094680"/> <piece id="1879094681"/> <piece id="1879094682"/> <piece id="1879094683"/> <effect pieceCount="6" value="25% Disperse Shadow Chance"/> <effect pieceCount="6" value="-18% Penetrating Shot Power Cost"/> <effect pieceCount="4" value="-50% Heart Seeker Power Cost"/> <effect pieceCount="4" value="10% Disperse Shadow Chance"/> <effect pieceCount="2" value="+15 Agility"/> <effect pieceCount="2" value="3% Disperse Shadow Chance"/> <description><![CDATA[This armour was granted as a reward for defending Eriador from the terror of Nûrz Gâshu.]]></description> </set> <description/> </item><cache_info cached_until_gmt="2009-12-10 20:02"/></apiresponse>
If you use this API, please make sure you only retrieve XML for an item once a day (or even less since these items will not be changing except for Lorebook updates). Additionally, if you want to do many lookups of lots of different items, make sure your script does not perform more than one request per second. Any developer or application that abuses these limits will find that their API key no longer works.
Please post here if you run into any problems, incorrect data, or have issues with the service.