ESODecoded

GetItemLinkTraitInfo

ESO Lua API function — used by 100 of the 3,030 addons we indexed (combined 49,097,641 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetItemLinkTraitInfo(string itemLink)

Returns: traitType, string traitDescription

Real usage — from Dolgubon's Lazy Writ Crafter

			-- d("Tracked a gear "..itemLink.. " for "..  boxType)
			if ornateTraits[GetItemLinkTraitInfo(itemLink)] then
				updateSavedVars(vars, "ornate", quantity)

Short excerpt from the shipping addon Dolgubon's Lazy Writ Crafterits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Dolgubon's Lazy Writ Crafter9,498,314
Combat Metrics7,085,289
LibLazyCrafting6,538,592
Tamriel Trade Centre5,234,232
CraftStore5,176,147
LibCombat5,017,654