天气预报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

相关文章
|
19天前
|
网络协议 API
检测指定TCP端口开放状态免费API接口教程
此API用于检测指定TCP端口是否开放,支持POST/GET请求。需提供用户ID、KEY、目标主机,可选指定端口(默认80)和地区(默认国内)。返回状态码、信息提示、检测主机、端口及状态(开放或关闭)。示例中ID和KEY为公共测试用,建议使用个人ID和KEY以享受更高调用频率。
36 14
|
20天前
|
API
获取网页状态码[可指定地域]免费API接口教程
该接口用于获取指定网址的访问状态码,支持从国内、香港、美国等地域节点访问。通过POST或GET请求,需提供用户ID、KEY及目标网址等参数。返回结果包括状态码和信息提示。 示例:https://cn.apihz.cn/api/wangzhan/getcode.php?id=88888888&key=88888888&type=1&url=www.apihz.cn。
|
20天前
|
缓存 算法 API
查询域名WHOIS信息免费API接口教程
该API用于查询顶级域名的WHOIS信息,不支持国别域名和中文域名。通过POST或GET请求,需提供用户ID、KEY及待查询域名。返回信息包括域名状态、注册商、时间等详细数据。示例与文档见官网。
|
20天前
|
前端开发 JavaScript API
提取网页所有链接免费API接口教程
此API用于提取指定网页内的所有链接信息并进行分类,支持POST和GET请求方式。需提供用户ID、KEY及目标网址等参数,可选指定访问节点。返回结果包括状态码、信息提示及各类链接集合,如图片、视频、文档等。示例中展示了请求格式与返回数据结构。
|
8天前
|
人工智能 自然语言处理 API
Multimodal Live API:谷歌推出新的 AI 接口,支持多模态交互和低延迟实时互动
谷歌推出的Multimodal Live API是一个支持多模态交互、低延迟实时互动的AI接口,能够处理文本、音频和视频输入,提供自然流畅的对话体验,适用于多种应用场景。
52 3
Multimodal Live API:谷歌推出新的 AI 接口,支持多模态交互和低延迟实时互动
|
3天前
|
前端开发 API 数据库
Next 编写接口api
Next 编写接口api
|
10天前
|
XML JSON 缓存
阿里巴巴商品详情数据接口(alibaba.item_get) 丨阿里巴巴 API 实时接口指南
阿里巴巴商品详情数据接口(alibaba.item_get)允许商家通过API获取商品的详细信息,包括标题、描述、价格、销量、评价等。主要参数为商品ID(num_iid),支持多种返回数据格式,如json、xml等,便于开发者根据需求选择。使用前需注册并获得App Key与App Secret,注意遵守使用规范。
|
9天前
|
JSON API 开发者
淘宝买家秀数据接口(taobao.item_review_show)丨淘宝 API 实时接口指南
淘宝买家秀数据接口(taobao.item_review_show)可获取买家上传的图片、视频、评论等“买家秀”内容,为潜在买家提供真实参考,帮助商家优化产品和营销策略。使用前需注册开发者账号,构建请求URL并发送GET请求,解析响应数据。调用时需遵守平台规定,保护用户隐私,确保内容真实性。
|
9天前
|
搜索推荐 数据挖掘 API
淘宝天猫商品评论数据接口丨淘宝 API 实时接口指南
淘宝天猫商品评论数据接口(Taobao.item_review)提供全面的评论信息,包括文字、图片、视频评论、评分、追评等,支持实时更新和高效筛选。用户可基于此接口进行数据分析,支持情感分析、用户画像构建等,同时确保数据使用的合规性和安全性。使用步骤包括注册开发者账号、创建应用获取 API 密钥、发送 API 请求并解析返回数据。适用于电商商家、市场分析人员和消费者。
|
19天前
|
JSON API 开发工具
淘宝实时 API 接口丨淘宝商品详情接口(Taobao.item_get)
淘宝商品详情接口(Taobao.item_get)允许开发者获取商品的详细信息,包括基本信息、描述、卖家资料、图片、属性及销售情况等。开发者需注册账号、创建应用并获取API密钥,通过构建请求获取JSON格式数据,注意遵守平台规则,合理使用接口,确保数据准确性和时效性。
下一篇
DataWorks