[TOC]
简要描述
请求URL
请求方式
请求data
是否需要Cookie
是否需要协议头
参数说明
参数名 |
必选 |
类型 |
说明 |
wd |
是 |
string |
地区名称 比如:深圳 |
返回示例(可直接解析Json)
{
"bound_rank_params": {
"nc": 1
},
"content": {
"area": 340,
"baike": 0,
"city_type": 2,
"cname": "深圳市",
"code": 340,
"count_info": {
"groupon": 21952,
"premium": 2
},
"ext": [],
"geo": "1|12697919.69,2560977.31;12697919.69,2560977.31|12697919.69,2560977.31;",
"if_current": 1,
"level": 12,
"primary_uid": "340",
"sample": {
"poi": "深圳机场",
"route": "从世界之窗到地王大厦"
},
"sup": 1,
"sup_bus": 1,
"sup_business_area": 1,
"sup_lukuang": 1,
"sup_subway": 1,
"tips": "深圳",
"uid": "638705fea9cfa740cb09f0f0"
},
"cur_area_id": 340,
"cur_area_name": "深圳市",
"current_city": {
"code": 340,
"sup": 1,
"sup_bus": 1,
"sup_business_area": 1,
"sup_lukuang": 1,
"sup_subway": 1,
"type": 2,
"up_province_name": "广东省"
},
"err_msg": "",
"hot_city": [
"北京市|131",
"上海市|289",
"广州市|257",
"深圳市|340",
"成都市|75",
"天津市|332",
"南京市|315",
"杭州市|179",
"武汉市|218",
"重庆市|132"
],
"result": {
"data_security_filt_res": 0,
"illegal": 0,
"jump_back": 0,
"qid": "",
"time": 0,
"type": 2,
"uii_type": "china_main",
"region": "0",
"uii_qt": "cur",
"login_debug": 0
},
"uii_err": 0,
"use_ca": 1,
"anti_auth": "uxLNTxBEBNztDEXcC@BvkGcuVtvvhguVtvyheuVtvCMGuVtvCQMuVtvIPcuVtvYvjuVtvZgMuVtv@vcuVtvc3CuVtvcPPuVtveGvuVtveh3uVtvh3CuVtvhgMuxVVtvrMhuVtGccZcuxtdw8E62qvyUufvpv7xsvoWukwrTdQRmthibr4YZ0L@yfKi3egvcguV",
"special": {
"data": {
"top": [],
"bottom": [],
"banner": [],
"richbanner": [],
"top_html": "",
"bottom_html": "",
"banner_html": ""
}
},
"weather": "{\"status\":0,\"pm25\":\"52\",\"_update_time\":\"2023-03-18 17:33\",\"temp0\":\"28~19\\u2103\",\"temp1\":\"28~19\\u2103\",\"weather0\":\"\\u591a\\u4e91\",\"weather1\":\"\\u591a\\u4e91\",\"wind0\":\"\\u65e0\\u6301\\u7eed\\u98ce\\u5411<3\\u7ea7\",\"wind1\":\"\\u65e0\\u6301\\u7eed\\u98ce\\u5411<3\\u7ea7\",\"pic01\":\"https:\\/\\/map.baidu.com\\/image\\/weather\\/duoyun.png\",\"pic11\":\"https:\\/\\/map.baidu.com\\/image\\/weather\\/duoyun.png\"}",
"aqi": {
"current_city": {
"cid": 340,
"name": "深圳市",
"city_type": 2,
"aqi": "53",
"level": "2",
"trend": 0,
"update_time": "",
"poi_list": []
},
"city_list": [],
"result": []
}
}
返回参数说明
参数位置 |
类型 |
说明 |
['cur_area_id'] |
text |
地区编号 |
['cur_area_name'] |
text |
地区名称 |
['current_city']['up_province_name'] |
text |
省级名称 |
weather |
text |
包含当日PM25值/温度/风力等 |
备注
- 接口限制{无}
- 接口返回如果编码异常请转换编码
- 接口返回Json里有很多数据,具体自己找到需要的使用
- 接口为官方接口,稳定性/速度性较强