Item Api - retrieving the ICON

#1 - Aug. 12, 2012, 12:40 a.m.
Blizzard Post
Any HELP?
Forum Avatar
Battle.net Developer
#3 - Aug. 13, 2012, 6:22 p.m.
Blizzard Post
The icon field will be changing soon and it will return the appropriate full-name of the icon (using the class/race icon best suited for the selected character), such as shoulders_206_barbarian_female.

This will also prevent possible 404 issues when trying to build the full-name by hand, because not every item has an icon for every class/race combo.

After that, you can use the url format displayed above:

e.g.
icon = "shoulders_206_demonhunter_male"
"http://us.media.blizzard.com/d3/icons/items/large/" + icon + ".png"
Forum Avatar
Battle.net Developer
#11 - Aug. 22, 2012, 3:05 a.m.
Blizzard Post
The icon field is now updated with the full icon name that should be used.

http://us.battle.net/api/d3/data/item/CiQIjN62YhIHCAQVqxkZYB0HnRh1HcNZU2gwCTiiBUAAUAhgogUY1ubIgQxQBlgA
{
id: "ChestArmor_004",
name: "Adventuring Chain Mail of Focus",
icon: "chestarmor_004_witchdoctor_male",
displayColor: "blue",
....
}


Take note: The icon name is correctly persisted during calls to the item-api (Male witchdoctor in this case). So the icon will be consistent between the 'simple' items returned in the profile-api calls and detailed items from the item-api calls.