How to use Openweathermap APIs using PHP ?
In order to fetch the data we need an API key, Just go to the website of OpenWeatherMap and create a new account then get the API Key.
Before making an API call please make sure you get the City Name, State Code, and Country code to fetch the data.
e.g city name = Delhi , state code = IN, country code = IN
The following URL is used to fetch the data, we are assuming that you have your own credentials (API Key) e.g appid=d62ca415a6b61d8927e6d87b8c42
Reference : https://www.codenaive.com/edu/api/examples/api-use-openweathermap