ESODecoded

GetLootItemLink

ESO Lua API function — used by 54 of the 3,030 addons we indexed (combined 37,740,795 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetLootItemLink(integer lootId, [LinkStyle|#LinkStyle] linkStyle)

Returns: string link

Real usage — from Dolgubon's Lazy Writ Crafter

			local lootId, name, _, quantity = GetLootItemInfo(j)
			local itemLink = GetLootItemLink(lootId, 0)
			local itemId = GetItemLinkItemId(itemLink)

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
HarvestMap9,454,533
CraftStore5,176,147
Inventory Insight2,763,446
WritWorthy2,484,332
ESO Master Recipe List2,130,985