ESODecoded

GetWorldName

ESO Lua API function — used by 454 of the 3,030 addons we indexed (combined 77,613,313 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetWorldName()

Returns: string worldName

Real usage — from HarvestMap


	g_guildId = GUILD_IDS[GetWorldName()]
	if not g_guildId then return end -- eg PTS server

Short excerpt from the shipping addon HarvestMapits 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
HarvestMap9,454,533
Code's Combat Alerts4,445,158
LibSets (All set items ingame & preview. lua API + excel sheet)4,357,189
LibDebugLogger3,648,435
HodorReflexes - DPS & ULT tracker3,446,840
Inventory Insight2,763,446