天气预报1-7天-中国气象局-地址查询版小时版

GET
https://api.mymzf.com/api/tqybip

接口描述

天气预报1-7天-中国气象局-地址查询版

请求参数

请求示例

var axios = require('axios')

var config = {
  method: 'get',
  url: 'https://api.mymzf.com/api/tqybip?&sheng=吉林&place=长春&day=1&hourtype=1'
}

axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data))
  })
  .catch(function (error) {
    console.log(error)
  })

返回示例


{
  "code": 200,
  "guo": "中国",
  "sheng": "吉林",
  "shi": "长春",
  "name": "长春",
  "weather1": "晴",
  "weather2": "多云",
  "wd1": "5",
  "wd2": "-4",
  "winddirection1": "西北风",
  "winddirection2": "西风",
  "windleve1": "微风",
  "windleve2": "微风",
  "weather1img": "https://rescdn.apihz.cn/resimg/tianqi/qing.png",
  "weather2img": "https://rescdn.apihz.cn/resimg/tianqi/duoyun.png",
  "lon": "125.230",
  "lat": "43.890",
  "uptime": "2025-10-18 20:00:00",
  "nowinfo": {
    "precipitation": 0,
    "temperature": -3,
    "pressure": 1002,
    "humidity": 93,
    "windDirection": "西南风",
    "windDirectionDegree": 193,
    "windSpeed": 0.4,
    "windScale": "微风",
    "feelst": -5.3,
    "uptime": "2025/10/18 21:25"
  },
  "alarm": null,
  "hourtime": "2025-10-18 21:00:38",
  "hour1": [
    {
      "时间": "23:00",
      "天气": "多云",
      "图标": "https://rescdn.apihz.cn/resimg/tianqi/duoyun.png",
      "气温": "-2.7℃",
      "降水": "无降水",
      "风速": "0.8m/s",
      "风向": "西北风",
      "气压": "1004.9hPa",
      "湿度": "78.2%",
      "云量": "10.1%"
    },
    {
      "时间": "02:00",
      "天气": "多云",
      "图标": "https://rescdn.apihz.cn/resimg/tianqi/duoyun.png",
      "气温": "-3.8℃",
      "降水": "无降水",
      "风速": "0.2m/s",
      "风向": "西北风",
      "气压": "1004.7hPa",
      "湿度": "78.4%",
      "云量": "10.1%"
    },
    {
      "时间": "05:00",
      "天气": "多云",
      "图标": "https://rescdn.apihz.cn/resimg/tianqi/duoyun.png",
      "气温": "-2.9℃",
      "降水": "无降水",
      "风速": "1.4m/s",
      "风向": "西南风",
      "气压": "1004.1hPa",
      "湿度": "78.4%",
      "云量": "10.1%"
    },
    {
      "时间": "08:00",
      "天气": "多云",
      "图标": "https://rescdn.apihz.cn/resimg/tianqi/duoyun.png",
      "气温": "-0.7℃",
      "降水": "无降水",
      "风速": "3.3m/s",
      "风向": "西南风",
      "气压": "1005.2hPa",
      "湿度": "66.5%",
      "云量": "10.1%"
    },
    {
      "时间": "11:00",
      "天气": "多云",
      "图标": "https://rescdn.apihz.cn/resimg/tianqi/duoyun.png",
      "气温": "2.2℃",
      "降水": "无降水",
      "风速": "2.9m/s",
      "风向": "西北风",
      "气压": "1005.1hPa",
      "湿度": "51.2%",
      "云量": "10.1%"
    },
    {
      "时间": "14:00",
      "天气": "多云",
      "图标": "https://rescdn.apihz.cn/resimg/tianqi/duoyun.png",
      "气温": "3.8℃",
      "降水": "无降水",
      "风速": "3.3m/s",
      "风向": "西北风",
      "气压": "1004.4hPa",
      "湿度": "50.8%",
      "云量": "10.1%"
    },
    {
      "时间": "17:00",
      "天气": "多云",
      "图标": "https://rescdn.apihz.cn/resimg/tianqi/duoyun.png",
      "气温": "1.6℃",
      "降水": "无降水",
      "风速": "1.5m/s",
      "风向": "西北风",
      "气压": "1004.9hPa",
      "湿度": "54.1%",
      "云量": "10.1%"
    },
    {
      "时间": "20:00",
      "天气": "多云",
      "图标": "https://rescdn.apihz.cn/resimg/tianqi/duoyun.png",
      "气温": "0.4℃",
      "降水": "无降水",
      "风速": "0.1m/s",
      "风向": "西北风",
      "气压": "1006hPa",
      "湿度": "56%",
      "云量": "10.1%"
    }
  ]
}