Please make sure that, your allow_url_fopen or cURL is enabled. Also, make sure your API key and location is correct. You can get more details about this API here: https://www.weatherbit.io/api/weather-current