天气 API
  1. 天气接口目录
天气 API
  • 气象预警
    • 全国城市气象预警推送服务
    • 气象预警推送
      POST
    • 解除气象预警推送 - 服务端对接文档
      POST
  • 天气接口目录
    • 专业实况天气接口v61
      GET
    • 专业实况天气接口v62
      GET
    • 专业实况天气接口v63
      GET
    • 专业七日天气接口v9
      GET
    • 专业七日天气接口v91
      GET
    • 专业七日天气接口v93
      GET
    • 1~40日天气接口v3
      GET
    • 1~40日天气接口v31
      GET
    • 实况+24小时+15日天气接口 v32
      GET
    • 国外主要城市7日天气接口
      GET
    • 全球20万+城市实况天气
      GET
    • 实时降水, 降雨量接口
      GET
    • 过去24小时+未来3天小时降雨量接口
      GET
    • 天气灾害预警气象预警列表接口
      GET
    • 新版历史天气接口
      GET
    • 历史天气
      GET
    • 空气污染指数
      GET
    • 专业31项生活指数预报
      GET
    • 全国空气质量指数排行榜
      GET
    • 空气污染指数最差的国家排名
      GET
    • 乡镇实况天气
      GET
    • 乡镇7日天气
      GET
    • 乡镇实况+7日天气
      GET
    • 四季天气
      GET
    • 全国实况天气数据列表接口
      GET
    • 免费实况天气接口
      GET
    • 免费7日天气接口
      GET
    • 全国天气降水量预报图接口
      GET
  • 其他类型接口
    • 短信验证码接口
    • 人脸融合接口
    • 人脸识别
    • 国内LBS逆地理编码服务 (区县级)
  1. 天气接口目录

过去24小时+未来3天小时降雨量接口

GET
https://v0.yiketianqi.com/api
过去24小时从0点到24点 + 未来3天的小时降雨量详细预报
可实现如下效果:
⚠️ 请求次数限制仅限于单个APPID每日请求次数不超规定范围,并不会限制使用的项目数量、App、设备及IP等。

请求参数

Query 参数
appid
string 
必需
注册开发者账号
示例值:
123456
appsecret
string 
必需
用户appsecret
示例值:
123456
cityid
string 
可选
城市 ID,请参考城市ID列表
callback
string 
可选
jsonp参数,如: jQuery.Callbacks
示例值:
jQuery.Callbacks
vue
string 
可选
jsonp参数,如果您使用的是react、vue、angular请填写值: 1
示例值:
1
unescape
integer 
可选
是否转义中文,如果您希望json不被unicode, 直接输出中文, 请传此参数: 1
示例值:
1

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://v0.yiketianqi.com/api?appid=123456&appsecret=123456&cityid=&callback=jQuery.Callbacks&vue=1&unescape=1'

返回响应

🟢200成功
application/json
Body
cityid
string 
必需
city
string 
必需
cityEn
string 
必需
country
string 
必需
countryEn
string 
必需
update_time
string 
必需
data
array [object {11}] 
必需
date
string 
必需
wea
string 
必需
wea_img
string 
必需
tem1
string 
必需
tem2
string 
必需
win
array[string]
必需
win_speed
string 
必需
hours
array [object {6}] 
必需
time
string 
必需
level
string 
必需
value
string 
必需
errcode
integer 
必需
errmsg
string 
必需
updateTime
string 
必需
updateTimeFormat
string 
必需
timeZone
string 
必需
latitude
string 
必需
longitude
string 
必需
day
object 
必需
icon
string 
必需
feelsLike
string 
必需
temperature
string 
必需
temperatureMaxSince7am
string 
必需
phrase
string 
必需
phrase_img
string 
必需
altimeter
string 
必需
barometerTrend
string 
必需
humidity
string 
必需
dewPoint
string 
必需
visibility
string 
必需
windSpeed
string 
必需
windDirCompass
string 
必需
windDirDegrees
string 
必需
uvIndex
string 
必需
uvDescription
string 
必需
sunrise
string 
必需
sunset
string 
必需
moonrise
string 
必需
moonset
string 
必需
moonIcon
string 
必需
moonPhrase
string 
必需
narrative
string 
必需
time
string 
必需
msg
string 
必需
list
array [object {2}] 
必需
time
string 
必需
时间点, 昨日数据是从0点开始-24点逐小时
value
integer  | number 
小时降雨量mm
必需
示例
{
    "list":[
        {
            "time":"2022-06-23 00:00:00",//时间点, 昨日数据是从0点开始-24点逐小时
            "value":0 //小时降雨量mm
        },
        {
            "time":"2022-06-23 01:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 02:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 03:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 04:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 05:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 06:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 07:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 08:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 09:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 10:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 11:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 12:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 13:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 14:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 15:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 16:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 17:00:00",
            "value":1.9
        },
        {
            "time":"2022-06-23 18:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 19:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 20:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 21:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 22:00:00",
            "value":0
        },
        {
            "time":"2022-06-23 23:00:00",
            "value":0
        },
        {
            "time":"2022-06-24 00:00:00",
            "value":0
        },
        {
            "time":"2022-06-24 01:00:00",
            "value":0
        },
        {
            "time":"2022-06-24 02:00:00",
            "value":0
        },
        {
            "time":"2022-06-24 03:00:00",
            "value":0
        },
        {
            "time":"2022-06-24 04:00:00",
            "value":0
        },
        {
            "time":"2022-06-24 05:00:00",
            "value":0
        },
        {
            "time":"2022-06-24 06:00:00",
            "value":0
        },
        {
            "time":"2022-06-24 07:00:00",
            "value":0
        },
        {
            "time":"2022-06-24 08:00:00",
            "value":0
        },
        {
            "time":"2022-06-24 11:00:00",
            "value":0
        },
        {
            "time":"2022-06-24 14:00:00",
            "value":0
        },
        {
            "time":"2022-06-24 17:00:00",
            "value":0
        },
        {
            "time":"2022-06-24 20:00:00",
            "value":0
        },
        {
            "time":"2022-06-24 23:00:00",
            "value":0
        },
        {
            "time":"2022-06-25 02:00:00",
            "value":0
        },
        {
            "time":"2022-06-25 05:00:00",
            "value":0
        },
        {
            "time":"2022-06-25 08:00:00",
            "value":0
        },
        {
            "time":"2022-06-25 11:00:00",
            "value":0
        },
        {
            "time":"2022-06-25 14:00:00",
            "value":0
        },
        {
            "time":"2022-06-25 17:00:00",
            "value":0
        },
        {
            "time":"2022-06-25 20:00:00",
            "value":0
        },
        {
            "time":"2022-06-25 23:00:00",
            "value":1
        },
        {
            "time":"2022-06-26 02:00:00",
            "value":1
        },
        {
            "time":"2022-06-26 05:00:00",
            "value":1
        },
        {
            "time":"2022-06-26 08:00:00",
            "value":1
        },
        {
            "time":"2022-06-26 14:00:00",
            "value":1
        },
        {
            "time":"2022-06-26 20:00:00",
            "value":1
        },
        {
            "time":"2022-06-27 02:00:00",
            "value":5
        }
    ]
}
上一页
实时降水, 降雨量接口
下一页
天气灾害预警气象预警列表接口
Built with