set the api url