ESODecoded

GetUnitXP

ESO Lua API function — used by 32 of the 3,030 addons we indexed (combined 5,567,657 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetUnitXP(string unitTag)

Returns: integer exp

Real usage — from Azurah - Interface Enhanced

local GetUnitChampionPointsMax			= 3600
local GetUnitXP							= GetUnitXP
local GetUnitXPMax						= GetUnitXPMax

Short excerpt from the shipping addon Azurah - Interface Enhancedits 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
Azurah - Interface Enhanced1,462,318
Lootdrop, Continued (All in One)1,145,178
Foundry Tactical Combat (FTC)1,097,601
Wykkyd Toolbar567,448
Info Panel368,274
Bandits Companions and Pets192,393