专栏首页一路走一路失去也一路拥有【v2版本】天气接口 返回JSON数据

【v2版本】天气接口 返回JSON数据

免费的天气接口 v2版本

请求模式:GET/POST

请求地址:https://api.shunnet.top/weather/api?edition=v2&city=泸溪

【参数说明】

名称

解释

weather/api

接口请求地址

edition

版本  v2

city

城市名称

【返回标准JSON数据,自行解析JSON】

{
    "data":{
        "real":{
            "station":{
                "province":"湖南省",
                "city":"泸溪"
            },
            "publish_time":"2020-07-24 12:10",
            "weather":{
                "temperature":"32.5",
                "temperatureDiff":"-0.4",
                "airpressure":"985",
                "humidity":"62",
                "rcomfort":"77",
                "info":"多云",
                "feelst":"31.9"
            },
            "wind":{
                "direct":"西南风",
                "power":"微风"
            },
            "warn":{
                "alert":"",
                "issuecontent":"",
                "fmeans":"",
                "signaltype":"",
                "signallevel":""
            }
        },
        "predict":{
            "detail":[
                {
                    "date":"2020-07-24",
                    "day":{
                        "weather":{
                            "info":"多云",
                            "temperature":"35"
                        },
                        "wind":{
                            "direct":"东北风",
                            "power":"微风"
                        }
                    },
                    "night":{
                        "weather":{
                            "info":"多云",
                            "temperature":"25"
                        },
                        "wind":{
                            "direct":"东北风",
                            "power":"微风"
                        }
                    }
                },
                {
                    "date":"2020-07-25",
                    "day":{
                        "weather":{
                            "info":"多云",
                            "temperature":"35"
                        },
                        "wind":{
                            "direct":"东北风",
                            "power":"微风"
                        }
                    },
                    "night":{
                        "weather":{
                            "info":"多云",
                            "temperature":"25"
                        },
                        "wind":{
                            "direct":"东北风",
                            "power":"微风"
                        }
                    }
                },
                {
                    "date":"2020-07-26",
                    "day":{
                        "weather":{
                            "info":"阵雨",
                            "temperature":"31"
                        },
                        "wind":{
                            "direct":"东北风",
                            "power":"微风"
                        }
                    },
                    "night":{
                        "weather":{
                            "info":"大雨",
                            "temperature":"25"
                        },
                        "wind":{
                            "direct":"东北风",
                            "power":"微风"
                        }
                    }
                },
                {
                    "date":"2020-07-27",
                    "day":{
                        "weather":{
                            "info":"中雨",
                            "temperature":"26"
                        },
                        "wind":{
                            "direct":"东北风",
                            "power":"微风"
                        }
                    },
                    "night":{
                        "weather":{
                            "info":"中雨",
                            "temperature":"24"
                        },
                        "wind":{
                            "direct":"东北风",
                            "power":"微风"
                        }
                    }
                },
                {
                    "date":"2020-07-28",
                    "day":{
                        "weather":{
                            "info":"暴雨",
                            "temperature":"32"
                        },
                        "wind":{
                            "direct":"东北风",
                            "power":"微风"
                        }
                    },
                    "night":{
                        "weather":{
                            "info":"大雨",
                            "temperature":"24"
                        },
                        "wind":{
                            "direct":"东北风",
                            "power":"微风"
                        }
                    }
                },
                {
                    "date":"2020-07-29",
                    "day":{
                        "weather":{
                            "info":"多云",
                            "temperature":"33"
                        },
                        "wind":{
                            "direct":"东北风",
                            "power":"微风"
                        }
                    },
                    "night":{
                        "weather":{
                            "info":"多云",
                            "temperature":"24"
                        },
                        "wind":{
                            "direct":"东北风",
                            "power":"微风"
                        }
                    }
                },
                {
                    "date":"2020-07-30",
                    "day":{
                        "weather":{
                            "info":"阵雨",
                            "temperature":"33"
                        },
                        "wind":{
                            "direct":"东北风",
                            "power":"微风"
                        }
                    },
                    "night":{
                        "weather":{
                            "info":"多云",
                            "temperature":"25"
                        },
                        "wind":{
                            "direct":"东北风",
                            "power":"微风"
                        }
                    }
                }]
        },
        "tempchart":[
            {
                "time":"2020/07/17",
                "max_temp":"33.1",
                "min_temp":"24.3",
                "day_text":"",
                "night_text":""
            },
            {
                "time":"2020/07/18",
                "max_temp":"32.3",
                "min_temp":"26.6",
                "day_text":"",
                "night_text":""
            },
            {
                "time":"2020/07/19",
                "max_temp":"28",
                "min_temp":"20.9",
                "day_text":"",
                "night_text":""
            },
            {
                "time":"2020/07/20",
                "max_temp":"27.9",
                "min_temp":"20.4",
                "day_text":"",
                "night_text":""
            },
            {
                "time":"2020/07/21",
                "max_temp":"31.2",
                "min_temp":"22.5",
                "day_text":"",
                "night_text":""
            },
            {
                "time":"2020/07/22",
                "max_temp":"33.7",
                "min_temp":"24.3",
                "day_text":"",
                "night_text":""
            },
            {
                "time":"2020/07/23",
                "max_temp":"34.7",
                "min_temp":"25",
                "day_text":"",
                "night_text":""
            },
            {
                "time":"2020/07/24",
                "max_temp":"35",
                "min_temp":"25",
                "day_text":"多云",
                "night_text":"多云"
            },
            {
                "time":"2020/07/25",
                "max_temp":"35",
                "min_temp":"25",
                "day_text":"多云",
                "night_text":"多云"
            },
            {
                "time":"2020/07/26",
                "max_temp":"31",
                "min_temp":"25",
                "day_text":"阵雨",
                "night_text":"大雨"
            },
            {
                "time":"2020/07/27",
                "max_temp":"26",
                "min_temp":"24",
                "day_text":"中雨",
                "night_text":"中雨"
            },
            {
                "time":"2020/07/28",
                "max_temp":"32",
                "min_temp":"24",
                "day_text":"暴雨",
                "night_text":"大雨"
            },
            {
                "time":"2020/07/29",
                "max_temp":"33",
                "min_temp":"24",
                "day_text":"多云",
                "night_text":"多云"
            },
            {
                "time":"2020/07/30",
                "max_temp":"33",
                "min_temp":"25",
                "day_text":"阵雨",
                "night_text":"多云"
            }],
        "passedchart":[
            {
                "temperature":"32.3",
                "humidity":"62",
                "pressure":"985",
                "windDirection":"206",
                "windSpeed":"4.8",
                "time":"2020-07-24 12:00"
            },
            {
                "temperature":"31.4",
                "humidity":"67",
                "pressure":"986",
                "windDirection":"199",
                "windSpeed":"4.4",
                "time":"2020-07-24 11:00"
            },
            {
                "temperature":"30.4",
                "humidity":"69",
                "pressure":"986",
                "windDirection":"233",
                "windSpeed":"2.1",
                "time":"2020-07-24 10:00"
            },
            {
                "temperature":"28.9",
                "humidity":"78",
                "pressure":"987",
                "windDirection":"284",
                "windSpeed":"1.4",
                "time":"2020-07-24 09:00"
            },
            {
                "temperature":"27.5",
                "humidity":"83",
                "pressure":"987",
                "windDirection":"45",
                "windSpeed":"0.8",
                "time":"2020-07-24 08:00"
            },
            {
                "temperature":"25.8",
                "humidity":"89",
                "pressure":"986",
                "windDirection":"50",
                "windSpeed":"1.2",
                "time":"2020-07-24 07:00"
            },
            {
                "temperature":"25.3",
                "humidity":"89",
                "pressure":"986",
                "windDirection":"91",
                "windSpeed":"0.5",
                "time":"2020-07-24 06:00"
            },
            {
                "temperature":"25.3",
                "humidity":"92",
                "pressure":"985",
                "windDirection":"328",
                "windSpeed":"0.9",
                "time":"2020-07-24 05:00"
            },
            {
                "temperature":"25.5",
                "humidity":"89",
                "pressure":"985",
                "windDirection":"122",
                "windSpeed":"1.1",
                "time":"2020-07-24 04:00"
            },
            {
                "temperature":"26.3",
                "humidity":"88",
                "pressure":"985",
                "windDirection":"59",
                "windSpeed":"1",
                "time":"2020-07-24 03:00"
            },
            {
                "temperature":"26.6",
                "humidity":"89",
                "pressure":"985",
                "windDirection":"55",
                "windSpeed":"0.4",
                "time":"2020-07-24 02:00"
            },
            {
                "temperature":"26.8",
                "humidity":"85",
                "pressure":"985",
                "windDirection":"64",
                "windSpeed":"1.1",
                "time":"2020-07-24 01:00"
            },
            {
                "temperature":"27.5",
                "humidity":"86",
                "pressure":"985",
                "windDirection":"40",
                "windSpeed":"0.7",
                "time":"2020-07-24 00:00"
            },
            {
                "temperature":"28.2",
                "humidity":"84",
                "pressure":"985",
                "windDirection":"339",
                "windSpeed":"1",
                "time":"2020-07-23 23:00"
            },
            {
                "temperature":"29",
                "humidity":"80",
                "pressure":"984",
                "windDirection":"317",
                "windSpeed":"1.2",
                "time":"2020-07-23 22:00"
            },
            {
                "temperature":"30",
                "humidity":"76",
                "pressure":"984",
                "windDirection":"269",
                "windSpeed":"0.8",
                "time":"2020-07-23 21:00"
            },
            {
                "temperature":"31.7",
                "humidity":"70",
                "pressure":"983",
                "windDirection":"139",
                "windSpeed":"0.4",
                "time":"2020-07-23 20:00"
            },
            {
                "temperature":"34",
                "humidity":"56",
                "pressure":"983",
                "windDirection":"238",
                "windSpeed":"0.8",
                "time":"2020-07-23 19:00"
            },
            {
                "temperature":"34.7",
                "humidity":"54",
                "pressure":"982",
                "windDirection":"209",
                "windSpeed":"3.5",
                "time":"2020-07-23 18:00"
            },
            {
                "temperature":"34.4",
                "humidity":"52",
                "pressure":"982",
                "windDirection":"221",
                "windSpeed":"4.2",
                "time":"2020-07-23 17:00"
            },
            {
                "temperature":"34.2",
                "humidity":"56",
                "pressure":"983",
                "windDirection":"201",
                "windSpeed":"2.7",
                "time":"2020-07-23 16:00"
            },
            {
                "temperature":"33.2",
                "humidity":"59",
                "pressure":"983",
                "windDirection":"176",
                "windSpeed":"5.1",
                "time":"2020-07-23 15:00"
            },
            {
                "temperature":"32.7",
                "humidity":"63",
                "pressure":"984",
                "windDirection":"202",
                "windSpeed":"4.2",
                "time":"2020-07-23 14:00"
            },
            {
                "temperature":"33.2",
                "humidity":"57",
                "pressure":"984",
                "windDirection":"218",
                "windSpeed":"6.1",
                "time":"2020-07-23 13:00"
            }],
        "radar":{
            "title":"华中"
        }
    }
}

本文作者:[博主]大顺

本文链接:https://shunnet.top/ZRz63e

版权声明:转载注明出处,谢谢

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • 【v1版本】天气接口 返回JSON数据

    Shunnet
  • 物流信息接口 返回JSON数据

    Shunnet
  • 动手开发一个名为“微天气”的微信小程序(下)

    由于在index.js中还没有设置初始化数据,所以在界面中看不到具体的数据,从而也导致界面的效果没达到设置的要求。

    博文视点Broadview
  • Django+RestFramework API接口及接口文档并返回json数据操作

    GitHub:https://github.com/xingjidemimi/DjangoAPI.git

    砸漏
  • python 微信机器人-如何调用机器人的api,调用图灵机器人接口演示。调用机器人原理,图灵机器人注册。

    我们调用的是图灵机器人,这个apiUrl就是图灵机器人提供给我们的api接口。 接下来给大家演示一下怎么来调用自己的机器人。

    小蓝枣
  • Android解析相同接口返回不同格式json数据的方法

    目前由双牛掌柜为主导框架开发的一系列产品中,网络请求框架请求到的数据是默认解析成Model类的。即项目中不会手动去解析网络请求到的json数据。在项目中,使用封...

    砸漏
  • robotframework 学习(4) :接口测试,返回json数据的获取和验证

    上一篇博客写了怎么从excel文档中获取数据和传参到接口当中,这一篇文章就记录一下,获取到接口返回的参数后的怎么解析json数据。

    Mokwing
  • 编程 | 用python获取天气数据,并作定时播报

    思路 1.调用和风天气的API,获取天气数据 2.用百度语音API,将天气数据合成语音 3.用树莓派每天早上定时播报天气(定时任务crontab + Pytho...

    小莹莹
  • 用python获取天气数据,并作定时播报

    思路 1.调用和风天气的API,获取天气数据 2.用百度语音API,将天气数据合成语音 3.用树莓派每天早上定时播报天气(定时任务crontab + Pyt...

    机器学习AI算法工程
  • 谷歌家的验证码怎么了?搞他!

    很久没有做爬虫破解类相关的分享了,之前交流群里有朋友提问谷歌系的reCAPTCHA V2 验证码怎么破,因为工作的原因我是很久之后才看到的,也不知道那位朋友后来...

    崔庆才
  • Hexo博客添加一言

    动漫也好、小说也好、网络也好,不论在哪里,我们总会看到有那么一两个句子能穿透你的心。我们把这些句子汇聚起来,形成一言网络,以传递更多的感动。如果可以,我们希望我...

    YangAir
  • iOS测试指南之 【保存接口返回枚举数据为本地json文件,作为测试数据】

    很多时候需要对接口返回的数据进行数据保存,以便下次使用。本地json文件的应用场景:

    公众号iOS逆向
  • IPinfo 多接口IP查询工具源码

    说明:应昨天某位同学的要求,研究了下Opage,Opage是一个客制化上网首页,基于Material Design & Vue.js,集成搜索,网站,天气,TO...

    砸漏
  • 10分钟教你用Python打造微信天气预报机器人

    最近武汉的天气越来越恶劣了。动不动就下雨,所以,拥有一款好的天气预报工具,对于我们大学生来说,还真是挺重要的了。好了,自己动手,丰衣足食,我们来用Python打...

    短短的路走走停停
  • 10分钟教你用Python打造微信天气预报机器人

    最近武汉的天气越来越恶劣了。动不动就下雨,所以,拥有一款好的天气预报工具,对于我们大学生来说,还真是挺重要的了。好了,自己动手,丰衣足食,我们来用Python打...

    用户1621951
  • 10分钟教你用Python实现微信翻译机器人

    今天,利用Python爬虫等知识,教大家打造一个微信下的翻译小助手。好吧,开始干活。

    短短的路走走停停
  • 这些天,我做了个API

      何为API?简单来说就是别人为你提供一些服务的接口。就像某些软件内部提供天气数据,一般也都是调用的类似中国天气之类的API服务,当然用python等去爬取网...

    xcsoft
  • 在冰天雪地里给我们的“查天气”加上GUI界面

    最近天气越累越冷,不少地区都下了雪。身在长江流域,既没有像南方一样温暖,又不像北方有集中供暖,取暖也就只能靠“抖”了。

    Crossin先生
  • 使用Spring Boot开发一个属于自己的web Api接口返回JSON数据

    第二种在线创建方式,访问https://start.spring.io/ 之后会生成一个ZIP的包,解压使用IDEA导入即可

    大数据小禅

扫码关注云+社区

领取腾讯云代金券