adapting the api url to the new pattern