文章内容
接口简介:

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



请求地址:

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



请求方式:

POST或GET。



请求参数:

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

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

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

【省份名称】【sheng】【是】【要查询的省份名称,例:sheng=四川,sheng=四川省,sheng=广西,sheng=广西壮族自治区】

【地点】【place】【是】【要查询的地点,可以是某个大型风景区,城市名称,区县级名称。例:place=三星堆博物馆】



返回参数:

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

【状态码】【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/tqybmoji15.php?id=88888888&key=88888888&sheng=四川&place=三星堆博物馆

注意:示例里的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/tianqitqybmoji15.html
如有侵权请联系我们删除!
短网址生成-查询信息免费API接口教程

 查看详情 

短网址生成-指定后缀免费API接口教程

 查看详情 

短网址生成-随机后缀免费API接口教程

 查看详情 

百家号文章内容提取免费API接口教程

 查看详情 

火车车次经停站点查询免费API接口教程

 查看详情 

火车票票价查询免费API接口教程

 查看详情 

火车票余票信息查询免费API接口教程

 查看详情 

微信公众号文章内容提取免费API接口教程

 查看详情 

检查指定网站SSL证书信息免费API接口教程

 查看详情 

国内无法拉取Docker镜像了?这些方法拯救你的Docker

 查看详情 

解决Python报错:ModuleNotFoundError: No module named ‘requests‘

 查看详情 

MySQL删除表数据、清空表命令(truncate、drop、delete 区别)

 查看详情 

国产数据库:目前最火的五款国产数据介绍

 查看详情 

推荐一些好用的数据库管理工具合集

 查看详情 

深入理解分布式锁Redis

 查看详情 

MySQL删除表数据、清空表命令(truncate、drop、delete 区别)

 查看详情 

如何在IDEA中使用DeepSeek

 查看详情 

全球域名WHOIS信息查询免费API接口教程

 查看详情 

sql如何查询表中数据 sql表数据查询技巧

 查看详情 

MySQL中触发器详解 触发器在自动化任务中的应用场景

 查看详情