心知天气api

国内370个主要城市
访问频限 20次/分钟。但无限访问量
99% 可用性

注册之后即可获得 API 密钥。

https://www.seniverse.com/



调用api

https://seniverse.yuque.com/hyper_data/api_v3/gc03wk

get:
https://api.seniverse.com/v3/weather/now.json?key=your_private_key&location=beijing&language=zh-Hans&unit=c
https://api.seniverse.com/v3/weather/now.json?key=your_private_key&location=合肥&language=zh-Hans&unit=c

url = "https://api.seniverse.com/v3/weather/now.json"
params = {
    "key": "your_api_key",  # 替换成你的 API Key,注意是私钥。否则会报错:{"status":"The API key is invalid.","status_code":"AP010003"}
    "location": "烟台",
    "language": "zh-Hans",
    "unit": "c"
}