Method to get the url being used to API