Set api host in constructor