log output of api call