Get information from the movement component

Hello,
can someone explain to me how can i get the angle the character is facing while he’s in the idle (standing still) / walk / run?
thank you.