- 气象预警
- 天气接口目录
- 专业实况天气接口v61GET
- 专业实况天气接口v62GET
- 专业实况天气接口v63GET
- 专业七日天气接口v9GET
- 专业七日天气接口v91GET
- 专业七日天气接口v93GET
- 1~40日天气接口v3GET
- 1~40日天气接口v31GET
- 实况+24小时+15日天气接口 v32GET
- 国外主要城市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
- 其他类型接口
四季天气
GET
https://v0.yiketianqi.com/api
请求参数
Query 参数
appsecret
string
必需
示例值:
123456
cityid
string
可选
示例值:
1
callback
string
可选
示例值:
jQuery.Callbacks
vue
string
可选
示例值:
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=1&callback=jQuery.Callbacks&vue=1'
返回响应
🟢200成功
application/json
Body
yearAvgTemp
array[string]
必需
yearMaxTemp
array[string]
必需
yearMinTemp
array[string]
必需
yearAvgHumidity
array[string]
必需
yearAvgRain
array[string]
必需
yearAvgRainDay
array[string]
必需
yearAvgAqi
array[string]
必需
yearAqi
array [object {6}]
必需
aqiLv0
array[string]
必需
aqiLv1
array[string]
必需
aqiLv2
array[string]
必需
aqiLv3
array[string]
必需
aqiLv4
array[string]
必需
aqiLv5
array[string]
必需
SeasonAvgTmax
array[integer]
必需
SeasonAvgTmin
array[integer]
必需
SeasonAvgRain
array[integer]
必需
AqiFlag
string
必需
示例
{
"yearAvgTemp": [
"0",
"3",
"10",
"16",
"22",
"26",
"28",
"26",
"22",
"16",
"8",
"2"
],
"yearMaxTemp": [
"4",
"8",
"15",
"22",
"28",
"32",
"32",
"31",
"27",
"22",
"13",
"6"
],
"yearMinTemp": [
"-4",
"-1",
"5",
"11",
"18",
"22",
"24",
"22",
"18",
"12",
"5",
"-2"
],
"yearAvgHumidity": [
"50",
"49",
"42",
"47",
"48",
"53",
"69",
"75",
"67",
"55",
"57",
"50"
],
"yearAvgRain": [
"5",
"14",
"12",
"38",
"62",
"86",
"181",
"219",
"46",
"22",
"30",
"8"
],
"yearAvgRainDay": [
"2",
"4",
"3",
"6",
"7",
"8",
"13",
"14",
"7",
"5",
"5",
"3"
],
"yearAvgAqi": [
"123",
"103",
"98",
"102",
"94",
"104",
"81",
"78",
"70",
"80",
"122",
"117"
],
"yearAqi": [
{
"aqiLv0": [
"43",
"5.85"
],
"aqiLv1": [
"366",
"49.8"
],
"aqiLv2": [
"110",
"14.97"
],
"aqiLv3": [
"78",
"10.61"
],
"aqiLv4": [
"120",
"16.33"
],
"aqiLv5": [
"18",
"2.45"
]
},
{
"aqiLv0": [
"34",
"5.18"
],
"aqiLv1": [
"365",
"55.64"
],
"aqiLv2": [
"150",
"22.87"
],
"aqiLv3": [
"82",
"12.5"
],
"aqiLv4": [
"25",
"3.81"
],
"aqiLv5": [
"0",
"0.0"
]
},
{
"aqiLv0": [
"52",
"7.06"
],
"aqiLv1": [
"457",
"62.01"
],
"aqiLv2": [
"163",
"22.12"
],
"aqiLv3": [
"39",
"5.29"
],
"aqiLv4": [
"26",
"3.53"
],
"aqiLv5": [
"0",
"0.0"
]
},
{
"aqiLv0": [
"64",
"10.13"
],
"aqiLv1": [
"341",
"53.96"
],
"aqiLv2": [
"197",
"31.17"
],
"aqiLv3": [
"15",
"2.37"
],
"aqiLv4": [
"8",
"1.27"
],
"aqiLv5": [
"7",
"1.11"
]
},
{
"aqiLv0": [
"117",
"17.49"
],
"aqiLv1": [
"373",
"55.75"
],
"aqiLv2": [
"173",
"25.86"
],
"aqiLv3": [
"5",
"0.75"
],
"aqiLv4": [
"1",
"0.15"
],
"aqiLv5": [
"0",
"0.0"
]
},
{
"aqiLv0": [
"77",
"12.34"
],
"aqiLv1": [
"350",
"56.09"
],
"aqiLv2": [
"194",
"31.09"
],
"aqiLv3": [
"3",
"0.48"
],
"aqiLv4": [
"0",
"0.0"
],
"aqiLv5": [
"0",
"0.0"
]
},
{
"aqiLv0": [
"166",
"23.09"
],
"aqiLv1": [
"468",
"65.09"
],
"aqiLv2": [
"83",
"11.54"
],
"aqiLv3": [
"2",
"0.28"
],
"aqiLv4": [
"0",
"0.0"
],
"aqiLv5": [
"0",
"0.0"
]
},
{
"aqiLv0": [
"191",
"25.81"
],
"aqiLv1": [
"465",
"62.84"
],
"aqiLv2": [
"70",
"9.46"
],
"aqiLv3": [
"12",
"1.62"
],
"aqiLv4": [
"2",
"0.27"
],
"aqiLv5": [
"0",
"0.0"
]
},
{
"aqiLv0": [
"156",
"22.64"
],
"aqiLv1": [
"500",
"72.57"
],
"aqiLv2": [
"33",
"4.79"
],
"aqiLv3": [
"0",
"0.0"
],
"aqiLv4": [
"0",
"0.0"
],
"aqiLv5": [
"0",
"0.0"
]
},
{
"aqiLv0": [
"73",
"10.18"
],
"aqiLv1": [
"549",
"76.57"
],
"aqiLv2": [
"85",
"11.85"
],
"aqiLv3": [
"7",
"0.98"
],
"aqiLv4": [
"3",
"0.42"
],
"aqiLv5": [
"0",
"0.0"
]
},
{
"aqiLv0": [
"50",
"7.39"
],
"aqiLv1": [
"292",
"43.13"
],
"aqiLv2": [
"168",
"24.82"
],
"aqiLv3": [
"91",
"13.44"
],
"aqiLv4": [
"46",
"6.79"
],
"aqiLv5": [
"30",
"4.43"
]
},
{
"aqiLv0": [
"50",
"7.12"
],
"aqiLv1": [
"336",
"47.86"
],
"aqiLv2": [
"184",
"26.21"
],
"aqiLv3": [
"63",
"8.97"
],
"aqiLv4": [
"57",
"8.12"
],
"aqiLv5": [
"12",
"1.71"
]
}
],
"SeasonAvgTmax": [
21,
31,
20,
6
],
"SeasonAvgTmin": [
11,
22,
11,
-2
],
"SeasonAvgRain": [
112,
486,
98,
27
],
"AqiFlag": "true"
}
修改于 2023-04-06 08:05:40