ESODecoded

GetCollectibleCategoryType

ESO Lua API function — used by 33 of the 3,030 addons we indexed (combined 7,551,295 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetCollectibleCategoryType(integer collectibleId)

Returns: categoryType

Real usage — from Inventory Insight

  local isPlayerInventory = houseCollectibleId < BAG_MAX_VALUE
  local isNotCollectibleFurniture = IIfA:isCollectibleLink(itemLink) and GetCollectibleCategoryType(itemId) ~= COLLECTIBLE_CATEGORY_TYPE_FURNITURE

Short excerpt from the shipping addon Inventory Insightits 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
Inventory Insight2,763,446
Loot Log1,608,502
Display Leads - with Location Info1,461,811
PersonalAssistant (Banking, Consume, Junk, Loot, Repair, Worker) [Masteroshi430's branch]487,232
Caro's Skill Point Saver (Respec Skill Lines, Champion Points, Gear, Quickslots, Appearances)364,055
LibMultiAccountCollectibles146,624