取消
6天天气预报
3230
6
1891309
  • API调试: 演示GET
    接口地址: /apis/weather6d
    请求方法: GET
    http://api.help.bj.cn/apis/weather6d/?id=101060101
    城市编码下载:http://api.help.bj.cn/api/CityCode.XLS
    请求参数: UrlParam
    参数名 类型 必填 描述 默认值
    idString城市编码(如:101060101代表长春)101060101
    返回说明:JSON格式,UTF-8编码。
    返回事例:{
        "msg": "实时+4day+昨天+AQI",
        "status": "0",
        "data": {
            "temp": "0",
            "life": "昼夜温差较大,较易发生感冒,请适当增减衣服。体质较弱的朋友请注意防护。",
            "forecast": [
                {
                    "wind": "东南风",
                    "windforce": "微风级",
                    "temphigh": "6",
                    "weather": "多云",
                    "templow": "-0",
                    "date": "5日 星期六"
                },
                {
                    "wind": "东北风",
                    "windforce": "3-4级",
                    "temphigh": "2",
                    "weather": "多云",
                    "templow": "-7",
                    "date": "6日 星期天"
                },
                {
                    "wind": "东北风",
                    "windforce": "微风级",
                    "temphigh": "-1",
                    "weather": "晴",
                    "templow": "-3",
                    "date": "7日 星期一"
                },
                {
                    "wind": "东风",
                    "windforce": "微风级",
                    "temphigh": "-2",
                    "weather": "小到中雪",
                    "templow": "-9",
                    "date": "8日 星期二"
                },
                {
                    "wind": "北风",
                    "windforce": "3-4级",
                    "temphigh": "-3",
                    "weather": "晴",
                    "templow": "-11",
                    "date": "9日 星期三"
                }
            ],
            "yesterday": {
                "windforce": "微风",
                "wind": "东南风",
                "temphigh": "6",
                "weather": "多云",
                "templow": "-3",
                "date": "4日 星期五"
            },
            "aqi": "214",
            "city": "长春"
        }
    }
    字段说明:{
        "msg": "实时+4day+昨天+AQI",//反馈信息
        "status": "0",//反馈代码
        "data": {
            "temp": "0",//温度
            "life": "昼夜温差较大,较易发生感冒,请适当增减衣服。体质较弱的朋友请注意防护。",//提示
            "forecast": [
                {
                    "wind": "东南风",//风向
                    "windforce": "微风级",//风力
                    "temphigh": "6",//高温
                    "weather": "多云",//天气
                    "templow": "-0",//低温
                    "date": "5日 星期六"//日期
                },
                {
                    "wind": "东北风",
                    "windforce": "3-4级",
                    "temphigh": "2",
                    "weather": "多云",
                    "templow": "-7",
                    "date": "6日 星期天"
                },
                {
                    "wind": "东北风",
                    "windforce": "微风级",
                    "temphigh": "-1",
                    "weather": "晴",
                    "templow": "-3",
                    "date": "7日 星期一"
                },
                {
                    "wind": "东风",
                    "windforce": "微风级",
                    "temphigh": "-2",
                    "weather": "小到中雪",
                    "templow": "-9",
                    "date": "8日 星期二"
                },
                {
                    "wind": "北风",
                    "windforce": "3-4级",
                    "temphigh": "-3",
                    "weather": "晴",
                    "templow": "-11",
                    "date": "9日 星期三"
                }
            ],
            "yesterday": {
                "windforce": "微风",
                "wind": "东南风",
                "temphigh": "6",
                "weather": "多云",
                "templow": "-3",
                "date": "4日 星期五"
            },
            "aqi": "214",
            "city": "长春"
        }
    }
  • 评论:

轻触这里

关闭目录