ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/area/lists` 请求方式:`GET` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |pid|是|int|父级区域id(省级时为0)|-| **返回示例** - success ```json { "ret": 0, "msg": "ok", "data": [ { "id": "110000", "name": "北京市", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "120000", "name": "天津市", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "130000", "name": "河北省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "140000", "name": "山西省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "150000", "name": "内蒙古", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "210000", "name": "辽宁省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "220000", "name": "吉林省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "230000", "name": "黑龙江", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "310000", "name": "上海市", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "320000", "name": "江苏省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "330000", "name": "浙江省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "340000", "name": "安徽省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "350000", "name": "福建省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "360000", "name": "江西省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "370000", "name": "山东省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "410000", "name": "河南省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "420000", "name": "湖北省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "430000", "name": "湖南省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "440000", "name": "广东省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "450000", "name": "广西省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "460000", "name": "海南省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "500000", "name": "重庆市", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "510000", "name": "四川省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "520000", "name": "贵州省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "530000", "name": "云南省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "540000", "name": "西 藏", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "610000", "name": "陕西省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "620000", "name": "甘肃省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "630000", "name": "青海省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "640000", "name": "宁 夏", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "650000", "name": "新 疆", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "710000", "name": "台湾省", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "810000", "name": "香 港", "pid": "0", "isparent": "true", "isParent": "true" }, { "id": "820000", "name": "澳 门", "pid": "0", "isparent": "true", "isParent": "true" } ] } ``` - error ```json { "msg": "未知错误", "ret": -1 } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |ret |int |状态码 0:成功| |msg |string |状态消息 ok:成功| --: 该接口最后修订时间:2016-02-13 13:23:34 * * * * *