天气预报-天气查询-全国天气预报
天气预报-天气查询-全国天气预报
curl -X POST https://api.zhuimengapi.com/api/v1/iptq \
-H "X-API-Key: RPA-xxxxxxxx"
-d "ip=your_ip"import requests
url = "https://api.zhuimengapi.com/api/v1/iptq"
headers = {"X-API-Key": "RPA-xxxxxxxx"}
data = {
"ip": "your_ip"
}
res = requests.post(url, data=data, headers=headers)
print(res.json())const axios = require('axios');
axios.post("https://api.zhuimengapi.com/api/v1/iptq", {
ip: "your_ip"
}, {
headers: { "X-API-Key": "RPA-xxxxxxxx" }
}).then(res => console.log(res.data));{
"code": 0,
"msg": "code对应的描述",
"taskNo": "本次请求号",
"data": {
"area": "IP所在地区",
"areaId": "地名id,详见地名说明",
"province": "省份",
"city": "城市",
"now": {},
"dayWeathers": []
},
"data.now.sd": "湿度",
"data.now.aqi": "空气质量",
"data.now.weather": "天气",
"data.now.weather_pic": "天气图标",
"data.now.temperature": "温度",
"data.now.wind_direction": "风向",
"data.now.wind_power": "风级",
"data.dayWeathers.daytime": "日期",
"data.dayWeathers.day_weather": "白天天气",
"data.dayWeathers.day_weather_code": "白天天气编号,详见天气编号",
"data.dayWeathers.day_weather_pic": "白天天气图标",
"data.dayWeathers.day_high_temperature": "白天最高温度",
"data.dayWeathers.day_wind_direction": "白天风向",
"data.dayWeathers.day_wind_power": "白天风级",
"data.dayWeathers.night_weather": "夜间天气",
"data.dayWeathers.night_weather_code": "夜间天气编号",
"data.dayWeathers.night_weather_pic": "夜间天气图标",
"data.dayWeathers.night_low_temperature": "夜间最低温度",
"data.dayWeathers.night_wind_direction": "夜间风向",
"data.dayWeathers.night_wind_power": "夜间风级"
}https://api.zhuimengapi.com/api/v1/iptq
X-API-Key: RPA-xxxxxxxx
ip
string
必填 code
int
必填 msg
string
必填 taskNo
string
必填 data
object
必填 area
string
必填 areaId
string
必填 province
string
必填 city
string
必填 now
object
必填 dayWeathers
array
必填 data.now.sd
string
必填 data.now.aqi
string
必填 data.now.weather
string
必填 data.now.weather_pic
string
必填 data.now.temperature
string
必填 data.now.wind_direction
string
必填 data.now.wind_power
string
必填 data.dayWeathers.daytime
string
必填 data.dayWeathers.day_weather
string
必填 data.dayWeathers.day_weather_code
string
必填 data.dayWeathers.day_weather_pic
string
必填 data.dayWeathers.day_high_temperature
string
必填 data.dayWeathers.day_wind_direction
string
必填 data.dayWeathers.day_wind_power
string
必填 data.dayWeathers.night_weather
string
必填 data.dayWeathers.night_weather_code
string
必填 data.dayWeathers.night_weather_pic
string
必填 data.dayWeathers.night_low_temperature
string
必填 data.dayWeathers.night_wind_direction
string
必填 data.dayWeathers.night_wind_power
string
必填 | 接口路由 | iptq |
| 接口分类 | - |
| 请求方式 | POST |
| 计费方式 | 0.02 积分/次 |
| 频率限制 | 50 次/秒 |
| 认证方式 | X-API-Key |
| 接口提供 | 官方接口 |