These functions operate on item links or item information directly. See also[Bag](https://wow.gamepedia.com/World_of_Warcraft_API#Bags)functions.
[C\_Item.CanViewItemPowers](https://wow.gamepedia.com/API_C_Item.CanViewItemPowers "API C Item.CanViewItemPowers")(itemLoc)
[C\_Item.DoesItemExist](https://wow.gamepedia.com/API_C_Item.DoesItemExist "API C Item.DoesItemExist")(emptiableItemLocation)
[C\_Item.DoesItemExistByID](https://wow.gamepedia.com/API_C_Item.DoesItemExistByID "API C Item.DoesItemExistByID")("itemInfo")
[C\_Item.GetCurrentItemLevel](https://wow.gamepedia.com/API_C_Item.GetCurrentItemLevel "API C Item.GetCurrentItemLevel")(itemLocation)
[C\_Item.GetItemGUID](https://wow.gamepedia.com/API_C_Item.GetItemGUID "API C Item.GetItemGUID")(itemLocation)
[C\_Item.GetItemID](https://wow.gamepedia.com/API_C_Item.GetItemID "API C Item.GetItemID")(itemLocation)
[C\_Item.GetItemIcon](https://wow.gamepedia.com/API_C_Item.GetItemIcon "API C Item.GetItemIcon")(itemLocation)
[C\_Item.GetItemIconByID](https://wow.gamepedia.com/API_C_Item.GetItemIconByID "API C Item.GetItemIconByID")("itemInfo")
[C\_Item.GetItemInventoryType](https://wow.gamepedia.com/API_C_Item.GetItemInventoryType "API C Item.GetItemInventoryType")(itemLocation)
[C\_Item.GetItemInventoryTypeByID](https://wow.gamepedia.com/API_C_Item.GetItemInventoryTypeByID "API C Item.GetItemInventoryTypeByID")("itemInfo")
[C\_Item.GetItemLink](https://wow.gamepedia.com/API_C_Item.GetItemLink "API C Item.GetItemLink")(itemLocation)
[C\_Item.GetItemName](https://wow.gamepedia.com/API_C_Item.GetItemName "API C Item.GetItemName")(itemLocation)
[C\_Item.GetItemNameByID](https://wow.gamepedia.com/API_C_Item.GetItemNameByID "API C Item.GetItemNameByID")("itemInfo")
[C\_Item.GetItemQuality](https://wow.gamepedia.com/API_C_Item.GetItemQuality "API C Item.GetItemQuality")(itemLocation)
[C\_Item.GetItemQualityByID](https://wow.gamepedia.com/API_C_Item.GetItemQualityByID "API C Item.GetItemQualityByID")("itemInfo")
[C\_Item.IsBound](https://wow.gamepedia.com/API_C_Item.IsBound "API C Item.IsBound")(itemLocation)
[C\_Item.IsItemDataCachedByID](https://wow.gamepedia.com/API_C_Item.IsItemDataCachedByID "API C Item.IsItemDataCachedByID")("itemInfo")
[C\_Item.IsItemDataCached](https://wow.gamepedia.com/API_C_Item.IsItemDataCached "API C Item.IsItemDataCached")(itemLocation)
[C\_Item.IsLocked](https://wow.gamepedia.com/API_C_Item.IsLocked "API C Item.IsLocked")(itemLocation)
[C\_Item.LockItem](https://wow.gamepedia.com/API_C_Item.LockItem "API C Item.LockItem")(itemLocation)
[C\_Item.RequestLoadItemData](https://wow.gamepedia.com/API_C_Item.RequestLoadItemData "API C Item.RequestLoadItemData")(itemLocation)
[C\_Item.RequestLoadItemDataByID](https://wow.gamepedia.com/API_C_Item.RequestLoadItemDataByID "API C Item.RequestLoadItemDataByID")("itemInfo")
[C\_Item.UnlockItem](https://wow.gamepedia.com/API_C_Item.UnlockItem "API C Item.UnlockItem")(itemLocation)
[C\_ItemUpgrade.GetItemHyperlink](https://wow.gamepedia.com/API_C_ItemUpgrade.GetItemHyperlink "API C ItemUpgrade.GetItemHyperlink")()
[C\_NewItems.ClearAll](https://wow.gamepedia.com/API_C_NewItems.ClearAll "API C NewItems.ClearAll")() - Clears the new item flag on all items in the player's inventory.
[C\_NewItems.IsNewItem](https://wow.gamepedia.com/API_C_NewItems.IsNewItem "API C NewItems.IsNewItem")(bag, slot) - Returns whether the item in the specified container slot is flagged as new.
[C\_NewItems.RemoveNewItem](https://wow.gamepedia.com/API_C_NewItems.RemoveNewItem "API C NewItems.RemoveNewItem")(bag, slot) - Clears the "new item" flag.
[ActionBindsItem](https://wow.gamepedia.com/index.php?title=API_ActionBindsItem&action=edit&redlink=1 "API ActionBindsItem (page does not exist)")() - Confirms this will bind this item to you.
[ClearItemUpgrade](https://wow.gamepedia.com/index.php?title=API_ClearItemUpgrade&action=edit&redlink=1 "API ClearItemUpgrade (page does not exist)")()
[CloseItemUpgrade](https://wow.gamepedia.com/index.php?title=API_CloseItemUpgrade&action=edit&redlink=1 "API CloseItemUpgrade (page does not exist)")()
[ConfirmOnUse](https://wow.gamepedia.com/index.php?title=API_ConfirmOnUse&action=edit&redlink=1 "API ConfirmOnUse (page does not exist)")() - Confirms you want to use the item.
[EndBoundTradeable](https://wow.gamepedia.com/index.php?title=API_EndBoundTradeable&action=edit&redlink=1 "API EndBoundTradeable (page does not exist)")("type") - Confirms this will make this item non-tradeable.
[EndRefund](https://wow.gamepedia.com/index.php?title=API_EndRefund&action=edit&redlink=1 "API EndRefund (page does not exist)")() - Confirms this will make this item non-refundable. Unused in FrameXML.
[EquipItemByName](https://wow.gamepedia.com/API_EquipItemByName "API EquipItemByName")(itemId or "itemName" or "itemLink"\[, invSlot\]) - Equips an item, optionally into a specified slot.
[GetDetailedItemLevelInfo](https://wow.gamepedia.com/API_GetDetailedItemLevelInfo "API GetDetailedItemLevelInfo")(itemId or "itemName" or "itemLink") - Returns an item's item level.
[GetItemChildInfo](https://wow.gamepedia.com/index.php?title=API_GetItemChildInfo&action=edit&redlink=1 "API GetItemChildInfo (page does not exist)")(itemID|"name"|"itemlink" \[, slotID\])
[GetItemClassInfo](https://wow.gamepedia.com/API_GetItemClassInfo "API GetItemClassInfo")(itemClassID) - Returns the name of the item type.
[GetItemCooldown](https://wow.gamepedia.com/API_GetItemCooldown "API GetItemCooldown")(itemId) - Returns startTime, duration, enable.
[GetItemCount](https://wow.gamepedia.com/API_GetItemCount "API GetItemCount")(itemId or "itemName" or "itemLink"\[, includeBank\]\[, includeCharges\]) - Returns number of such items in inventory\[, or charges instead if it has charges\].
[GetItemCreationContext](https://wow.gamepedia.com/index.php?title=API_GetItemCreationContext&action=edit&redlink=1 "API GetItemCreationContext (page does not exist)")(|"itemlink")
[GetItemFamily](https://wow.gamepedia.com/API_GetItemFamily "API GetItemFamily")(itemId or "itemName" or "itemLink") - Returns the bag type that an item can go into, or for bags the type of items that it can contain.
[GetItemGem](https://wow.gamepedia.com/API_GetItemGem "API GetItemGem")("name"|"itemlink", index)
[GetItemIcon](https://wow.gamepedia.com/API_GetItemIcon "API GetItemIcon")(itemId) - Returns the icon for the item. Works for any valid item even if it's not in the cache.
[GetItemInfo](https://wow.gamepedia.com/API_GetItemInfo "API GetItemInfo")(itemId or "itemString" or "itemName" or "itemLink") - Returns information about an item.
[GetItemInfoInstant](https://wow.gamepedia.com/API_GetItemInfoInstant "API GetItemInfoInstant")(itemId or "itemString" or "itemName" or "itemLink") - Returns basic information about an item.
[GetItemInventorySlotInfo](https://wow.gamepedia.com/index.php?title=API_GetItemInventorySlotInfo&action=edit&redlink=1 "API GetItemInventorySlotInfo (page does not exist)")(inventorySlot)
[GetItemLevelColor](https://wow.gamepedia.com/index.php?title=API_GetItemLevelColor&action=edit&redlink=1 "API GetItemLevelColor (page does not exist)")()
[GetItemLevelIncrement](https://wow.gamepedia.com/API_GetItemLevelIncrement "API GetItemLevelIncrement")()
[GetItemQualityColor](https://wow.gamepedia.com/API_GetItemQualityColor "API GetItemQualityColor")(quality) - Returns the RGB color codes for a quality.
[GetItemSetInfo](https://wow.gamepedia.com/index.php?title=API_GetItemSetInfo&action=edit&redlink=1 "API GetItemSetInfo (page does not exist)")(setID)
[GetItemSpecInfo](https://wow.gamepedia.com/API_GetItemSpecInfo "API GetItemSpecInfo")(itemInstance.itemID|"name"|"itemlink"\[, specTable\])
[GetItemSpell](https://wow.gamepedia.com/API_GetItemSpell "API GetItemSpell")(item) - Returns name, rank.
[GetItemStatDelta](https://wow.gamepedia.com/index.php?title=API_GetItemStatDelta&action=edit&redlink=1 "API GetItemStatDelta (page does not exist)")(itemLink1, itemLink2\[, statTable\])
[GetItemStats](https://wow.gamepedia.com/API_GetItemStats "API GetItemStats")(itemLink, statTable) - Returns a table of stats for an item.
[GetItemSubClassInfo](https://wow.gamepedia.com/API_GetItemSubClassInfo "API GetItemSubClassInfo")(itemClassID, itemSubClassID) - Returns the name of the item subtype.
[GetItemUniqueness](https://wow.gamepedia.com/index.php?title=API_GetItemUniqueness&action=edit&redlink=1 "API GetItemUniqueness (page does not exist)")(itemID|"name"|"itemlink")
[GetItemUpdateLevel](https://wow.gamepedia.com/API_GetItemUpdateLevel "API GetItemUpdateLevel")()
[GetItemUpgradeEffect](https://wow.gamepedia.com/API_GetItemUpgradeEffect "API GetItemUpgradeEffect")(index)
[GetItemUpgradeItemInfo](https://wow.gamepedia.com/index.php?title=API_GetItemUpgradeItemInfo&action=edit&redlink=1 "API GetItemUpgradeItemInfo (page does not exist)")()
[GetItemUpgradeStats](https://wow.gamepedia.com/index.php?title=API_GetItemUpgradeStats&action=edit&redlink=1 "API GetItemUpgradeStats (page does not exist)")(upgraded)
[GetNumItemUpgradeEffects](https://wow.gamepedia.com/API_GetNumItemUpgradeEffects "API GetNumItemUpgradeEffects")()
[IsBattlePayItem](https://wow.gamepedia.com/API_IsBattlePayItem "API IsBattlePayItem")(bag, slot)
[IsConsumableItem](https://wow.gamepedia.com/API_IsConsumableItem "API IsConsumableItem")(item)
[IsCurrentItem](https://wow.gamepedia.com/index.php?title=API_IsCurrentItem&action=edit&redlink=1 "API IsCurrentItem (page does not exist)")(item)
[IsDressableItem](https://wow.gamepedia.com/index.php?title=API_IsDressableItem&action=edit&redlink=1 "API IsDressableItem (page does not exist)")(item) - Returns if the item can be shown in the[Dressing room](https://wow.gamepedia.com/Dressing_room "Dressing room").
[IsEquippableItem](https://wow.gamepedia.com/API_IsEquippableItem "API IsEquippableItem")(itemId or "itemName" or "itemLink") - Returns whether an item can be equipped.
[IsEquippedItemType](https://wow.gamepedia.com/API_IsEquippedItemType "API IsEquippedItemType")("type") - Where "type" is any valid inventory type, item class, or item subclass.
[IsEquippedItem](https://wow.gamepedia.com/API_IsEquippedItem "API IsEquippedItem")(item)
[IsHarmfulItem](https://wow.gamepedia.com/index.php?title=API_IsHarmfulItem&action=edit&redlink=1 "API IsHarmfulItem (page does not exist)")(item) - Returns whether an item can be used against hostile units
[IsHelpfulItem](https://wow.gamepedia.com/index.php?title=API_IsHelpfulItem&action=edit&redlink=1 "API IsHelpfulItem (page does not exist)")(item) - Returns whether an item can be used on the player or friendly units
[IsItemInRange](https://wow.gamepedia.com/API_IsItemInRange "API IsItemInRange")("itemName" or "itemLink", "unit") - Nil for invalid target, false for out of range, true for in range.
[IsUsableItem](https://wow.gamepedia.com/index.php?title=API_IsUsableItem&action=edit&redlink=1 "API IsUsableItem (page does not exist)")(item) - Returns usable, noMana.
[ItemHasRange](https://wow.gamepedia.com/index.php?title=API_ItemHasRange&action=edit&redlink=1 "API ItemHasRange (page does not exist)")(item)
[UpgradeItem](https://wow.gamepedia.com/index.php?title=API_UpgradeItem&action=edit&redlink=1 "API UpgradeItem (page does not exist)")()
PROTECTED[UseItemByName](https://wow.gamepedia.com/API_UseItemByName "API UseItemByName")("itemName", "unit") - Use an item on the unit specified.
- 基础
- 循环
- 迭代器
- ipairs与pairs 的区别
- 流程控制if
- 函数
- 运算符
- 字符串
- 数组
- table(表)
- 模块与包
- 魔兽插件
- 初学介绍
- api
- Global API
- Widget API
- 窗口小部件类层次结构(Widget Class Hierarchy)
- 动画(Animation)
- 透明度(Alpha)
- 线条缩放比例(LineScale)
- 平移(Translation)
- 线平移(Line Translation)
- 路径(Path)
- 旋转(Rotation)
- 缩放(Scale)
- 纹理坐标平移(TextureCoordTranslation)
- 框架 :Frame
- 浏览器(Browser)
- 按键(Button)
- Item按钮(ItemButton)
- 检查按钮(CheckButton)
- 检测(Checkout)
- 颜色选择(ColorSelect)
- 冷却(Cooldown)
- 编辑框(EditBox)
- 战争迷雾(FogOfWarFrame)
- 游戏工具提示(GameTooltip)
- 消息框(MessageFrame)
- 小地图(Minimap)
- 模型(Model)
- 玩家模型(PlayerModel)
- 电影模型(CinematicModel)
- 换装模型(DressUpModel)
- 战袍模型(TabardModel)
- _模型场景(ModelScene)
- 电影Frame(MovieFrame)
- 根小部件(Root Widgets)
- UIObject衍生品(UIObject Derivatives)
- 动画衍生品(Animation Derivatives)
- FontInstance
- 地区衍生品(Region Derivatives)
- 帧衍生品(Frame Derivatives)
- 特殊(Special)
- Events(游戏中变化的事件)
- WoWAPI
- Global Function Groups
- 帐户(Account)
- 成就(Achievements)
- 动作条(Action Bars)
- Action Buttons
- 插件(AddOns)
- 冒险指南(Adventure Guide)
- 神器(Artifact)
- 拍卖行(Auction House)
- 黑市AH
- 魔兽代币(WoW Tokens)
- Azerite
- 背包(Bags)
- 容器(Containers)
- 库存(Inventory)
- 银行(Bank)
- 公会银行(Guild Bank)
- 理发店(Barber Shop)
- 书籍(书籍)
- 日历(calendar)
- 相机(Camera)
- 频道(Channels)
- 聊天窗口(Chat Window)
- 社区(communities)
- 语音聊天(Voice Chat)
- 推特(Twitter)
- 角色(Character)
- 角色表(Paper Doll)
- 试衣间(dressing room)
- 活动(Movement)
- 指定目标(Targeting)
- 死亡(Death)
- 过场动画(Cinematics)
- 职业(class)
- 天赋(Talents)
- 收藏(Collections)
- 坐骑(Mount Journal)
- 宠物(Pet Journal)
- 玩具箱(Toy Box)
- 传家宝(Heirlooms)
- 外观(Appearances)
- 战斗记录(Combat Log)
- 战斗宠物(Combat Pets)
- 同伴(Companions)
- Contribution Collection
- 货币(Currency)
- 光标(Cursor)
- 客户支持(Customer Support)
- 知识库(Knowledge Base)
- 设备管理器(Equipment Manager)
- 扩展(Expansions)
- FrameXML
- 好友(Friends)
- Who List
- 真实身份证(Real ID)
- 招募朋友(Recruit-a-Friend)
- 驻军(Garrisons)
- 建筑物(Buildings)
- 战利品(Trophies)
- 追随者与任务(Followers & Missions)
- 团队(Groups)
- Raid Groups
- Raid Profiles
- 组查找器(Group Finder)
- 突袭者(Raid Finder)
- 公会(Guild)
- 检查(Inspection)
- Instances
- 场景(Scenarios)
- Mythic+
- 入侵(Invasions)
- 海岛探险(Island Expeditions)
- Items
- 按键绑定(Key Bindings)
- Modifiers
- 劫掠(Looting)
- 失控(Loss of Control)
- 宏命令(Macros)
- 邮件(Mail)
- 地图(Maps)
- 飞行管理员(Flight Master)
- 追踪(Tracking)
- 商人(Merchant)
- 铭牌(Nameplates)
- 宠物大战(Pet Battles)
- 申请书(Petitions)
- 专业(Professions)
- 考古(Archaeology)
- 附魔(Enchantments)
- 雕文(glyphs)
- 物品插口(tem Socketing)
- PvP
- 竞技场(Arena)
- 战场(Battlegrounds)
- 世界战场(World Battlefields)
- 争吵(Brawl)
- 战争游戏(War Games)
- 战争模式(War Mode)
- 任务 (Quests)
- 任务日志(Quest Log)
- 任务选择(Quest Choices)
- Task Quests
- 闲聊(Gossip)
- 探险地图(Adventure Map)
- 战争战役(War Campaigns)
- 种族(Races)
- 境界(Realms)
- 报告(Reporting)
- 声望(Reputation)
- 报废的机器(Scrapping Machine)
- 法术(Spells)
- Spell Book
- 商店(Shop)
- 召唤(Summoning)
- 系统(System)
- 网络(Network)
- 控制台(Console)
- 日期时间(Date & Time)
- 调试(Debugging)
- 图形(Graphics)
- 语言环境(Locales)
- 脚本分析(Script Profiling)
- 安全执行(Secure Execution)
- 声音(Sound)
- Sound Drivers
- Talking Head
- 交易(Trading)
- 训练师(Trainer)
- 迁移(Transmogrification)
- 空白存储(Void Storage)
- 讲解(Tutorials)
- UI对象(UI Objects)
- 框架(Frame)
- 字体(Font)
- 质地(Texture)
- 混合(Mixin)
- 咒语(SpellMixin)
- ItemMixin
- 物品位置(ItemLocationMixin)
- PlayerLocationMixin
- 模型场景(ModelScene)
- 未分类
- UI窗口小部件管理器(UI Widget Manager)
- 单位(Units)
- 光环(Auras)
- 玩家(Players)
- 实用程序(Util)
- 车辆(Vehicles)
- Classic Specific Functions
- 猎人宠物(Hunter Pets)
- 专业(Professions)
- 手工制作(Crafting)
- @PvP
- 模拟器
- 训练师(Trainer)
- 8.x API
- 控制台(Console)
- 召唤(Summoning)
- See also
- 外部链接(External links)
- Widget handlers(UI交互事件)
- ScriptObject
- AnimationGroup
- Animation对象
- Alpha对象
- Scale
- LineScale
- Translation
- LineTranslation
- Path
- Rotation
- TextureCoordTranslation
- Frame
- Browser
- Button
- CheckButton
- ItemButton
- Checkout
- ColorSelect
- Cooldown
- EditBox
- FogOfWarFrame
- GameTooltip
- Model
- PlayerModel
- CinematicModel
- DressupModel
- TabardModel
- MovieFrame
- ScrollFrame
- Slider
- MessageFrame
- Minimap
- ModelScene
- OffScreenFrame
- POIFrame
- ArchaeologyDigSiteFrame
- QuestPOIFrame
- ScenarioPOIFrame
- SimpleHTML
- StatusBar
- UnitPositionFrame
- WorldFrame
- 入门
- .toc
- .lua
- .xml
- 示例
- 自动邀请插件
- 完整例子:显示任务坐标
- eCoordinates.toc
- eCoordinates.xml
- eCoordinates.lua
- 开发帮助组件
- AddOn Studio编辑器
- 暴雪自带调试工具
- DevTools调试插件
- wowlua
- 魔兽宏
- 战斗宠物命令
- 暴雪界面命令
- 聊天命令
- chat substitutions
- 角色指令
- 开发者工具
- 表情动作
- 战斗命令
- 公会命令
- 小队与团队命令、
- 宠物命令
- PvP的命令
- 系统命令
- 目标函数
- 命令
- 被禁用的命令
- 宏条件
- 装备物品编号