setup api and url