# OpenWeather

# API Key 申请

打开这个网址:https://home.openweathermap.org/api_keys (opens new window),登录,未注册则注册后登录

登录后选择 Api Keys

随意输入一个名字,点击 Generate 即可获得 Api Key

# Location ID

在页面上方搜索框中输入城市名字(拼音),然后回车搜索

此处以北京为例,搜索框中填入 beijing ,搜索结果如下

点击搜索结果进入详情网页,链接栏后面的数字即为 Location ID

# 中国气象局

进入中国气象局网站:https://weather.cma.cn/ (opens new window),搜索城市

链接后的数字,即为 CityID

最后更新时间: 1/15/2023, 9:24:46 PM