OpenWeather API

If you want to test API in PHP, here is a useful free Current weather API.

https://openweathermap.org/api

First you have to SignuUp for FREE API key.

https://home.openweathermap.org/users/sign_up

Create and view Current weather API key:

https://home.openweathermap.org/api_keys

Call current weather data
How to make an API call

Access current weather data for any location on Earth! We collect and process weather data from different sources such as global and local weather models, satellites, radars and a vast network of weather stations. Data is available in JSON, XML, or HTML format.

https://openweathermap.org/current

Examples of API calls

https://api.openweathermap.org/data/2.5/weather?lat=44.34&lon=10.99&appid={API key}

Simple use in PHP: