ESODecoded

GetItemUniqueId

ESO Lua API function — used by 59 of the 3,030 addons we indexed (combined 45,333,194 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetItemUniqueId([Bag|#Bag] bagId, integer slotIndex)

Returns: id64:nilable id

Real usage — from Dolgubon's Lazy Writ Crafter

	for k, v in pairs(WritCreater.savedVars.depositList) do
		local doesItemExistInSlot = Id64ToString(GetItemUniqueId(bag, index)) == v.uniqueId
		if doesItemExistInSlot then

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
LibLazyCrafting6,538,592
Lost Treasure6,404,899
CraftStore5,176,147
Potion Maker (for Alchemy Crafting)3,765,616
WritWorthy2,484,332