天气预报15日-墨迹天气-地址查询版免费API接口教程

简介: 该接口提供15日天气预报服务,通过指定地址获取墨迹天气预报。支持POST或GET请求,需提供用户ID、KEY、省份名称及地点等参数。返回数据包括15天内每天的天气详情,如最高最低温度、天气变化及图标等。示例中使用的ID和KEY为公共测试账号,建议使用个人账号以获得更高调用频率。

接口简介:
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

相关文章
|
10天前
|
存储 人工智能 弹性计算
阿里云弹性计算_加速计算专场精华概览 | 2024云栖大会回顾
2024年9月19-21日,2024云栖大会在杭州云栖小镇举行,阿里云智能集团资深技术专家、异构计算产品技术负责人王超等多位产品、技术专家,共同带来了题为《AI Infra的前沿技术与应用实践》的专场session。本次专场重点介绍了阿里云AI Infra 产品架构与技术能力,及用户如何使用阿里云灵骏产品进行AI大模型开发、训练和应用。围绕当下大模型训练和推理的技术难点,专家们分享了如何在阿里云上实现稳定、高效、经济的大模型训练,并通过多个客户案例展示了云上大模型训练的显著优势。
|
14天前
|
存储 人工智能 调度
阿里云吴结生:高性能计算持续创新,响应数据+AI时代的多元化负载需求
在数字化转型的大潮中,每家公司都在积极探索如何利用数据驱动业务增长,而AI技术的快速发展更是加速了这一进程。
|
5天前
|
并行计算 前端开发 物联网
全网首发!真·从0到1!万字长文带你入门Qwen2.5-Coder——介绍、体验、本地部署及简单微调
2024年11月12日,阿里云通义大模型团队正式开源通义千问代码模型全系列,包括6款Qwen2.5-Coder模型,每个规模包含Base和Instruct两个版本。其中32B尺寸的旗舰代码模型在多项基准评测中取得开源最佳成绩,成为全球最强开源代码模型,多项关键能力超越GPT-4o。Qwen2.5-Coder具备强大、多样和实用等优点,通过持续训练,结合源代码、文本代码混合数据及合成数据,显著提升了代码生成、推理和修复等核心任务的性能。此外,该模型还支持多种编程语言,并在人类偏好对齐方面表现出色。本文为周周的奇妙编程原创,阿里云社区首发,未经同意不得转载。
|
11天前
|
人工智能 运维 双11
2024阿里云双十一云资源购买指南(纯客观,无广)
2024年双十一,阿里云推出多项重磅优惠,特别针对新迁入云的企业和初创公司提供丰厚补贴。其中,36元一年的轻量应用服务器、1.95元/小时的16核60GB A10卡以及1元购域名等产品尤为值得关注。这些产品不仅价格亲民,还提供了丰富的功能和服务,非常适合个人开发者、学生及中小企业快速上手和部署应用。
|
6天前
|
人工智能 自然语言处理 前端开发
用通义灵码,从 0 开始打造一个完整APP,无需编程经验就可以完成
通义灵码携手科技博主@玺哥超carry 打造全网第一个完整的、面向普通人的自然语言编程教程。完全使用 AI,再配合简单易懂的方法,只要你会打字,就能真正做出一个完整的应用。本教程完全免费,而且为大家准备了 100 个降噪蓝牙耳机,送给前 100 个完成的粉丝。获奖的方式非常简单,只要你跟着教程完成第一课的内容就能获得。
|
21天前
|
自然语言处理 数据可视化 前端开发
从数据提取到管理:合合信息的智能文档处理全方位解析【合合信息智能文档处理百宝箱】
合合信息的智能文档处理“百宝箱”涵盖文档解析、向量化模型、测评工具等,解决了复杂文档解析、大模型问答幻觉、文档解析效果评估、知识库搭建、多语言文档翻译等问题。通过可视化解析工具 TextIn ParseX、向量化模型 acge-embedding 和文档解析测评工具 markdown_tester,百宝箱提升了文档处理的效率和精确度,适用于多种文档格式和语言环境,助力企业实现高效的信息管理和业务支持。
3960 5
从数据提取到管理:合合信息的智能文档处理全方位解析【合合信息智能文档处理百宝箱】
|
10天前
|
算法 安全 网络安全
阿里云SSL证书双11精选,WoSign SSL国产证书优惠
2024阿里云11.11金秋云创季活动火热进行中,活动月期间(2024年11月01日至11月30日)通过折扣、叠加优惠券等多种方式,阿里云WoSign SSL证书实现优惠价格新低,DV SSL证书220元/年起,助力中小企业轻松实现HTTPS加密,保障数据传输安全。
533 3
阿里云SSL证书双11精选,WoSign SSL国产证书优惠
|
9天前
|
数据采集 人工智能 API
Qwen2.5-Coder深夜开源炸场,Prompt编程的时代来了!
通义千问团队开源「强大」、「多样」、「实用」的 Qwen2.5-Coder 全系列,致力于持续推动 Open Code LLMs 的发展。
|
17天前
|
安全 数据建模 网络安全
2024阿里云双11,WoSign SSL证书优惠券使用攻略
2024阿里云“11.11金秋云创季”活动主会场,阿里云用户通过完成个人或企业实名认证,可以领取不同额度的满减优惠券,叠加折扣优惠。用户购买WoSign SSL证书,如何叠加才能更加优惠呢?
998 3
|
14天前
|
机器学习/深度学习 存储 人工智能
白话文讲解大模型| Attention is all you need
本文档旨在详细阐述当前主流的大模型技术架构如Transformer架构。我们将从技术概述、架构介绍到具体模型实现等多个角度进行讲解。通过本文档,我们期望为读者提供一个全面的理解,帮助大家掌握大模型的工作原理,增强与客户沟通的技术基础。本文档适合对大模型感兴趣的人员阅读。
453 18
白话文讲解大模型| Attention is all you need