API简介:全国天气新版,可查询全国实时天气,需搜索城市id返回天气

接口问题联系相关负责人沟通修复:查看该接口开发者

接口地址:https://v.api.aa1.cn/api/api-tianqi-4/

返回格式:JSON

请求方式:GET

请求参数:https://v.api.aa1.cn/api/api-tianqi-4/?id=101060101

该接口支持技术协助,您可联系夏柔协助对接接口

Bug修复:修复接口小问题5分钟响应处理,大问题1个自然日

会员线路:因调用量剧增,定制独享优质线路请 参考定制方案

专属线路 成本透明 0服务费

接口信息

接口名称 是否必填 接口类型 接口说明
id string 城市id,如:101060101

返回示例

城市ID下载{
    "code": 200, 
    "msg": "全国天气新接口", 
    "city": "长春", 
    "citycode": "101060101", 
    "cityen": "changchun", 
    "temp": "-19", 
    "tempf": "-2", 
    "wd": "西风", 
    "wden": "W", 
    "wdforce": "2级", 
    "wdspd": "8km/h", 
    "humidity": "50%", 
    "stp": "991", 
    "uptime": "00:00", 
    "prcp24h": "0", 
    "aqi": "49", 
    "pm25": "49", 
    "wether": "多云", 
    "weathern": "Cloudy", 
    "today": "2022-12-18 周日"
}

返回参数

接口名称 接口类型 接口说明
code string 状态码
msg string 接口名称
city string 城市名称
citycode string 城市ID
cityen string 城市英文名
temp string 实时温度
tempf string 华氏温度
wd string 风向
wden string 风向英文
wdforce string 风力
wdspd string 风速
humidity string 湿度
spt string 气压
uptime string 更新时间
prcp24h string 24小时降雨量
aqi string AQI
pm25 string PM2.5
wether string 天气状况
weathern string 天气状况英文
today string 今天日期
// 暂无层级展示,仅供参考 
{ "code": "状态码", "msg": "接口名称", "city": "城市名称", "citycode": "城市ID", "cityen": "城市英文名", "temp": "实时温度", "tempf": "华氏温度", "wd": "风向", "wden": "风向英文", "wdforce": "风力", "wdspd": "风速", "humidity": "湿度", "spt": "气压", "uptime": "更新时间", "prcp24h": "24小时降雨量", "aqi": "AQI", "pm25": "PM2.5", "wether": "天气状况", "weathern": "天气状况英文", "today": "今天日期" }

小白教程

本教程帮助用户快速对接全国天气新版 - 长期稳定接口,仍有疑问请联系开发者获取技术协助

实时调试

部分视频、图片或其他接口报错、空值并不代表无法对接,请在本地尝试请求参数接口

在线调试

温馨提示:请修改请求参数,未修改可能返回报错

参数名称 参数值(修改后测试)
城市ID下载{
    "code": 200, 
    "msg": "全国天气新接口", 
    "city": "长春", 
    "citycode": "101060101", 
    "cityen": "changchun", 
    "temp": "-19", 
    "tempf": "-2", 
    "wd": "西风", 
    "wden": "W", 
    "wdforce": "2级", 
    "wdspd": "8km/h", 
    "humidity": "50%", 
    "stp": "991", 
    "uptime": "00:00", 
    "prcp24h": "0", 
    "aqi": "49", 
    "pm25": "49", 
    "wether": "多云", 
    "weathern": "Cloudy", 
    "today": "2022-12-18 周日"
}