Skip to content

功能概述

地区管理

接口访问

接口地址

pc/region/list

请求方式 Method

GET

请求参数

属性类型长度必填默认值说明
parentCodestring256false000000父ID

返回值

属性类型必填说明
areaCodestringtrue区域编码,唯一标识
areaNamestringtrue区域名称
parentCodestringtrue父级区域编码
codePathstringtrue完整路径编码
fullNameinttrue完整名称
levelinttrue层级(1-5)1: 省份2: 城市3: 区域(区/县)4: 乡镇(街道/镇)5: 村(居委会/村委会)

返回示例

{
    "response": [
        {
            "areaCode": "460000",
            "areaName": "海南省",
            "parentCode": "000000",
            "codePath": "460000",
            "fullName": "海南省",
            "level": 1
        }
    ],
    "requestId": "b409f2f0-e228-4270-9aca-75f2bc3fdbed"
}