communicating with the live api