该接口返回最近7日天气,包含每日天气情况、高温低温、风力风向、24小时天气、日出日落等,可按城市编号询。
地区权限 | 请求限制 | 使用方案(报价为不开票价格) | 发票 | |
---|---|---|---|---|
全国所有市区县 | 每日2万次 | 500/一年 | 2000/永久 | 可开普票/电子票/专票 |
全国所有市区县 | 每日5万次 | 550/一年 | 2200/永久 | 可开普票/电子票/专票 |
全国所有市区县 | 每日10万次 | 650/一年 | 2600/永久 | 可开普票/电子票/专票 |
全国所有市区县 | 每日20万次 | 1000/一年 | 4000/永久 | 可开普票/电子票/专票 |
全国所有市区县 | 每日50万次 | 2000/一年 | 8000/永久 | 可开普票/电子票/专票 |
全国所有市区县 | 每日百万~千万次 | 联系客服开通独享版本,最低12800/年 | 可开普票/电子票/专票 |
请求次数限制仅限于单个APPID每日请求次数不超规定范围,并不会限制使用的项目数量、App、设备及IP等。
请求方式及url:
请求方式:GET
接口地址:(请将线路地址设置在服务端, 为动态可修改的, 请勿在C端直连接口, 防止遇到网络问题导致程序异常)
http://spot.yiketianqi.com/
请求示例
http://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下载。
部分测试景区ID:
景区ID | 景区名称 | 级别 | 级联省份 | 级联城市 |
---|---|---|---|---|
144944 | 孤峰山 | 3A | 山西 | 运城 |
168162 | 平遥古城 | 4A | 山西 | 晋中 |
174785 | 山海关古城 | 5A | 河北 | 秦皇岛 |
184551 | 黄鹤楼 | 5A | 湖北 | 武汉 |
249857 | 趵突泉公园 | 4A | 山东 | 济南 |
323472 | 老君山 | 5A | 河南 | 洛阳 |
378126 | 崂山风景区 | 5A | 山东 | 青岛 |
响应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级"
}
]
}
]
}