> For the complete documentation index, see [llms.txt](https://leaestudio.gitbook.io/city-guide-document/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://leaestudio.gitbook.io/city-guide-document/7.-weather-api.md).

# 7. Weather API

Goto: <https://openweathermap.org/api>

Login and subscribe any plan you can. Free is ok.

![](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LUab62NrHFDK0PsYhr1%2F-LUaeK8NK51KAjHOhWCA%2FScreen%20Shot%202018-12-26%20at%201.36.21%20AM.png?alt=media\&token=444cceec-adc5-4694-8937-6e934e5286d6)

Test API key with this URL:

[http://api.openweathermap.org/data/2.5/forecast/daily?lat=](http://api.openweathermap.org/data/2.5/forecast/daily?lat=105.3724896\&lon=20.9740874\&appid=649c9d257dea4e1bb3c256c27cbb6168\&units=metric)[20.9740874](http://api.openweathermap.org/data/2.5/forecast/daily?lat=105.3724896\&lon=20.9740874\&appid=649c9d257dea4e1bb3c256c27cbb6168\&units=metric)[\&lon=](http://api.openweathermap.org/data/2.5/forecast/daily?lat=105.3724896\&lon=20.9740874\&appid=649c9d257dea4e1bb3c256c27cbb6168\&units=metric)[105.3724896](http://api.openweathermap.org/data/2.5/forecast/daily?lat=105.3724896\&lon=20.9740874\&appid=649c9d257dea4e1bb3c256c27cbb6168\&units=metric)[\&appid=API-KEY-HERE\&units=metric](http://api.openweathermap.org/data/2.5/forecast/daily?lat=105.3724896\&lon=20.9740874\&appid=649c9d257dea4e1bb3c256c27cbb6168\&units=metric)

Make sure above url work.

Open app and replace the weather API key

![Replace API key here](https://3957173639-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNTaiB473xhWUmXbKi_%2F-LUab62NrHFDK0PsYhr1%2F-LUaf_hmsFja3QOB58Fv%2FScreen%20Shot%202018-12-26%20at%201.42.31%20AM.png?alt=media\&token=dd138e2e-3761-4326-90e4-10a2d376ee1f)
