ESODecoded

GetItemLink

ESO Lua API function — used by 466 of the 3,030 addons we indexed (combined 116,971,287 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetItemLink([Bag|#Bag] bagId, integer slotIndex, [LinkStyle|#LinkStyle] linkStyle)

Returns: string link

Real usage — from Dolgubon's Lazy Writ Crafter

function WritCreater.alchemySealedWrit(bag, slot, uniqueId)
	local itemLink = GetItemLink(bag, slot)
	local x = { ZO_LinkHandler_ParseLink(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
LibLazyCrafting6,538,592
Action Duration Reminder6,522,011
Lost Treasure6,404,899
Tamriel Trade Centre5,234,232