全国省市县行政区划

官方自营
价格:¥5.00/10000次  
服务商: 进制数据
  • 产品介绍
  • 接口文档
  • 服务商
  • 官方客服

最新全国省、市、县行政区划信息,包含区号、邮编等信息,同时包含国外的国家和地区。
※本接口非盈利,建议使用“获取全部区域”接口,一次获取全部信息。

根据上级ID获取区域


接口地址:https://api.binstd.com/area/query
支持格式:JSON,JSONP
请求方法:GET

请求参数

参数名称类型说明
parentidint上级ID
请求示例:https://api.binstd.com/area/query?parentid=1&appkey=yourappkey

返回参数

参数名称类型必填说明
idintID
namestring名称
parentidint上级ID
parentnamestring上级名称
areacodestring区号
zipcodestring邮编
depthstring区域等级(深度) 冗余字段,用来查找
返回示例:{ "status": "0", "msg": "ok", "result": [ { "id": "499", "name": "东城区", "parentid": "1", "parentname": "北京", "areacode": "010", "zipcode": "100000", "depth": "2" }, { "id": "500", "name": "西城区", "parentid": "1", "parentname": "北京", "areacode": "010", "zipcode": "100000", "depth": "2" }, { "id": "501", "name": "海淀区", "parentid": "1", "parentname": "北京", "areacode": "010", "zipcode": "100000", "depth": "2" }, { "id": "502", "name": "朝阳区", "parentid": "1", "parentname": "北京", "areacode": "010", "zipcode": "100000", "depth": "2" }, { "id": "503", "name": "崇文区", "parentid": "1", "parentname": "北京", "areacode": "010", "zipcode": "100000", "depth": "2" } ] }

获取全部区域


接口地址:https://api.binstd.com/area/all
支持格式:JSON,JSONP
请求方法:GET
请求示例:https://api.binstd.com/area/all?appkey=yourappkey

返回参数

参数名称类型必填说明
id int ID
name string 名称
parentid int 上级ID
parentname string 上级名称
areacode string 区号
zipcode string 邮编
depth string 区域等级(深度) 冗余字段,用来查找
返回示例:{ "status": "0", "msg": "ok", "result": [ { "id": "1", "name": "北京", "parentid": "0", "parentname": "", "areacode": "010", "zipcode": "100000", "depth": "1" }, { "id": "2", "name": "安徽", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "3", "name": "福建", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "4", "name": "甘肃", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "5", "name": "广东", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" } ] }

获取全部省份


接口地址:https://api.binstd.com/area/province
支持格式:JSON,JSONP
请求方法:GET
请求示例:https://api.binstd.com/area/province?appkey=yourappkey

返回参数

参数名称类型必填说明
id int ID
name string 名称
parentid int 上级ID
parentname string 上级名称
areacode string 区号
zipcode string 邮编
depth string 区域等级(深度) 冗余字段,用来查找
返回示例:{ "status": "0", "msg": "ok", "result": [ { "id": "1", "name": "北京", "parentid": "0", "parentname": "", "areacode": "010", "zipcode": "100000", "depth": "1" }, { "id": "2", "name": "安徽", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "3", "name": "福建", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "4", "name": "甘肃", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "5", "name": "广东", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "6", "name": "广西", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "7", "name": "贵州", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "8", "name": "海南", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "9", "name": "河北", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "10", "name": "河南", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "11", "name": "黑龙江", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "12", "name": "湖北", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "13", "name": "湖南", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "14", "name": "吉林", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "15", "name": "江苏", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "16", "name": "江西", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "17", "name": "辽宁", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "18", "name": "内蒙古", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "19", "name": "宁夏", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "20", "name": "青海", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "21", "name": "山东", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "22", "name": "山西", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "23", "name": "陕西", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "24", "name": "上海", "parentid": "0", "parentname": "", "areacode": "021", "zipcode": "200000", "depth": "1" }, { "id": "25", "name": "四川", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "26", "name": "天津", "parentid": "0", "parentname": "", "areacode": "022", "zipcode": "300000", "depth": "1" }, { "id": "27", "name": "西藏", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "28", "name": "新疆", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "29", "name": "云南", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "30", "name": "浙江", "parentid": "0", "parentname": "", "areacode": "", "zipcode": "", "depth": "1" }, { "id": "31", "name": "重庆", "parentid": "0", "parentname": "", "areacode": "023", "zipcode": "404100", "depth": "1" }, { "id": "32", "name": "香港", "parentid": "0", "parentname": "", "areacode": "00852", "zipcode": "999077", "depth": "1" }, { "id": "33", "name": "澳门", "parentid": "0", "parentname": "", "areacode": "00853", "zipcode": "999078", "depth": "1" }, { "id": "34", "name": "台湾", "parentid": "0", "parentname": "", "areacode": "00886", "zipcode": "", "depth": "1" } ] }

根据省份获取市


接口地址:https://api.binstd.com/area/city
支持格式:JSON,JSONP
请求方法:GET

请求参数

参数名称类型说明
parentid int 上级ID
请求示例:https://api.binstd.com/area/city?parentid=10&appkey=yourappkey

返回参数

参数名称类型必填说明
id int ID
name string 名称
parentid int 上级ID
parentname string 上级名称
areacode string 区号
zipcode string 邮编
depth string 区域等级(深度) 冗余字段,用来查找
返回示例:{ "status": "0", "msg": "ok", "result": [ { "id": "148", "name": "郑州", "parentid": "10", "parentname": "河南", "areacode": "0371", "zipcode": "450000", "depth": "2" }, { "id": "149", "name": "洛阳", "parentid": "10", "parentname": "河南", "areacode": "0379", "zipcode": "471000", "depth": "2" }, { "id": "150", "name": "开封", "parentid": "10", "parentname": "河南", "areacode": "0378", "zipcode": "475100", "depth": "2" }, { "id": "151", "name": "安阳", "parentid": "10", "parentname": "河南", "areacode": "0372", "zipcode": "455100", "depth": "2" }, { "id": "152", "name": "鹤壁", "parentid": "10", "parentname": "河南", "areacode": "0392", "zipcode": "458000", "depth": "2" }, { "id": "153", "name": "济源", "parentid": "10", "parentname": "河南", "areacode": "0391", "zipcode": "454650", "depth": "2" }, { "id": "154", "name": "焦作", "parentid": "10", "parentname": "河南", "areacode": "0391", "zipcode": "454150", "depth": "2" }, { "id": "155", "name": "南阳", "parentid": "10", "parentname": "河南", "areacode": "0377", "zipcode": "473000", "depth": "2" }, { "id": "156", "name": "平顶山", "parentid": "10", "parentname": "河南", "areacode": "0375", "zipcode": "467000", "depth": "2" }, { "id": "157", "name": "三门峡", "parentid": "10", "parentname": "河南", "areacode": "0398", "zipcode": "472000", "depth": "2" }, { "id": "158", "name": "商丘", "parentid": "10", "parentname": "河南", "areacode": "0370", "zipcode": "476000", "depth": "2" }, { "id": "159", "name": "新乡", "parentid": "10", "parentname": "河南", "areacode": "0373", "zipcode": "453700", "depth": "2" }, { "id": "160", "name": "信阳", "parentid": "10", "parentname": "河南", "areacode": "0376", "zipcode": "464000", "depth": "2" }, { "id": "161", "name": "许昌", "parentid": "10", "parentname": "河南", "areacode": "0374", "zipcode": "461100", "depth": "2" }, { "id": "162", "name": "周口", "parentid": "10", "parentname": "河南", "areacode": "0394", "zipcode": "466000", "depth": "2" }, { "id": "163", "name": "驻马店", "parentid": "10", "parentname": "河南", "areacode": "0396", "zipcode": "463000", "depth": "2" }, { "id": "164", "name": "漯河", "parentid": "10", "parentname": "河南", "areacode": "0395", "zipcode": "462000", "depth": "2" }, { "id": "165", "name": "濮阳", "parentid": "10", "parentname": "河南", "areacode": "0393", "zipcode": "457100", "depth": "2" } ] }

根据市获取区县


接口地址:https://api.binstd.com/area/town
支持格式:JSON,JSONP
请求方法:GET

请求参数

参数名称类型说明
parentid int 上级ID
请求示例:https://api.binstd.com/area/town?parentid=162&appkey=yourappkey

返回参数

参数名称类型必填说明
id int ID
name string 名称
parentid int 上级ID
parentname string 上级名称
areacode string 区号
zipcode string 邮编
depth string 区域等级(深度) 冗余字段,用来查找
返回示例:{ "status": "0", "msg": "ok", "result": [ { "id": "1383", "name": "川汇区", "parentid": "162", "parentname": "周口", "areacode": "0394", "zipcode": "466000", "depth": "3" }, { "id": "1384", "name": "项城市", "parentid": "162", "parentname": "周口", "areacode": "0394", "zipcode": "466200", "depth": "3" }, { "id": "1385", "name": "扶沟县", "parentid": "162", "parentname": "周口", "areacode": "0394", "zipcode": "461300", "depth": "3" }, { "id": "1386", "name": "西华县", "parentid": "162", "parentname": "周口", "areacode": "0394", "zipcode": "466600", "depth": "3" }, { "id": "1387", "name": "商水县", "parentid": "162", "parentname": "周口", "areacode": "0394", "zipcode": "466100", "depth": "3" }, { "id": "1388", "name": "沈丘县", "parentid": "162", "parentname": "周口", "areacode": "0394", "zipcode": "466300", "depth": "3" }, { "id": "1389", "name": "郸城县", "parentid": "162", "parentname": "周口", "areacode": "0394", "zipcode": "477150", "depth": "3" }, { "id": "1390", "name": "淮阳县", "parentid": "162", "parentname": "周口", "areacode": "0394", "zipcode": "466700", "depth": "3" }, { "id": "1391", "name": "太康县", "parentid": "162", "parentname": "周口", "areacode": "0394", "zipcode": "475400", "depth": "3" }, { "id": "1392", "name": "鹿邑县", "parentid": "162", "parentname": "周口", "areacode": "0394", "zipcode": "477200", "depth": "3" } ] }

官网:https://www.binstd.com/

介绍:企业和程序员可以通过进制数据封装的API或SDK极速接入其他数据资源,同时进制数据提供数据交易等服务。通过进制数据,不仅开发成本极大降低,而且可以获得其他丰富的数据服务:数据交易,数据分析,区块链Token管理等服务。

联系方式:

电话:173-6457-5198

QQ① 群:792473404

客服 QQ:1643296538

微信客服:binstds

 

进制数据介绍:

企业和程序员可以通过进制数据封装的API或SDK极速接入其他数据资源,同时进制数据提供数据交易等服务。通过进制数据,不仅开发成本极大降低,而且可以获得其他丰富的数据服务:数据交易,数据分析,区块链Token管理等服务。

 

 

联系我们:

电话:173-6457-5198

QQ① 群:792473404

客服 QQ:1643296538

微信客服:binstds

                                      扫描二维码添加客服微信

 

 

工作时间

 周一至周五 9:00 - 21:00(其中周三为 9:00 - 18:00) 

周六 9:00 - 12:00(节假日除外) 

 

 

进制数据团队

 

 

2020.01.01

 

 

 

 

 


其他服务商
热门API推荐
相关API推荐