行政区划(全国省市区县和乡镇)查询

最新最全的全国省、市、区县、乡镇的分级查询,同时支持县级以上的邮政编码、区号、经纬度的查询。
会员资源包统一计费
2639万+
累计调用

服务商: 昆明秀派科技有限公司

电话: 400-998-8033

QQ: 3007663665

邮箱: services@showapi.com

接入点说明:
查询某个级别下的区划信息.
接口地址:
http[s]://route.showapi.com/1149-1?showapi_appid=替换自己的值&showapi_sign=替换自己的值 查看密钥
返回格式:
json
更新频率:
每个月1-3号早上9点整检查一次民政部数据,如果当前月有更新,则更新对应数据
功能体验
参数名称 类型 默认值 示例值 必须 描述
level String
2
区域级别
areaName String
昆明市
区域名称
page String 1
1
当前页数,分页时用 最大100页,每页最大20条
参数名称 类型 示例值 描述
ret_code Number
0
接口调用是否成功,0为成功,其他值为失败
{
	"showapi_res_code": 0,
	"showapi_res_error": "",
	"showapi_res_id":"ce135f6739294c63be0c021b76b6fbff",
    "showapi_res_body": {
		"ret_code": 0,
		"flag": true,
		"page":1,
		"maxSize":5,
		"data": [
			{
				"provinceId": "330000000000",
				"simpleName": "衢州",
				"lon": "118.87263",
				"areaCode": "0570",
				"cityId": "330800000000",
				"remark": "",
				"prePinYin": "Q",
				"id": "330800000000",
				"pinYin": "Quzhou",
				"parentId": "330000000000",
				"level": 2,
				"areaName": "衢州市",
				"simplePy": "QZ",
				"zipCode": "324000",
				"countyId": "0",
				"lat": "28.941708",
				"wholeName": "中国,浙江省,衢州市"
			},
			{
				"provinceId": "340000000000",
				"simpleName": "滁州",
				"lon": "118.316264",
				"areaCode": "0550",
				"cityId": "341100000000",
				"remark": "",
				"prePinYin": "C",
				"id": "341100000000",
				"pinYin": "Chuzhou",
				"parentId": "340000000000",
				"level": 2,
				"areaName": "滁州市",
				"simplePy": "CZ",
				"zipCode": "239000",
				"countyId": "0",
				"lat": "32.303627",
				"wholeName": "中国,安徽省,滁州市"
			},
			{
				"provinceId": "340000000000",
				"simpleName": "宿州",
				"lon": "116.984084",
				"areaCode": "0557",
				"cityId": "341300000000",
				"remark": "",
				"prePinYin": "S",
				"id": "341300000000",
				"pinYin": "Suzhou",
				"parentId": "340000000000",
				"level": 2,
				"areaName": "宿州市",
				"simplePy": "SZ",
				"zipCode": "234000",
				"countyId": "0",
				"lat": "33.633891",
				"wholeName": "中国,安徽省,宿州市"
			},
			{
				"provinceId": "340000000000",
				"simpleName": "亳州",
				"lon": "115.782939",
				"areaCode": "0558",
				"cityId": "341600000000",
				"remark": "",
				"prePinYin": "B",
				"id": "341600000000",
				"pinYin": "Bozhou",
				"parentId": "340000000000",
				"level": 2,
				"areaName": "亳州市",
				"simplePy": "BZ",
				"zipCode": "236000",
				"countyId": "0",
				"lat": "33.869338",
				"wholeName": "中国,安徽省,亳州市"
			},
			{
				"provinceId": "340000000000",
				"simpleName": "池州",
				"lon": "117.489157",
				"areaCode": "0566",
				"cityId": "341700000000",
				"remark": "",
				"prePinYin": "C",
				"id": "341700000000",
				"pinYin": "Chizhou",
				"parentId": "340000000000",
				"level": 2,
				"areaName": "池州市",
				"simplePy": "CZ",
				"zipCode": "247100",
				"countyId": "0",
				"lat": "30.656037",
				"wholeName": "中国,安徽省,池州市"
			}
		]
	}
}
                        
1、系统级返回(所有接入点都会返回的参数)
参数名称 类型 示例值 描述
showapi_res_body String {"city":"昆明","prov":"云南"} 消息体的JSON封装,所有应用级的返回参数将嵌入此对象 。
showapi_res_code int 0 查看错误码
showapi_res_error String 用户输入有误! 错误信息的展示
showapi_res_id String ce135f6739294c63be0c021b76b6fbff 本次请求id
2、错误码 (showapi_res_code)
状态码 描述
0 成功
-1 系统调用错误
-2 可调用次数或金额为0
-3 读取超时
-4 服务端返回数据解析错误
-5 后端服务器DNS解析错误
-6 服务不存在或未上线
-7 API创建者的网关资源不足
-3 读取超时
-1000 系统维护
-1002 showapi_appid字段必传
-1003 showapi_sign字段必传
-1004 签名sign验证有误
-1005 showapi_timestamp无效
-1006 app无权限调用接口
-1007 没有订购套餐
-1008 服务商关闭对您的调用权限
-1009 调用频率受限
-1010 找不到您的应用
-1011 子授权app_child_id无效
-1012 子授权已过期或失效
-1013 子授权ip受限
-1014 token权限无效
在线咨询
4009988033
客服
微信
客服微信
商务
微信
商务微信
在线咨询
4009988033
客服
微信
客服微信
商务
微信
商务微信