How to get Visitor/Session data via API?

This information is avaliable under Reports, but we need to pull this automatically using API.