Standardised API consumer, handling the different response types