This class handles the api url