文章内容
接口简介:

15日天气预报,根据指定IP获取墨迹天气预报。



请求地址:

https://cn.apihz.cn/api/tianqi/tqybmoji15ip.php



请求方式:

POST或GET。



请求参数:

【名称】【参数】【必填】【说明】

【用户ID】【id】【是】【用户中心的数字ID,例:id=10000000】

【用户KEY】【key】【是】【用户中心通讯秘钥,例:key=15he5h15ty854j5sr152hs2】

【IP地址】【ip】【否】【要查询天气的IP地址,如为空则默认为接口访问者IP,如查询失败则默认查询北京天气预报。例:ip=49.234.56.78】



返回参数:

【名称】【参数】【说明】

【状态码】【code】【200成功,400错误】

【信息提示】【msg】【如果状态码返回400则msg返回错误提示】

【地点】【place】【返回查询地点】

【结果集】【data】【返回15天天气结果集】

【星期】【week1】【返回星期几】

【日历】【week2】【返回日历】

【天气1】【wea1】【当日天气开始】

【天气2】【wea2】【当日天气结束,开始加结束表示,多云转雷阵雨】

【最高温度】【wendu1】【返回当日最高温度】

【最低温度】【wendu2】【返回当日最低温度】

【天气1图标】【img1】【返回当日天气1图标地址】

【天气2图标】【img2】【返回当日天气2图标地址】



GET请求示例:

https://cn.apihz.cn/api/tianqi/tqybmoji15ip.php?id=88888888&key=88888888&ip=49.234.56.78

注意:示例里的ID与KEY为公共ID与KEY,共享每分钟调用频次限制,接口本身免费,请使用自己的ID与KEY,独享每分钟调用频次。每日调用无上限。



POST请求示例:

请根据开发语言自行POST。



返回数据示例:

示例:{"code":400,"msg":"通讯秘钥错误。"}

示例:{"data":[{"week1":"周四","week2":"04/04","wea1":"少云","wea2":"雷阵雨","wendu1":"25°","wendu2":"17°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w1.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w4.png"},{"week1":"周五","week2":"04/05","wea1":"阴","wea2":"阵雨","wendu1":"21°","wendu2":"17°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w33.png"},{"week1":"周六","week2":"04/06","wea1":"阵雨","wea2":"阵雨","wendu1":"18°","wendu2":"15°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w3.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w33.png"},{"week1":"周日","week2":"04/07","wea1":"阴","wea2":"阵雨","wendu1":"19°","wendu2":"15°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w33.png"},{"week1":"周一","week2":"04/08","wea1":"阴","wea2":"阵雨","wendu1":"20°","wendu2":"13°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w33.png"},{"week1":"周二","week2":"04/09","wea1":"阴","wea2":"阴","wendu1":"20°","wendu2":"15°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png"},{"week1":"周三","week2":"04/10","wea1":"阴","wea2":"阴","wendu1":"23°","wendu2":"15°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png"},{"week1":"周四","week2":"04/11","wea1":"阴","wea2":"阴","wendu1":"23°","wendu2":"15°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png"},{"week1":"周五","week2":"04/12","wea1":"阴","wea2":"阴","wendu1":"25°","wendu2":"16°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png"},{"week1":"周六","week2":"04/13","wea1":"少云","wea2":"阴","wendu1":"26°","wendu2":"17°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w1.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png"},{"week1":"周日","week2":"04/14","wea1":"阴","wea2":"少云","wendu1":"27°","wendu2":"18°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w31.png"},{"week1":"周一","week2":"04/15","wea1":"少云","wea2":"少云","wendu1":"28°","wendu2":"19°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w1.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w31.png"},{"week1":"周二","week2":"04/16","wea1":"阴","wea2":"阴","wendu1":"27°","wendu2":"20°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png"},{"week1":"周三","week2":"04/17","wea1":"阴","wea2":"阵雨","wendu1":"25°","wendu2":"19°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w33.png"},{"week1":"周四","week2":"04/18","wea1":"阴","wea2":"阴","wendu1":"20°","wendu2":"17°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png"},{"week1":"周五","week2":"04/19","wea1":"阴","wea2":"阴","wendu1":"21°","wendu2":"15°","img1":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png","img2":"https://h5tq.moji.com/tianqi/assets/images/weather/w2.png"}],"code":200,"place":"三星堆博物馆, 四川省, 中国"}



参考资料(版权):

https://www.apihz.cn/api/tianqitqybmoji15ip.html
如有侵权请联系我们删除!
icp备案查询免费API接口教程

 查看详情 

查手机号归属地免费API接口教程

 查看详情 

天气预报1-7天-中国气象局-地址查询版免费API接口教程

 查看详情 

查全球IP归属地-接口盒子官方版。免费API接口教程

 查看详情 

货币汇率换算【每日更新】免费API接口教程

 查看详情 

指定城市生成随机经纬度坐标免费API接口教程

 查看详情 

随缘ICP实时备案查询免费API接口教程

 查看详情 

企业工商信息查询免费API接口教程

 查看详情 

打码验证OCR-双图旋转免费API接口教程

 查看详情 

打码验证OCR-单图旋转免费API接口教程

 查看详情 

打码验证OCR-相似度对比免费API接口教程

 查看详情 

打码验证OCR-阴影滑块检测免费API接口教程

 查看详情 

打码验证OCR-缺口滑块检测免费API接口教程

 查看详情 

打码验证OCR-按序检测文字坐标免费API接口教程

 查看详情 

打码验证OCR-文字位置检测免费API接口教程

 查看详情 

打码验证OCR-按序检测图标坐标免费API接口教程

 查看详情 

打码验证OCR-图标位置检测免费API接口教程

 查看详情 

打码验证OCR-单行文字识别免费API接口教程

 查看详情 

轻量OCR图片识别-接口盒子【官方优享版】免费API接口教程

 查看详情 

轻量OCR识别语言包名称

 查看详情