In this module we will practice calling APIs.
When building a web application, you will most certainly need to call some APIs.
π‘Tip: You can either test the APIs with Chrome or wth Postman (download from the instructor).
OpenWeather is service providing APIs providing weather forecasts.
The OpenWeather One Call API provides a 7 day weather forecast. The free account allows 1000 requests per day!


{API key} with the API key you copied in the previous step.&lang=fr&units=metric to the URL to format the data into French.&exclude=hourly,daily to see all of the data. The daily data will be ideal to build our weather application. We could then add &exclude=minutely,hourly to see only the daily and current data.45.89911 and longitude of 6.1287, update your request to get the weather for Annecy.The OpenWeather API accepts an exact latitude and longitude coordinate for the weather forecast. If we want to get the weather forecast for location, like Annecy or Lyon, we need a way to get the geographic latitude and longitude for locations. This is called geocoding.
Mapbox offers several location and mapping tools, including a forward geocoding API. With their free plan we can make 100000 requests per month for free.

Annecy.features[0].geometry.coordinates to find the longitude and latitude.