API GetAverageItemLevel

Returns the average item level of the player's character and average item level equipped. avgItemLevel, avgItemLevelEquipped, avgItemLevelPvp = GetAverageItemLevel

Returns

 * avgItemLevel: Number - The average item level of the player. This value is not rounded off to any significant digits.
 * avgItemLevelEquipped: Number - The average equipped item level of the player. This value is not rounded off to any significant digits.
 * avgItemLevelPvp: Number - The average equipped item level your character is considered to have under PvP situations. Item slots are weighted and gems are taken in account to compute this value. It is likely used to derive PvP Scaling coefficient.

Example
The following macro prints your average and equipped item levels (to two decimal places) to chat: /run print(("Average Item level: %.2f; Equipped item level: %.2f"):format(GetAverageItemLevel))