Splits the API call into two methods, one which calls and the other which parses the response.