accessing the API for forecast