How to get raw joystick axis data from script (C#)?

I am struggling to find a way to get the value of a joystick axis from script. I know you can get a joystick buttons state, but how can i get the value of axis without using the inbuilt Unity InputManager?