- 气象预警
- 天气接口目录
- 专业实况天气接口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
- 其他类型接口
乡镇7日天气
GET
https://town.yiketianqi.com
实况天气, 包含:当前温度、高温低温、风力风向、湿度、天气情况
过去24小时数据, 包含:湿度、温度、风力风向
地区权限 | 请求限制 | 使用方案 | 发票 |
---|---|---|---|
全国4.6万+乡镇 | 每日5000次 | 500/一年(最低) 2000/永久(最低) | 可开普票、电子票、专票 |
全国4.6万+乡镇 | 每日1万次 | 600/一年(最低) 2400/永久(最低) | 可开普票、电子票、专票 |
全国4.6万+乡镇 | 每日5万次 | 800/一年(最低) 3200/永久(最低) | 可开普票、电子票、专票 |
全国4.6万+乡镇 | 每日10万次 | 1000/一年(最低) 4000/永久(最低) | 可开普票、电子票、专票 |
全国4.6万+乡镇 | 每日50万次 | 4500/一年(最低) 18000/永久(最低) | 可开普票、电子票、专票 |
请求参数
Query 参数
appsecret
string
必需
示例值:
123456
version
string
固定值: day
示例值:
day
citycode
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://town.yiketianqi.com?appid=123456&appsecret=123456&version=day&citycode=1&callback=jQuery.Callbacks&vue=1'
返回响应
🟢200成功
application/json
Body
citycode
string
必需
province
string
必需
city
string
必需
area
string
必需
town
string
必需
update_time
string
必需
data
array [object {8}]
必需
date
string
必需
wea
string
必需
wea_img
string
必需
win
string
必需
win_speed
string
必需
tem_day
string
必需
tem_night
string
必需
hours
array [object {6}]
必需
示例
{
"citycode": "398772",
"province": "天津",
"city": "东丽",
"area": "",
"town": "综合保税区",
"update_time": "21:04",
"data": [
{
"date": "2021-01-17",
"wea": "晴转多云",
"wea_img": "yun",
"win": "西风转北风",
"win_speed": "3-4级转<3级",
"tem_day": "4",
"tem_night": "-4",
"hours": [
{
"hours": "20时",
"wea": "多云",
"wea_img": "yun",
"tem": "-2",
"win": "西南风",
"win_speed": "<3级"
},
{
"hours": "21时",
"wea": "多云",
"wea_img": "yun",
"tem": "-2",
"win": "西南风",
"win_speed": "<3级"
},
{
"hours": "22时",
"wea": "多云",
"wea_img": "yun",
"tem": "-3",
"win": "西风",
"win_speed": "<3级"
},
{
"hours": "23时",
"wea": "多云",
"wea_img": "yun",
"tem": "-3",
"win": "西风",
"win_speed": "<3级"
},
{
"hours": "00时",
"wea": "多云",
"wea_img": "yun",
"tem": "-3",
"win": "西风",
"win_speed": "<3级"
},
{
"hours": "01时",
"wea": "晴",
"wea_img": "qing",
"tem": "-3",
"win": "西北风",
"win_speed": "<3级"
},
{
"hours": "02时",
"wea": "晴",
"wea_img": "qing",
"tem": "-4",
"win": "西北风",
"win_speed": "<3级"
},
{
"hours": "03时",
"wea": "晴",
"wea_img": "qing",
"tem": "-3",
"win": "北风",
"win_speed": "<3级"
},
{
"hours": "04时",
"wea": "晴",
"wea_img": "qing",
"tem": "-3",
"win": "北风",
"win_speed": "<3级"
},
{
"hours": "05时",
"wea": "晴",
"wea_img": "qing",
"tem": "-3",
"win": "北风",
"win_speed": "<3级"
},
{
"hours": "06时",
"wea": "晴",
"wea_img": "qing",
"tem": "-3",
"win": "西风",
"win_speed": "3-4级"
},
{
"hours": "07时",
"wea": "晴",
"wea_img": "qing",
"tem": "-3",
"win": "西南风",
"win_speed": "<3级"
}
]
},
{
"date": "2021-01-18",
"wea": "晴转阴",
"wea_img": "yin",
"win": "东南风转东南风",
"win_speed": "3-4级",
"tem_day": "4",
"tem_night": "-5",
"hours": [
{
"hours": "08时",
"wea": "晴",
"wea_img": "qing",
"tem": "-4",
"win": "北风",
"win_speed": "<3级"
},
{
"hours": "09时",
"wea": "晴",
"wea_img": "qing",
"tem": "00",
"win": "北风",
"win_speed": "<3级"
},
{
"hours": "10时",
"wea": "晴",
"wea_img": "qing",
"tem": "00",
"win": "东北风",
"win_speed": "<3级"
},
{
"hours": "11时",
"wea": "晴",
"wea_img": "qing",
"tem": "02",
"win": "东北风",
"win_speed": "<3级"
},
{
"hours": "12时",
"wea": "晴",
"wea_img": "qing",
"tem": "02",
"win": "东北风",
"win_speed": "<3级"
},
{
"hours": "13时",
"wea": "晴",
"wea_img": "qing",
"tem": "03",
"win": "东北风",
"win_speed": "<3级"
},
{
"hours": "14时",
"wea": "晴",
"wea_img": "qing",
"tem": "03",
"win": "东风",
"win_speed": "<3级"
},
{
"hours": "15时",
"wea": "晴",
"wea_img": "qing",
"tem": "03",
"win": "东风",
"win_speed": "<3级"
},
{
"hours": "16时",
"wea": "晴",
"wea_img": "qing",
"tem": "03",
"win": "东风",
"win_speed": "<3级"
},
{
"hours": "17时",
"wea": "晴",
"wea_img": "qing",
"tem": "00",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "18时",
"wea": "晴",
"wea_img": "qing",
"tem": "-2",
"win": "东南风",
"win_speed": "3-4级"
},
{
"hours": "19时",
"wea": "晴",
"wea_img": "qing",
"tem": "-3",
"win": "东南风",
"win_speed": "3-4级"
},
{
"hours": "20时",
"wea": "晴",
"wea_img": "qing",
"tem": "-3",
"win": "东南风",
"win_speed": "3-4级"
},
{
"hours": "21时",
"wea": "晴",
"wea_img": "qing",
"tem": "-3",
"win": "东南风",
"win_speed": "3-4级"
},
{
"hours": "22时",
"wea": "多云",
"wea_img": "yun",
"tem": "-3",
"win": "东南风",
"win_speed": "3-4级"
},
{
"hours": "23时",
"wea": "多云",
"wea_img": "yun",
"tem": "-4",
"win": "东南风",
"win_speed": "3-4级"
},
{
"hours": "00时",
"wea": "多云",
"wea_img": "yun",
"tem": "-4",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "01时",
"wea": "多云",
"wea_img": "yun",
"tem": "-4",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "02时",
"wea": "多云",
"wea_img": "yun",
"tem": "-4",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "03时",
"wea": "阴",
"wea_img": "yin",
"tem": "-4",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "04时",
"wea": "阴",
"wea_img": "yin",
"tem": "-4",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "05时",
"wea": "阴",
"wea_img": "yin",
"tem": "-4",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "06时",
"wea": "阴",
"wea_img": "yin",
"tem": "-4",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "07时",
"wea": "阴",
"wea_img": "yin",
"tem": "-4",
"win": "东南风",
"win_speed": "<3级"
}
]
},
{
"date": "2021-01-19",
"wea": "多云转阴",
"wea_img": "yun",
"win": "东南风转北风",
"win_speed": "<3级",
"tem_day": "2",
"tem_night": "-5",
"hours": [
{
"hours": "08时",
"wea": "阴",
"wea_img": "yin",
"tem": "-5",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "09时",
"wea": "多云",
"wea_img": "yun",
"tem": "-3",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "10时",
"wea": "多云",
"wea_img": "yun",
"tem": "-1",
"win": "东南风",
"win_speed": "3-4级"
},
{
"hours": "11时",
"wea": "多云",
"wea_img": "yun",
"tem": "00",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "12时",
"wea": "多云",
"wea_img": "yun",
"tem": "00",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "13时",
"wea": "多云",
"wea_img": "yun",
"tem": "01",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "14时",
"wea": "多云",
"wea_img": "yun",
"tem": "01",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "15时",
"wea": "多云",
"wea_img": "yun",
"tem": "02",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "16时",
"wea": "多云",
"wea_img": "yun",
"tem": "01",
"win": "东南风",
"win_speed": "<3级"
},
{
"hours": "17时",
"wea": "多云",
"wea_img": "yun",
"tem": "00",
"win": "东风",
"win_speed": "<3级"
},
{
"hours": "18时",
"wea": "多云",
"wea_img": "yun",
"tem": "-2",
"win": "东风",
"win_speed": "<3级"
},
{
"hours": "19时",
"wea": "晴",
"wea_img": "qing",
"tem": "-2",
"win": "东风",
"win_speed": "<3级"
},
{
"hours": "20时",
"wea": "晴",
"wea_img": "qing",
"tem": "-2",
"win": "东北风",
"win_speed": "<3级"
},
{
"hours": "21时",
"wea": "多云",
"wea_img": "yun",
"tem": "-3",
"win": "东风",
"win_speed": "<3级"
},
{
"hours": "22时",
"wea": "多云",
"wea_img": "yun",
"tem": "-3",
"win": "东风",
"win_speed": "<3级"
},
{
"hours": "23时",
"wea": "多云",
"wea_img": "yun",
"tem": "-3",
"win": "北风",
"win_speed": "<3级"
},
{
"hours": "00时",
"wea": "多云",
"wea_img": "yun",
"tem": "-3",
"win": "东风",
"win_speed": "<3级"
},
{
"hours": "01时",
"wea": "阴",
"wea_img": "yin",
"tem": "-4",
"win": "东风",
"win_speed": "<3级"
},
{
"hours": "02时",
"wea": "阴",
"wea_img": "yin",
"tem": "-4",
"win": "北风",
"win_speed": "<3级"
},
{
"hours": "03时",
"wea": "阴",
"wea_img": "yin",
"tem": "-4",
"win": "东风",
"win_speed": "<3级"
},
{
"hours": "04时",
"wea": "阴",
"wea_img": "yin",
"tem": "-4",
"win": "东风",
"win_speed": "<3级"
},
{
"hours": "05时",
"wea": "阴",
"wea_img": "yin",
"tem": "-4",
"win": "北风",
"win_speed": "<3级"
},
{
"hours": "06时",
"wea": "阴",
"wea_img": "yin",
"tem": "-4",
"win": "东风",
"win_speed": "<3级"
},
{
"hours": "07时",
"wea": "阴",
"wea_img": "yin",
"tem": "-4",
"win": "东风",
"win_speed": "<3级"
}
]
},
{
"date": "2021-01-20",
"wea": "阴转多云",
"wea_img": "yun",
"win": "北风转西北风",
"win_speed": "<3级",
"tem_day": "4",
"tem_night": "-5",
"hours": []
},
{
"date": "2021-01-21",
"wea": "晴转阴",
"wea_img": "yin",
"win": "南风转西南风",
"win_speed": "<3级",
"tem_day": "6",
"tem_night": "-4",
"hours": []
},
{
"date": "2021-01-22",
"wea": "阴",
"wea_img": "yin",
"win": "东风转东北风",
"win_speed": "<3级",
"tem_day": "5",
"tem_night": "-3",
"hours": []
},
{
"date": "2021-01-23",
"wea": "阴转晴",
"wea_img": "yin",
"win": "南风转西风",
"win_speed": "<3级",
"tem_day": "3",
"tem_night": "-4",
"hours": []
}
]
}
修改于 2023-04-06 07:50:53