取消
今日天气:高低温风向风力风速天气图标气压能见度降雨AQIPM2
31786
25
226134354
  • API调试: 演示GET
    接口地址: /apis/weather/
    请求方法: GET
    //api.help.bj.cn/apis/weather/?id=101060101
    城市编码下载:http://api.help.bj.cn/api/CityCode.XLS
    请求参数: UrlParam
    参数名 类型 必填 描述 默认值
    idString城市编码(如:101060101为长春)101060101
    返回说明:JSON格式,UTF-8编码。
    返回事例:{
        "status": "0",
        "cityen": "changchun",
        "city": "长春",
        "citycode": "101060101",
        "temp": "10",
        "tempf": "50",
        "wd": "西风",
        "wden": "W ",
        "wdforce": "3级",
        "wdspd": "<12km/h",
        "uptime": "12:00",
        "weather": "晴",
        "weatheren": "Sunny",
        "weatherimg": "d00",
        "stp": "994",
        "wisib": "35000",
        "humidity": "46%",
        "prcp": "0",
        "prcp24h": "2.2",
        "aqi": "22",
        "pm25": "20",
        "today": "10月17日(星期一)"
    }
    字段说明:{
        "status": "0",  //反馈代码 0成功
        "msg": "反馈信息", //反馈信息
        "cityen": "changchun",  //城市名称英文
        "city": "长春",  //城市名称
        "citycode": "101060101",  //城市编码
        "temp": "10",  //实时温度
        "tempf": "50",  //华氏温度
        "wd": "西风",  //风向
        "wden": "W",  //风向英文
        "wdforce": "3级",  //风力
        "wdspd": "<12km/h",  //风速
        "uptime": "12:00",  //更新时间
        "weather": "晴",  //天气状况
        "weatheren": "Sunny",  //天气状况英文
        "weatherimg": "d00",  //天气状况图标
        "stp": "994",  //气压
        "wisib": "35000",  //能见度
        "humidity": "46%",  //湿度
        "prcp": "0",  //降雨
        "prcp24h": "2.2",  //24小时降雨量
        "aqi": "22",  //AQI
        "pm25": "20",  //PM2.5
        "today": "10月17日(星期一)"  //今天日期
    }
  • 评论:

轻触这里

关闭目录