1. How do I get a friendly targets stats such as Hit, Armor, defense, spell power, etc...

    How do I get a friendly targets stats such as Hit, Armor, defense, spell power, etc...

    Depends, and I'm not going to go through and list them all. All API functions are listed on the Reference page. In general, you find some place in the default UI that lists that stat and then examine the FrameXML code to see how the UI does it. Some examples:

    Thanks. From my initial look at your links those only return values for the player, how do i get it for a target(friendly of course). Still looking at your links as well.

    I dont think that's possible

    You can get the basic stats for other players using the UnitStat function, or at least it takes a unit argument. The others, I do not believe are available.