http://stackoverflow.com/questions/15530487/restful-api-and-google-analytics
In the question, he posts a link to this nice alternative analytics service called https://mixpanel.com/. It look pretty promising. There's also https://keen.io/ listed.
I'm also looking to accomplish the same thing. Google Analytics works through JS AJAX calls, so a regular GET request wouldn't work. I know there are custom actions in Google Analytics though, perhaps there is a RESTful API for them as well?