欢迎您!

经纬度天气+空气+降水实况

接口标识: lonlatweatherrealtime 价格: 0.0003 元/次 VIP免费
接口简介
经纬度天气+空气+降水实况接口,一次调用同时获取天气实况(温度、天气描述、湿度、风力等)、空气质量实况(AQI、PM2.5、PM10、SO2、NO2、O3、CO)和临近降水预报。支持按经纬度查询,减少接口调用次数。
详细介绍
接口地址: https://www.phpwc.cn/api/lonlatweatherrealtime
请求方式: POST
业务请求参数
参数名类型必填默认值说明
lon string 必填 116.276277 经度,示例:116.276277
lat string 必填 40.041462 纬度,示例:40.041462
响应参数
字段名类型说明
codeint状态码,0=成功
descstring状态描述
data− object 业务数据(成功时返回)
location− object 位置信息
lon string 经度
lat string 纬度
condition− object 天气实况数据
temperature string 当前温度(℃)
weather_desc string 天气描述(如:晴、多云)
weather_code string 天气代码
humidity string 相对湿度
wind_desc string 风向风力描述
air_pressure string 气压
visibility string 能见度
cloud_rate string 云量
feel_temperature string 体感温度(℃)
uv string 紫外线指数
sunrise string 日出时间
sunset string 日落时间
publish_time string 数据发布时间
air− object 空气质量实况数据
aqi string 空气质量指数 AQI
pm25 string PM2.5 浓度(μg/m³)
pm10 string PM10 浓度(μg/m³)
so2 string 二氧化硫浓度(μg/m³)
no2 string 二氧化氮浓度(μg/m³)
o3 string 臭氧浓度(μg/m³)
co string 一氧化碳浓度(mg/m³)
publish_time string 数据发布时间
nowcast− object 临近降水预报
description string 降水预报描述(如:未来两小时无降雨)
request_idstring请求追踪ID
JSON 示例:
调用成功:
{
  "code": 0,
  "desc": "success",
  "data": { ... },
  "request_id": "abc123..."
}
调用失败:
{
  "code": 999,
  "desc": "错误描述",
  "request_id": "abc123..."
}
请先 登录 后使用在线测试

© 网程科技(林州网程科技有限公司)   |  豫ICP备2025120409号-2   |  豫B2-20230220   |  豫公网安备 41058102000262号