Setting up the OpenWeather API
The OpenWeather API has been created by the OpenWeather team and contains current and historical weather information from over 200,000 cities worldwide. It also supports forecast weather data for more detailed information. In this project, we will focus on the current weather data.
We need to get an API key first to start using the OpenWeather API:
- Navigate to the OpenWeather API website: https://openweathermap.org/api.
You will see a list of all available APIs from the OpenWeather team.
- Find the section entitled Current Weather Data and click on the Subscribe button.
You will be redirected to the page with the available pricing schemes of the service. Each scheme supports a different combination of API calls per minute and month. For this project, we are going to use the Free tier.
- Click on the Get API key button.
You will be redirected to the sign-up page of the service.
- Fill in all the required details and click on the Create Account...