Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetItemInfo

Last wiki revision 2023-01-30

Returns info for an item. itemName, itemLink, itemQuality, itemLevel, itemMinLevel, itemType, itemSubType, itemStackCount, itemEquipLoc, itemTexture, sellPrice, classID, subclassID, bindType, expacID, setID, isCraftingReagent = GetItemInfo(item)

  • item: :
  • Accepts any valid item ID but returns if the item is not cached yet.
  • Accepts an item link, or in format.
  • Accepts a localized item name but this requires the item to be or have been in the player's inventory (bags/bank) for that session.

Returns if the item is not cached yet or does not exist.

  • 1. itemName: - The localized name of the item.
  • 2. itemLink: : ItemLink - The localized link of the item.
  • 3. itemQuality: - The quality of the item, e.g. for Uncommon and for Rare quality items.
  • 4. itemLevel: - The base item level, not including upgrades. See for getting the actual item level.
  • 5. itemMinLevel: - The minimum level required to use the item, or if there is no level requirement.
  • 6. itemType: : ItemType - The localized type name of the item: Armor, Weapon, Quest, etc.
  • 7. itemSubType: : ItemType - The localized sub-type name of the item: Bows, Guns, Staves, etc.
  • 8. itemStackCount: - The max amount of an item per stack, e.g. 200 for Runecloth.
  • 9. itemEquipLoc: : ItemEquipLoc - The inventory equipment location in which the item may be equipped e.g., or an empty string if it cannot be equipped.
  • 10. itemTexture: : FileID - The texture for the item icon.
  • 11. sellPrice: - The vendor price in copper, or for items that cannot be sold.
  • 12. classID: : ItemType - The numeric ID of
  • 13. subclassID: : ItemType - The numeric ID of
  • 14. bindType: : LE_ITEM_BIND - When the item becomes soulbound, e.g. for Bind on Pickup items.
  • 15. expacID: : LE_EXPANSION - The related Expansion, e.g. for Shadowlands. On Classic this appears to be always.
  • 16. setID: : ItemSetID - For example 761 for Red Winter Hat (itemID 21524).
  • 17. isCraftingReagent: - Whether the item can be used as a crafting reagent.

/dump GetItemInfo(4306)

  • Prints item information for Silk Cloth

Source

https://warcraft.wiki.gg/wiki/API_GetItemInfo · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.