return value of api_call