get_user_api function

Get user data using API