开发指南

新用户可测试2000次 比某度更精准、及时,请进入气象台网站对比数据

景区七日天气(景点天气)


该接口返回最近7日天气, 包含每日天气情况、高温低温、风力风向、24小时天气、日出日落等,可按城市编号询。

地区权限 请求限制 使用方案 发票
全国2600多个景点 每日2万次 170/一年(最低) 680/五年(最低) 1326/永久(最低) 可开普票/电子票/专票
全国2600多个景点 每日5万次 300/一年(最低) 1200/五年(最低) 2340/永久(最低) 可开普票/电子票/专票
全国2600多个景点 每日10万次 550/一年(最低) 2200/五年(最低) 4290/永久(最低) 可开普票/电子票/专票
全国2600多个景点 每日20万次 1500/一年(最低) 6000/五年(最低) 11700/永久(最低) 可开普票/电子票/专票
全国2600多个景点 每日50万次 4000/一年(最低) 20000/五年(最低) 31200/永久(最低) 可开普票/电子票/专票
全国所有市区县 每日百万~千万次 联系客服开通独享版本,最低9800/年 可开普票/电子票/专票

请求方式及url:

  • 请求方式:GET

  • 接口地址:(请将线路地址设置为动态可修改的)

  • 线路1(推荐)https://spot.yiketianqi.com/

请求示例

https://spot.yiketianqi.com/?appid=&appsecret=&cityid=118387

请求参数说明:

参数名 必选 类型 说明 备注
appid string 用户appid 注册开发账号
appsecret string 用户appsecret
cityid string 景区ID编号 请参考 景区ID列表
callback string jsonp参数 如: jQuery.Callbacks
vue string 跨域参数 如果您使用的是react、vue、angular请填写值: 1

备注

可联系客服拿全国景区ID表或通过gitee下载。

响应JSON

{
    "cityid":"114461",//景区ID编码
    "level":"5A",//景区分类等级, 取值[5A,4A,3A]
    "province":"黑龙江",//所在省份
    "leader":"哈尔滨",//所在市
    "city":"太阳岛风景区",//景区名称
    "update_time":"2021-04-16 13:47:07",//更新时间
    "data":[//数据列表,共7条
        {
            "date":"2021-04-16",//当前日期
            "wea":"小雨转阴",//天气情况
            "wea_img":"yu",//天气情况图标
            "wea_day":"小雨",//白天天气
            "wea_day_img":"yu",
            "wea_night":"阴",//夜间天气
            "wea_night_img":"yin",
            "tem_day":"10",//白天温度[高温]
            "tem_night":"1",//夜间天气[低温]
            "win_day":"南风",//白天风向
            "win_night":"东南风",//夜间风向
            "win_speed":"3-4级转<3级",//风力
            "sunrise":"04:45",//日出
            "sunset":"18:21",//日落
            "hours":[//小时数据, 后几天小时有间隔, 不都是固定24条
                {
                    "hours":"08时", //时间点
                    "wea":"阴", //天气情况
                    "wea_img":"yin", //图标
                    "tem":"9", //温度
                    "win":"南风", //风向
                    "win_speed":"3-4级" //风力
                },
                {
                    "hours":"09时",
                    "wea":"小雨",
                    "wea_img":"yu",
                    "tem":"8",
                    "win":"南风",
                    "win_speed":"4-5级"
                },
                {
                    "hours":"10时",
                    "wea":"小雨",
                    "wea_img":"yu",
                    "tem":"8",
                    "win":"南风",
                    "win_speed":"4-5级"
                },
                {
                    "hours":"11时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"8",
                    "win":"南风",
                    "win_speed":"3-4级"
                },
                {
                    "hours":"12时",
                    "wea":"小雨",
                    "wea_img":"yu",
                    "tem":"8",
                    "win":"南风",
                    "win_speed":"4-5级"
                },
                {
                    "hours":"13时",
                    "wea":"小雨",
                    "wea_img":"yu",
                    "tem":"9",
                    "win":"南风",
                    "win_speed":"4-5级"
                },
                {
                    "hours":"14时",
                    "wea":"小雨",
                    "wea_img":"yu",
                    "tem":"9",
                    "win":"南风",
                    "win_speed":"3-4级"
                },
                {
                    "hours":"15时",
                    "wea":"小雨",
                    "wea_img":"yu",
                    "tem":"10",
                    "win":"南风",
                    "win_speed":"3-4级"
                },
                {
                    "hours":"16时",
                    "wea":"小雨",
                    "wea_img":"yu",
                    "tem":"10",
                    "win":"南风",
                    "win_speed":"3-4级"
                },
                {
                    "hours":"17时",
                    "wea":"小雨",
                    "wea_img":"yu",
                    "tem":"10",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"18时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"8",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"19时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"7",
                    "win":"东南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"20时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"5",
                    "win":"东南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"21时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"5",
                    "win":"东南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"22时",
                    "wea":"阴",
                    "wea_img":"yin",
                    "tem":"5",
                    "win":"东南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"23时",
                    "wea":"阴",
                    "wea_img":"yin",
                    "tem":"5",
                    "win":"东南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"00时",
                    "wea":"阴",
                    "wea_img":"yin",
                    "tem":"5",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"01时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"4",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"02时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"4",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"03时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"1",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"04时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"1",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"05时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"2",
                    "win":"西南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"06时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"6",
                    "win":"西南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"07时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"4",
                    "win":"西南风",
                    "win_speed":"<3级"
                }
            ]
        },
        {
            "date":"2021-04-16",
            "wea":"小雨转多云",
            "wea_img":"yun",
            "wea_day":"小雨",
            "wea_day_img":"yu",
            "wea_night":"多云",
            "wea_night_img":"yun",
            "tem_day":"9",
            "tem_night":"0",
            "win_day":"西北风",
            "win_night":"西风",
            "win_speed":"<3级",
            "sunrise":"04:44",
            "sunset":"18:22",
            "hours":[
                {
                    "hours":"08时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"6",
                    "win":"西风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"09时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"7",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"10时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"8",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"11时",
                    "wea":"阴",
                    "wea_img":"yin",
                    "tem":"8",
                    "win":"北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"12时",
                    "wea":"阴",
                    "wea_img":"yin",
                    "tem":"7",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"13时",
                    "wea":"小雨",
                    "wea_img":"yu",
                    "tem":"7",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"14时",
                    "wea":"阴",
                    "wea_img":"yin",
                    "tem":"6",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"15时",
                    "wea":"小雨",
                    "wea_img":"yu",
                    "tem":"6",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"16时",
                    "wea":"小雨",
                    "wea_img":"yu",
                    "tem":"5",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"17时",
                    "wea":"小雨",
                    "wea_img":"yu",
                    "tem":"5",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"18时",
                    "wea":"阴",
                    "wea_img":"yin",
                    "tem":"5",
                    "win":"北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"19时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"5",
                    "win":"北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"20时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"4",
                    "win":"北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"21时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"4",
                    "win":"北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"22时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"4",
                    "win":"北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"23时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"4",
                    "win":"北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"00时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"3",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"01时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"3",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"02时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"2",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"03时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"2",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"04时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"1",
                    "win":"东南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"05时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"0",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"06时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"2",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"07时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"4",
                    "win":"西北风",
                    "win_speed":"<3级"
                }
            ]
        },
        {
            "date":"2021-04-17",
            "wea":"晴转阴",
            "wea_img":"yin",
            "wea_day":"晴",
            "wea_day_img":"qing",
            "wea_night":"阴",
            "wea_night_img":"yin",
            "tem_day":"15",
            "tem_night":"3",
            "win_day":"西风",
            "win_night":"南风",
            "win_speed":"<3级",
            "sunrise":"04:42",
            "sunset":"18:23",
            "hours":[
                {
                    "hours":"08时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"6",
                    "win":"西风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"09时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"8",
                    "win":"西风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"10时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"10",
                    "win":"西风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"11时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"12",
                    "win":"西风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"12时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"13",
                    "win":"西风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"13时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"14",
                    "win":"西风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"14时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"15",
                    "win":"西风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"15时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"15",
                    "win":"西风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"16时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"14",
                    "win":"西风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"17时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"14",
                    "win":"西风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"18时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"13",
                    "win":"西风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"19时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"10",
                    "win":"西南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"20时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"8",
                    "win":"西南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"21时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"9",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"22时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"9",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"23时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"9",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"00时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"8",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"01时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"6",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"02时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"5",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"03时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"5",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"04时",
                    "wea":"阴",
                    "wea_img":"yin",
                    "tem":"6",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"05时",
                    "wea":"阴",
                    "wea_img":"yin",
                    "tem":"7",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"06时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"8",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"07时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"9",
                    "win":"西南风",
                    "win_speed":"<3级"
                }
            ]
        },
        {
            "date":"2021-04-18",
            "wea":"晴",
            "wea_img":"qing",
            "wea_day":"晴",
            "wea_day_img":"qing",
            "wea_night":"晴",
            "wea_night_img":"qing",
            "tem_day":"19",
            "tem_night":"2",
            "win_day":"北风",
            "win_night":"北风",
            "win_speed":"3-4级",
            "sunrise":"04:40",
            "sunset":"18:24",
            "hours":[
                {
                    "hours":"08时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"10",
                    "win":"西风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"11时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"15",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"14时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"19",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"17时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"15",
                    "win":"北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"20时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"12",
                    "win":"北风",
                    "win_speed":"3-4级"
                },
                {
                    "hours":"23时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"8",
                    "win":"南风",
                    "win_speed":"3-4级"
                },
                {
                    "hours":"02时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"4",
                    "win":"北风",
                    "win_speed":"3-4级"
                },
                {
                    "hours":"05时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"5",
                    "win":"北风",
                    "win_speed":"3-4级"
                }
            ]
        },
        {
            "date":"2021-04-19",
            "wea":"晴转阴",
            "wea_img":"yin",
            "wea_day":"晴",
            "wea_day_img":"qing",
            "wea_night":"阴",
            "wea_night_img":"yin",
            "tem_day":"13",
            "tem_night":"2",
            "win_day":"西北风",
            "win_night":"西南风",
            "win_speed":"<3级",
            "sunrise":"04:38",
            "sunset":"18:26",
            "hours":[
                {
                    "hours":"08时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"5",
                    "win":"北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"11时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"9",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"14时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"13",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"17时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"10",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"20时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"7",
                    "win":"西北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"23时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"5",
                    "win":"西风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"02时",
                    "wea":"阴",
                    "wea_img":"yin",
                    "tem":"3",
                    "win":"西南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"05时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"7",
                    "win":"西南风",
                    "win_speed":"<3级"
                }
            ]
        },
        {
            "date":"2021-04-20",
            "wea":"阴",
            "wea_img":"yin",
            "wea_day":"阴",
            "wea_day_img":"yin",
            "wea_night":"阴",
            "wea_night_img":"yin",
            "tem_day":"21",
            "tem_night":"11",
            "win_day":"东风",
            "win_night":"东北风",
            "win_speed":"<3级",
            "sunrise":"04:37",
            "sunset":"18:27",
            "hours":[
                {
                    "hours":"08时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"11",
                    "win":"西南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"11时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"16",
                    "win":"西南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"14时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"21",
                    "win":"西南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"17时",
                    "wea":"阴",
                    "wea_img":"yin",
                    "tem":"18",
                    "win":"南风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"20时",
                    "wea":"阴",
                    "wea_img":"yin",
                    "tem":"14",
                    "win":"东风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"23时",
                    "wea":"阴",
                    "wea_img":"yin",
                    "tem":"13",
                    "win":"东风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"02时",
                    "wea":"阴",
                    "wea_img":"yin",
                    "tem":"11",
                    "win":"东风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"05时",
                    "wea":"多云",
                    "wea_img":"yun",
                    "tem":"14",
                    "win":"东风",
                    "win_speed":"<3级"
                }
            ]
        },
        {
            "date":"2021-04-21",
            "wea":"晴",
            "wea_img":"qing",
            "wea_day":"晴",
            "wea_day_img":"qing",
            "wea_night":"晴",
            "wea_night_img":"qing",
            "tem_day":"21",
            "tem_night":"8",
            "win_day":"东北风",
            "win_night":"东风",
            "win_speed":"3-4级转<3级",
            "sunrise":"04:35",
            "sunset":"18:28",
            "hours":[
                {
                    "hours":"08时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"16",
                    "win":"东北风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"11时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"18",
                    "win":"东北风",
                    "win_speed":"3-4级"
                },
                {
                    "hours":"14时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"20",
                    "win":"东北风",
                    "win_speed":"3-4级"
                },
                {
                    "hours":"17时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"17",
                    "win":"东风",
                    "win_speed":"3-4级"
                },
                {
                    "hours":"20时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"13",
                    "win":"东风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"23时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"11",
                    "win":"东风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"02时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"9",
                    "win":"东风",
                    "win_speed":"<3级"
                },
                {
                    "hours":"05时",
                    "wea":"晴",
                    "wea_img":"qing",
                    "tem":"11",
                    "win":"东风",
                    "win_speed":"<3级"
                }
            ]
        }
    ]
}