• 196
  • 1644
  • 133

全国行政区域

众云电子商务

供应商合作停止,接口暂无法提供服务。您也可以选择免费离线数据下载:https://www.juhe.cn/market

  • 首次申请送100
  • 50000
  • 2000

¥0 (约元/次)首次申请送100次

  • API文档
  • 错误码参照
  • 示例代码
  • 联系我们
立即调用
接口地址:http://AreaData.api.juhe.cn/AreaHandler.ashx
返回格式:json
请求方式:get
请求示例:http://AreaData.api.juhe.cn/AreaHandler.ashx?action=getArea&areaID=110101
接口备注:获取全国行政区域列表、精确到乡镇、社区街道办事处

请求参数说明:

名称 必填 类型 说明
  key string 您申请的APPKEY
  areaID string 0为获取省、根据返回的省ID获取市县乡镇社区
  action string getArea(固定参数一直不变)

返回参数说明:

名称 类型 说明
  error_code int 返回码
  reason string 返回说明

JSON返回示例:

{"reason":"OK","result":[{"id":"11","name":"北京市","FullName":"北京市","ParentId":"","zip":""},{"id":"12","name":"天津市","FullName":"天津市","ParentId":"","zip":""},{"id":"13","name":"河北省","FullName":"河北省","ParentId":"","zip":""},{"id":"14","name":"山西省","FullName":"山西省","ParentId":"","zip":""},{"id":"15","name":"内蒙古自治区","FullName":"内蒙古自治区","ParentId":"","zip":""},{"id":"21","name":"辽宁省","FullName":"辽宁省","ParentId":"","zip":""},{"id":"22","name":"吉林省","FullName":"吉林省","ParentId":"","zip":""},{"id":"23","name":"黑龙江省","FullName":"黑龙江省","ParentId":"","zip":""},{"id":"31","name":"上海市","FullName":"上海市","ParentId":"","zip":""},{"id":"32","name":"江苏省","FullName":"江苏省","ParentId":"","zip":""},{"id":"33","name":"浙江省","FullName":"浙江省","ParentId":"","zip":""},{"id":"34","name":"安徽省","FullName":"安徽省","ParentId":"","zip":""},{"id":"35","name":"福建省","FullName":"福建省","ParentId":"","zip":""},{"id":"36","name":"江西省","FullName":"江西省","ParentId":"","zip":""},{"id":"37","name":"山东省","FullName":"山东省","ParentId":"","zip":""},{"id":"41","name":"河南省","FullName":"河南省","ParentId":"","zip":""},{"id":"42","name":"湖北省","FullName":"湖北省","ParentId":"","zip":""},{"id":"43","name":"湖南省","FullName":"湖南省","ParentId":"","zip":""},{"id":"44","name":"广东省","FullName":"广东省","ParentId":"","zip":""},{"id":"45","name":"广西壮族自治区","FullName":"广西壮族自治区","ParentId":"","zip":""},{"id":"46","name":"海南省","FullName":"海南省","ParentId":"","zip":""},{"id":"50","name":"重庆市","FullName":"重庆市","ParentId":"","zip":""},{"id":"51","name":"四川省","FullName":"四川省","ParentId":"","zip":""},{"id":"52","name":"贵州省","FullName":"贵州省","ParentId":"","zip":""},{"id":"53","name":"云南省","FullName":"云南省","ParentId":"","zip":""},{"id":"54","name":"西藏自治区","FullName":"西藏自治区","ParentId":"","zip":""},{"id":"61","name":"陕西省","FullName":"陕西省","ParentId":"","zip":""},{"id":"62","name":"甘肃省","FullName":"甘肃省","ParentId":"","zip":""},{"id":"63","name":"青海省","FullName":"青海省","ParentId":"","zip":""},{"id":"64","name":"宁夏回族自治区","FullName":"宁夏回族自治区","ParentId":"","zip":""},{"id":"65","name":"新疆维吾尔自治区","FullName":"新疆维吾尔自治区","ParentId":"","zip":""},{"id":"71","name":"台湾省","FullName":"台湾省","ParentId":"","zip":""},{"id":"81","name":"香港特别行政区","FullName":"香港特别行政区","ParentId":"","zip":""},{"id":"82","name":"澳门特别行政区","FullName":"澳门特别行政区","ParentId":"","zip":""}],"error_code":0}

服务级错误码参照(error_code):

  错误码 说明

系统级错误码参照:

  错误码 说明 旧版本(resultcode)
  10001 错误的请求KEY 101
  10002 该KEY无请求权限 102
  10003 KEY过期 103
  10004 错误的OPENID 104
  10005 应用未审核超时,请提交认证 105
  10007 未知的请求源 107
  10008 被禁止的IP 108
  10009 被禁止的KEY 109
  10011 当前IP请求超过限制 111
  10012 请求超过次数限制 112
  10013 测试KEY超过请求限制 113
  10014 系统内部异常(调用充值类业务时,请务必联系客服或通过订单查询接口检测订单,避免造成损失) 114
  10020 接口维护 120
  10021 接口停用 121

错误码格式说明(示例:200201):

  2 002 01
  服务级错误(1为系统级错误) 服务模块代码(即数据ID) 具体错误代码

完整教学代码示例:

  语言 标题 提供者 时间

常见问题:

  内容 详细
  常见问题: http://www.juhe.cn/qa/index/1537564949

联系我们

  内容 详细
  接口测试: API测试工具
  技术支持: info@juhe.cn
  联系电话: 400-8827-715
  在线客服QQ: 800076065

猜你喜欢

现在注册,百款接口免费测试

免费注册