CHANGED:applied the API url request function;