zoukankan      html  css  js  c++  java
  • 天气接口

     

    http://wthrcdn.etouch.cn/weather_mini?city=北京

    或者是

    http://wthrcdn.etouch.cn/weather_mini?citykey=101280601

    citykey:编号:城市key

    {
      "data": {
        "yesterday": {
          "date": "27日星期二",
          "high": "高温 27℃",
          "fx": "南风",
          "low": "低温 11℃",
          "fl": "<![CDATA[<3级]]>",
          "type": "晴"
        },
        "city": "北京",
        "aqi": "500",
        "forecast": [
          {
            "date": "28日星期三",
            "high": "高温 25℃",
            "fengli": "<![CDATA[<3级]]>",
            "low": "低温 9℃",
            "fengxiang": "东风",
            "type": "多云"
          },
          {
            "date": "29日星期四",
            "high": "高温 19℃",
            "fengli": "<![CDATA[<3级]]>",
            "low": "低温 7℃",
            "fengxiang": "南风",
            "type": "晴"
          },
          {
            "date": "30日星期五",
            "high": "高温 19℃",
            "fengli": "<![CDATA[<3级]]>",
            "low": "低温 8℃",
            "fengxiang": "南风",
            "type": "晴"
          },
          {
            "date": "31日星期六",
            "high": "高温 23℃",
            "fengli": "<![CDATA[<3级]]>",
            "low": "低温 10℃",
            "fengxiang": "西南风",
            "type": "多云"
          },
          {
            "date": "1日星期天",
            "high": "高温 25℃",
            "fengli": "<![CDATA[<3级]]>",
            "low": "低温 10℃",
            "fengxiang": "南风",
            "type": "多云"
          }
        ],
        "ganmao": "昼夜温差较大,较易发生感冒,请适当增减衣服。体质较弱的朋友请注意防护。",
        "wendu": "20"
      },
      "status": 1000,
      "desc": "OK"
    }
    

      

  • 相关阅读:
    YTU 2543: 数字整除
    YTU 2542: 弟弟的作业
    YTU 2541: 汽水瓶
    YTU 2535: C++复数运算符重载(+与<<)
    YTU 2530: 小勇玩lol
    YTU 2520: 小慧唱卡拉OK
    YTU 2517: 打倒魔王↖(^ω^)↗
    YTU 2516: 剪刀石头布
    reload、replace、href、assign、window.history.go(0)的区别
    js 数组排序sort方法
  • 原文地址:https://www.cnblogs.com/hfultrastrong/p/8662713.html
Copyright © 2011-2022 走看看