免费天气api_高速稳定的天气数据_高速稳定的天气API接口

天气API (https://www.tianqiapi.com) 提供的是真正免费的天气api接口

接口没有调用次数、频率、IP等限制!

提供的接口完全满足广大开发者的日常需求, 而且使用接口无需注册, 不需要key, 一行代码就可以搞定

curl "https://www.tianqiapi.com/api/?version=v1"

7日天气 / 15日天气 / 40日天气 / 全球天气 / 每小时预报 /

生活指数 / 空气质量 / 预警信息 / 机场天气 / 每日气象云图 /

白天天气 / 晚上天气 / 每日日出 / 每日日落 / 湿度 / 气压 等等

调用接口可选参数

cityid String 城市ID, 官网提供json和sql数据
city String 城市名称, 不要带市和区; 如: 青岛微山
ip String IP所在城市天气, 默认返回当前IP地区天气

看一下预警信息字段, 类型, 等级, 详细内容

alarm: {
alarm_type: "大风",
alarm_level: "蓝色",
alarm_content: "济南市气象台2019年04月03日16时00分发布大风蓝色预警信号:预计3日夜间至6日我市将出现大风天气,其中3日夜间至5日南风短时东北风4~5级阵风7级,6日北风4~5级阵风7级,森林火险等级极高。(预警信息来源:国家预警信息发布中心)"
}

目前平台收集了14种天气图标素材供大家下载使用, 大家可以去官网下载

实况天气, 最近1小时左右天气, 返回字段很全很实用

{
cityid: "101120101",
date: "2019-04-04",
week: "星期四",
update_time: "07:40",
city: "济南",
country: "China",
wea: "晴",
wea_img: "qing",
tem: "15",
win: "南风",
win_speed: "3级",
win_meter: "<12km/h",
humidity: "52%",
visibility: "17.68km",
pressure: "997",
air: "97",
air_pm25: "97",
air_level: "良",
air_tips: "空气好,可以外出活动,除极少数对污染物特别敏感的人群以外,对公众没有危害!",
alarm: {
alarm_type: "大风",
alarm_level: "蓝色",
alarm_content: "济南市气象台2019年04月03日16时00分发布大风蓝色预警信号:预计3日夜间至6日我市将出现大风天气,其中3日夜间至5日南风短时东北风4~5级阵风7级,6日北风4~5级阵风7级,森林火险等级极高。(预警信息来源:国家预警信息发布中心)"
}
}

在看下7日天气接口返回的内容吧

{
cityid: "101110101",
city: "西安",
update_time: "2019-04-04 05:30:00",
data: [
{
day: "04日(星期四)",
date: "2019-04-04",
week: "星期四",
wea: "晴",
wea_img: "qing",
wea_day: "晴",
wea_night: "晴",
tem1: "23",
tem2: "9",
win: [
"西南风",
"西南风"
],
win_speed: "<3级",
sunrise: "06:29",
sunset: "19:06",
air: "54",
air_level: "良",
air_tips: "空气好,可以外出活动,除极少数对污染物特别敏感的人群以外,对公众没有危害!",
alarm: {
alarm_type: "",
alarm_level: "",
alarm_content: ""
},
hours: [
{
hours: "08时",
wea: "晴",
tem: "11",
win: "西南风",
win_speed: "<3级"
},
{
hours: "09时",
wea: "晴",
tem: "13",
win: "西南风",
win_speed: "6-7级"
},
{
hours: "10时",
wea: "晴",
tem: "16",
win: "西南风",
win_speed: "6-7级"
},
{
hours: "11时",
wea: "晴",
tem: "18",
win: "西南风",
win_speed: "<3级"
},
{
hours: "12时",
wea: "晴",
tem: "20",
win: "西南风",
win_speed: "<3级"
},
{
hours: "13时",
wea: "晴",
tem: "21",
win: "西南风",
win_speed: "<3级"
},
{
hours: "14时",
wea: "晴",
tem: "22",
win: "西南风",
win_speed: "<3级"
}
],
index: [
{
title: "紫外线指数",
level: "中等",
desc: "涂擦SPF大于15、PA+防晒护肤品。"
},
{
title: "减肥指数",
level: "五颗星",
desc: "小长假将至,突击甩肉忙。天气较舒适,快去运动吧。"
},
{
title: "血糖指数",
level: "较易波动",
desc: "血糖较易波动,注意监测。"
},
{
title: "穿衣指数",
level: "较舒适",
desc: "建议穿薄外套或牛仔裤等服装。"
},
{
title: "洗车指数",
level: "较适宜",
desc: "无雨且风力较小,易保持清洁度。"
},
{
title: "空气污染扩散指数",
level: "中",
desc: "易感人群应适当减少室外活动。"
}
]
},
{
day: "05日(星期五)",
date: "2019-04-05",
week: "星期五",
wea: "晴",
wea_img: "qing",
wea_day: "晴",
wea_night: "晴",
tem1: "27",
tem2: "9",
win: [
"西南风",
"南风"
],
win_speed: "3-4级转<3级",
sunrise: "06:27",
sunset: "19:06",
air: "",
air_level: "",
air_tips: "",
alarm: {
alarm_type: "",
alarm_level: "",
alarm_content: ""
},
hours: [
{
hours: "08时",
wea: "晴",
tem: "12",
win: "西南风",
win_speed: "<3级"
},
{
hours: "09时",
wea: "晴",
tem: "16",
win: "西南风",
win_speed: "<3级"
},
{
hours: "10时",
wea: "晴",
tem: "19",
win: "西南风",
win_speed: "<3级"
},
{
hours: "11时",
wea: "晴",
tem: "22",
win: "西南风",
win_speed: "3-4级"
},
{
hours: "12时",
wea: "晴",
tem: "24",
win: "西南风",
win_speed: "3-4级"
},
{
hours: "13时",
wea: "晴",
tem: "26",
win: "西南风",
win_speed: "3-4级"
},
{
hours: "14时",
wea: "晴",
tem: "27",
win: "西南风",
win_speed: "3-4级"
}
],
index: [
{
title: "紫外线指数",
level: "强",
desc: "涂擦SPF大于15、PA+防晒护肤品。"
},
{
title: "减肥指数",
level: "三颗星",
desc: "风有点大,可选择室内运动燃脂。"
},
{
title: "血糖指数",
level: "较易波动",
desc: "血糖较易波动,注意监测。"
},
{
title: "穿衣指数",
level: "较舒适",
desc: "建议穿薄外套或牛仔裤等服装。"
},
{
title: "洗车指数",
level: "较适宜",
desc: "无雨且风力较小,易保持清洁度。"
},
{
title: "空气污染扩散指数",
level: "良",
desc: "气象条件有利于空气污染物扩散。"
}
]
},
{
day: "06日(星期六)",
date: "2019-04-06",
week: "星期六",
wea: "晴",
wea_img: "qing",
wea_day: "晴",
wea_night: "晴",
tem1: "32",
tem2: "12",
win: [
"西南风",
"北风"
],
win_speed: "3-4级转<3级",
sunrise: "06:26",
sunset: "19:07",
air: "",
air_level: "",
air_tips: "",
alarm: {
alarm_type: "",
alarm_level: "",
alarm_content: ""
},
hours: [
{
hours: "08时",
wea: "晴",
tem: "12",
win: "南风",
win_speed: "<3级"
},
{
hours: "09时",
wea: "晴",
tem: "16",
win: "西南风",
win_speed: "5-6级"
},
{
hours: "10时",
wea: "晴",
tem: "21",
win: "西南风",
win_speed: "4-5级"
},
{
hours: "11时",
wea: "晴",
tem: "26",
win: "西南风",
win_speed: "3-4级"
},
{
hours: "12时",
wea: "晴",
tem: "28",
win: "西南风",
win_speed: "3-4级"
},
{
hours: "13时",
wea: "晴",
tem: "29",
win: "西南风",
win_speed: "3-4级"
},
{
hours: "14时",
wea: "晴",
tem: "31",
win: "西南风",
win_speed: "3-4级"
}
],
index: [
{
title: "紫外线指数",
level: "很强",
desc: "涂擦SPF20以上,PA++护肤品,避强光。"
},
{
title: "减肥指数",
level: "一颗星",
desc: "天热风大,可选择低强度运动。"
},
{
title: "血糖指数",
level: "易波动",
desc: "血糖易波动,注意监测。"
},
{
title: "穿衣指数",
level: "炎热",
desc: "建议穿短衫、短裤等清凉夏季服装。"
},
{
title: "洗车指数",
level: "较适宜",
desc: "无雨且风力较小,易保持清洁度。"
},
{
title: "空气污染扩散指数",
level: "良",
desc: "气象条件有利于空气污染物扩散。"
}
]
},
{
day: "07日(星期日)",
date: "2019-04-07",
week: "星期日",
wea: "晴转阴",
wea_img: "yin",
wea_day: "晴",
wea_night: "阴",
tem1: "31",
tem2: "17",
win: [
"东南风",
"东北风"
],
win_speed: "<3级转3-4级",
sunrise: "06:25",
sunset: "19:08",
air: "",
air_level: "",
air_tips: "",
alarm: {
alarm_type: "",
alarm_level: "",
alarm_content: ""
},
hours: [
{
hours: "08时",
wea: "晴",
tem: "15",
win: "北风",
win_speed: "<3级"
},
{
hours: "11时",
wea: "晴",
tem: "23",
win: "西南风",
win_speed: "<3级"
},
{
hours: "14时",
wea: "晴",
tem: "30",
win: "东南风",
win_speed: "<3级"
},
{
hours: "17时",
wea: "晴",
tem: "27",
win: "东风",
win_speed: "<3级"
},
{
hours: "20时",
wea: "晴",
tem: "23",
win: "东南风",
win_speed: "<3级"
},
{
hours: "23时",
wea: "多云",
tem: "23",
win: "东南风",
win_speed: "3-4级"
},
{
hours: "02时",
wea: "阴",
tem: "20",
win: "东北风",
win_speed: "3-4级"
}
],
index: [
{
title: "紫外线指数",
level: "强",
desc: "涂擦SPF大于15、PA+防晒护肤品。"
},
{
title: "减肥指数",
level: "一颗星",
desc: "天气有点热,运动多补水。"
},
{
title: "血糖指数",
level: "易波动",
desc: "血糖易波动,注意监测。"
},
{
title: "穿衣指数",
level: "热",
desc: "适合穿T恤、短薄外套等夏季服装。"
},
{
title: "洗车指数",
level: "较适宜",
desc: "无雨且风力较小,易保持清洁度。"
},
{
title: "空气污染扩散指数",
level: "中",
desc: "易感人群应适当减少室外活动。"
}
]
},
{
day: "08日(星期一)",
date: "2019-04-08",
week: "星期一",
wea: "阴转小雨",
wea_img: "yin",
wea_day: "阴",
wea_night: "小雨",
tem1: "26",
tem2: "9",
win: [
"东北风",
"东北风"
],
win_speed: "4-5级转3-4级",
sunrise: "06:23",
sunset: "19:09",
air: "",
air_level: "",
air_tips: "",
alarm: {
alarm_type: "",
alarm_level: "",
alarm_content: ""
},
hours: [
{
hours: "08时",
wea: "阴",
tem: "19",
win: "东北风",
win_speed: "3-4级"
},
{
hours: "11时",
wea: "多云",
tem: "22",
win: "东风",
win_speed: "4-5级"
},
{
hours: "14时",
wea: "多云",
tem: "26",
win: "东北风",
win_speed: "4-5级"
},
{
hours: "17时",
wea: "多云",
tem: "22",
win: "东北风",
win_speed: "4-5级"
},
{
hours: "20时",
wea: "阴",
tem: "19",
win: "东北风",
win_speed: "4-5级"
},
{
hours: "23时",
wea: "小雨",
tem: "14",
win: "南风",
win_speed: "4-5级"
},
{
hours: "02时",
wea: "多云",
tem: "12",
win: "东北风",
win_speed: "3-4级"
}
],
index: [
{
title: "紫外线指数",
level: "最弱",
desc: "辐射弱,涂擦SPF8-12防晒护肤品。"
},
{
title: "减肥指数",
level: "三颗星",
desc: "风有点大,可选择室内运动燃脂。"
},
{
title: "血糖指数",
level: "易波动",
desc: "气温多变,血糖易波动,注意监测血糖变化。"
},
{
title: "穿衣指数",
level: "较舒适",
desc: "建议穿薄外套或牛仔裤等服装。"
},
{
title: "洗车指数",
level: "不宜",
desc: "有雨,雨水和泥水会弄脏爱车。"
},
{
title: "空气污染扩散指数",
level: "良",
desc: "气象条件有利于空气污染物扩散。"
}
]
},
{
day: "09日(星期二)",
date: "2019-04-09",
week: "星期二",
wea: "多云转晴",
wea_img: "yun",
wea_day: "多云",
wea_night: "晴",
tem1: "22",
tem2: "13",
win: [
"东北风",
"东北风"
],
win_speed: "<3级",
sunrise: "06:22",
sunset: "19:09",
air: "",
air_level: "",
air_tips: "",
alarm: {
alarm_type: "",
alarm_level: "",
alarm_content: ""
},
hours: [
{
hours: "08时",
wea: "晴",
tem: "11",
win: "东北风",
win_speed: "<3级"
},
{
hours: "11时",
wea: "多云",
tem: "16",
win: "东北风",
win_speed: "<3级"
},
{
hours: "14时",
wea: "多云",
tem: "21",
win: "东北风",
win_speed: "<3级"
},
{
hours: "17时",
wea: "晴",
tem: "21",
win: "东北风",
win_speed: "<3级"
},
{
hours: "20时",
wea: "晴",
tem: "18",
win: "东北风",
win_speed: "<3级"
},
{
hours: "23时",
wea: "晴",
tem: "16",
win: "东风",
win_speed: "<3级"
},
{
hours: "02时",
wea: "晴",
tem: "15",
win: "东北风",
win_speed: "<3级"
}
],
index: [
{
title: "紫外线指数",
level: "弱",
desc: "辐射较弱,涂擦SPF12-15、PA+护肤品。"
},
{
title: "减肥指数",
level: "五颗星",
desc: "天气较舒适,减肥正当时。"
},
{
title: "血糖指数",
level: "较易波动",
desc: "血糖较易波动,注意监测。"
},
{
title: "穿衣指数",
level: "较舒适",
desc: "建议穿薄外套或牛仔裤等服装。"
},
{
title: "洗车指数",
level: "较适宜",
desc: "无雨且风力较小,易保持清洁度。"
},
{
title: "空气污染扩散指数",
level: "中",
desc: "易感人群应适当减少室外活动。"
}
]
},
{
day: "10日(星期三)",
date: "2019-04-10",
week: "星期三",
wea: "晴",
wea_img: "qing",
wea_day: "晴",
wea_night: "晴",
tem1: "23",
tem2: "9",
win: [
"东北风",
"东北风"
],
win_speed: "<3级",
sunrise: "06:21",
sunset: "19:10",
air: "",
air_level: "",
air_tips: "",
alarm: {
alarm_type: "",
alarm_level: "",
alarm_content: ""
},
hours: [
{
hours: "08时",
wea: "晴",
tem: "15",
win: "东北风",
win_speed: "<3级"
},
{
hours: "11时",
wea: "晴",
tem: "20",
win: "东北风",
win_speed: "<3级"
},
{
hours: "14时",
wea: "晴",
tem: "22",
win: "东北风",
win_speed: "<3级"
},
{
hours: "17时",
wea: "晴",
tem: "22",
win: "东北风",
win_speed: "<3级"
},
{
hours: "20时",
wea: "晴",
tem: "14",
win: "东北风",
win_speed: "<3级"
},
{
hours: "23时",
wea: "晴",
tem: "13",
win: "东南风",
win_speed: "<3级"
},
{
hours: "02时",
wea: "晴",
tem: "12",
win: "东北风",
win_speed: "<3级"
}
],
index: [
{
title: "紫外线指数",
level: "中等",
desc: "涂擦SPF大于15、PA+防晒护肤品。"
},
{
title: "减肥指数",
level: "五颗星",
desc: "天气较舒适,减肥正当时。"
},
{
title: "血糖指数",
level: "较易波动",
desc: "血糖较易波动,注意监测。"
},
{
title: "穿衣指数",
level: "较舒适",
desc: "建议穿薄外套或牛仔裤等服装。"
},
{
title: "洗车指数",
level: "较适宜",
desc: "无雨且风力较小,易保持清洁度。"
},
{
title: "空气污染扩散指数",
level: "中",
desc: "易感人群应适当减少室外活动。"
}
]
}
]
}

  

欢迎小伙伴们对接, 有问题联系网站技术QQ就可以了, 随时解答~

原文地址:https://www.cnblogs.com/ccjin/p/10652832.html

时间: 2024-10-29 10:22:54

免费天气api_高速稳定的天气数据_高速稳定的天气API接口的相关文章

天气API接口大全(nohacks.cn 收集整理)

自序: 由nohacks.cn 收集整理,来源于网络,版权归原作者所有,基本收集了网络上能使用的大部分天气API接口,作者水平精力有限,难免有遗漏或错误的地方,欢迎反馈,作者网站:http://nohacks.cn 更新记录: 2015.3.2    更新云聚,增加天气网接口. 2015.2.28  增加百度天气图片,感谢网友彬子的反馈. 2015. 2.19 增加百度天气接口,更新中国天气网API. 目录: 1.  中国天气网 1.1  实时天气 API 接口(失效) 1.2  当天天气 AP

简单天气应用开发——API接口

寒假回家无事,想到自学iOS开发已有一段时间,还没做过真正自己的应用,就起了做一个天气预报App的念头. 想到就做.天气预报第一步自然是找到好用的API接口来获取天气信息.在百度上搜索了一圈,找到的都是国家气象局的API,看返回的JSON倒是不错,但仔细一看时间却都是过期的.跑到气象局官网上一看才发现现在已经不提供免费的接口了,需要填写申请表审核后获取key才可以访问. 我的应用显然是通不过审核的——审核表还得提供应用发布的信息呢,于是放弃气象局的API,继续搜索.在CSDN上找到个帖子也是在纠

JAVA调用聚合天气api接口示例

查询天气预报在APP中常用的一个常用功能,聚合数据免费天气api接口可以根据根据城市名/id查询天气.根据IP查询天气.据GPS坐标查询天气.查询城市天气三小时预报,并且支持全国不同城市天气预报查询. 代码描述:基于JAVA的免费天气api接口调用示例,根据文档中注明的需求参数,调用接口返回数据. 关联数据:免费天气api 接口地址:https://www.juhe.cn/docs/api/id/39 step1:选择本文所示例的接口"免费天气api" url:https://www.

“非易失性内存”嫁接“内存计算”——高速安全的大数据时代来临

“非易失性内存”嫁接“内存计算” ——高速安全的大数据时代来临 题记 数据库奠基人Jim Gray:“磁带已经死了,磁盘已经落伍,闪存成为存储,内存才是王道”.“不管磁盘是否消融,闪存都是将来的一个趋势.” 石油一直直接影响着世累经济的发展速度和发展水平,现在,信息将发挥同样的作用.<经济学人>表示:“数据和信息日益成为商业的新能源,是一种与资本.劳动力并列的新经济元素”. 数据保护 大数据时代的机遇和挑战 大数据“风华正茂” 大数据时代,每两天的数据量就达到2ZB,相当于20世纪前人类文明所

PHP调用API接口实现天气查询功能

天气预报查询接口API,在这里我使用的是国家气象局天气预报接口 使用较多的还有:新浪天气预报接口.百度天气预报接口.google天气接口.Yahoo天气接口等等. 1.查询方式 根据地名查询各城市天气情况 2.请求URL地址http://route.showapi.com/9-2 3.接口参数说明: 一.系统级参数(所有接入点都需要的参数): 二.应用级参数(每个接入点有自己的参数): 4.返回参数 以JSON格式返回结果 1)系统级参数(所有接入点都会返回的参数) 2)应用级参数(系统级输出参

开放API接口 笑话、天气、新闻

笑话接口示例: http://api.1-blog.com/biz/bizserver/xiaohua/list.do?maxXhid=1000000&size=1&minXhid=6 开放API接口 笑话.天气.新闻 博客分类: 其它 API新闻笑话天气开放API 闲来无事,弄了几个API接口,分享给同样需(闲的)要(没事儿)的人吧 API接口都是HTTP形式的,数据都是json格式,支持ajax调用(已开放所有域名访问) PS:演示网站http://1-blog.com 使用的人麻烦加

开放几个API接口 笑话、天气、新闻

闲来无事,弄了几个API接口,分享给同样需(闲的)要(没事儿)的人吧API接口都是HTTP形式的,数据都是json格式,支持ajax调用(已开放所有域名访问) 笑话API 说明:调用后返回笑话列表,可以在参数中设置已经获取的最大笑话ID和最小笑话ID,返回结果会返回新的笑话(目前大概1w条左右,持续增加中)使用方式请求地址:http://114.215.158.105:8080/bizserver/xiaohua/list.do示例 http://114.215.158.105:8080/htm

根据中国气象局提供的API接口实现天气查询

中国气象局提供了三个天气查询的API接口: [1]http://www.weather.com.cn/data/sk/101190101.html [2]http://www.weather.com.cn/data/cityinfo/101190101.html [3]http://m.weather.com.cn/data/101190101.html 以json格式返回数据,第一和第二个接口返回当天实时的天气数据,第三个返回未来五天天气情况. 其中地址里的加粗显示的数字表示城市的代码:101

几个开放API接口 笑话、天气、新闻

闲来无事,弄了几个API接口,分享给同样需(闲的)要(没事儿)的人吧API接口都是HTTP形式的,数据都是json格式,支持ajax调用(已开放所有域名访问) 笑话API 说明:调用后返回笑话列表,可以在参数中设置已经获取的最大笑话ID和最小笑话ID,返回结果会返回新的笑话(目前大概1w条左右,持续增加中)使用方式请求地址:http://114.215.158.105:8080/bizserver/xiaohua/list.do示例 http://114.215.158.105:8080/htm