I don't think this will ever return undef as api_call aborts if it encounters errors