当前所在位置:首页>数据接口>生活服务>全国行政区域

全国行政区域 

提供最新最全的全国行政区域查询、精确到县级乡镇、社区街道办事处

数据ID:123

接口状态:正常

连接应用数:1000

接入服务商:haoservice

/100次 购买套餐

  • API
  • 错误码参照
  • 资费套餐
  • 版本变更
  • 代码示例
  • 其他相关
接口地址: http://apis.haoservice.com/efficient/area
支持格式: JSON/XML
请求方式: GET/POST
明文方式请求参数:
名称 类型 必填 说明
key string API KEY
areaId Int 0为获取省、根据返回的省ID获取市县乡镇社区
密文方式请求参数:
名称 类型 必填 说明
IsEncrypt bool 是否密文传输方式
key string API KEY
params string 3des ECB模式 PKCS7填充模式 加密 3des("areaId=0","openId前24位")
调用样例及调试工具:
返回字段:
明文JSON返回示例:
{"error_code":0,"reason":"成功","result":[{"Id":1,"Code":110000000000,"Name":"北京市","ParentId":0},{"Id":7269,"Code":120000000000,"Name":"天津市","ParentId":0},{"Id":12851,"Code":130000000000,"Name":"河北省","ParentId":0},{"Id":66653,"Code":140000000000,"Name":"山西省","ParentId":0},{"Id":98114,"Code":150000000000,"Name":"内蒙古自治区","ParentId":0},{"Id":112111,"Code":210000000000,"Name":"辽宁省","ParentId":0},{"Id":129604,"Code":220000000000,"Name":"吉林省","ParentId":0},{"Id":141579,"Code":230000000000,"Name":"黑龙江省","ParentId":0},{"Id":154685,"Code":310000000000,"Name":"上海市","ParentId":0},{"Id":160574,"Code":320000000000,"Name":"江苏省","ParentId":0},{"Id":181540,"Code":330000000000,"Name":"浙江省","ParentId":0},{"Id":215267,"Code":340000000000,"Name":"安徽省","ParentId":0},{"Id":234191,"Code":350000000000,"Name":"福建省","ParentId":0},{"Id":252079,"Code":360000000000,"Name":"江西省","ParentId":0},{"Id":273776,"Code":370000000000,"Name":"山东省","ParentId":0},{"Id":355126,"Code":410000000000,"Name":"河南省","ParentId":0},{"Id":407751,"Code":420000000000,"Name":"湖北省","ParentId":0},{"Id":437544,"Code":430000000000,"Name":"湖南省","ParentId":0},{"Id":485028,"Code":440000000000,"Name":"广东省","ParentId":0},{"Id":511525,"Code":450000000000,"Name":"广西壮族自治区","ParentId":0},{"Id":528984,"Code":460000000000,"Name":"海南省","ParentId":0},{"Id":532285,"Code":500000000000,"Name":"重庆市","ParentId":0},{"Id":544480,"Code":510000000000,"Name":"四川省","ParentId":0},{"Id":602786,"Code":520000000000,"Name":"贵州省","ParentId":0},{"Id":622343,"Code":530000000000,"Name":"云南省","ParentId":0},{"Id":638097,"Code":540000000000,"Name":"西藏自治区","ParentId":0},{"Id":638098,"Code":610000000000,"Name":"陕西省","ParentId":0},{"Id":664523,"Code":620000000000,"Name":"甘肃省","ParentId":0},{"Id":683009,"Code":630000000000,"Name":"青海省","ParentId":0},{"Id":688082,"Code":640000000000,"Name":"宁夏回族自治区","ParentId":0},{"Id":691114,"Code":650000000000,"Name":"新疆维吾尔自治区","ParentId":0}]}
密文JSON返回示例:
hCe2pmNRFnwP3gbrGm9vnobmGI+VZPwJAFJ6xcEkeJGyOQKBipdMSDN1yb3lDI48WoqV7IJHb3tjJABrAc00igyE1dYBYQophG/6anzWjA857/YaMzKj5kfiVxyBavy4a4OudBnMncw=

推荐接口/API

  • 航班时刻票价查询

    查询航班可售舱位、经停点、机票验真、实时起降时间、改签查询、机场天气等

联系客服

010-58436659