分钟级降水

和风天气分钟级降水API接口提供中国地区未来2小时内每5分钟降水数据、降水类型以及未来2小时的降水概况信息。可实现精确到1公里格点的全国分钟级降雨/降雪预报,为每一分钟的降雨进行预测。

请求URL

分钟级降水 HTTP GET

  • 商业版 https://api.qweather.com/v7/minutely/5m?{请求参数}
  • 开发版 https://devapi.qweather.com/v7/minutely/5m?{请求参数}

请求参数

请求参数包括必选和可选参数,如不填写可选参数将使用其默认值,参数之间使用&进行分隔。

location 必选

需要查询地区的以逗号分隔的经度/纬度坐标(十进制)。例如: location=116.41,39.92

key 必选

用户认证密钥,请参考如何获取你的KEY。支持数字签名方式认证。例如:key=12334567890ABC

gzip 可选

对API接口进行压缩,可以极大的减少API接口访问延迟,减少缓存空间,提高接口连接成功率。默认开启gzip

  • y 使用gzip方式压缩,默认
  • n 不使用压缩

lang 可选

多语言设置,分钟级降水仅支持中文和英文,具体的语言参数值请参考多语言参数值默认中文

返回数据

参数 描述 示例
code API状态码,具体含义请参考状态码 200
updateTime 当前API的最近更新时间 2013-12-30T01:45+08:00
fxLink 该城市的分钟级降水自适应网页,可嵌入网站或应用。有可能为空。 http://hfx.link/ae45
summary 分钟降水描述 未来2小时无降雨
minutely.fxTime 预报时间 2013-12-30T01:45+08:00
minutely.precip 降水量 10
minutely.type 降水类型
rain
snow
rain
refer.sources 原始数据来源,可能为空  
refer.license 数据许可证  

请求和返回示例

分钟级降水

// 分钟降水 
// 商业版 https://api.qweather.com/v7/minutely/5m?location=116.38999,39.9099&key=xxx
// 开发版 https://devapi.qweather.com/v7/minutely/5m?location=116.38999,39.9099&key=xxx
// 请将示例请求URL中的KEY更换成你自己的KEY

{
  "code": "200",
  "updateTime": "2020-08-09T16:30+08:00",
  "fxLink": "http://hfx.link/1",
  "summary": "未来两小时无降水",
  "minutely": [
    {
      "fxTime": "2020-08-09T16:30+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T16:35+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T16:40+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T16:45+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T16:50+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T16:55+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T17:00+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T17:05+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T17:10+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T17:15+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T17:20+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T17:25+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T17:30+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T17:35+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T17:40+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T17:45+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T17:50+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T17:55+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T18:00+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T18:05+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T18:10+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T18:15+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T18:20+08:00",
      "precip": "0.0",
      "type": "rain"
    },
    {
      "fxTime": "2020-08-09T18:25+08:00",
      "precip": "0.0",
      "type": "rain"
    }
  ],
  "refer": {
    "sources": [
      "Weather China"
    ],
    "license": [
      "commercial license"
    ]
  }
}