API UnitXP

Return the current XP of a unit - only works if the unit is the player. XP = UnitXP(unit)

Arguments

 * unit : - The UnitId to select as a target.

Returns

 * XP : - Returns the current XP points of the unit.

Details
This does not work for hunter pets, use for that.