跳转到内容

国家地区

查询支持的行政区划入口


查询国家行政区划树

GET
/api/v1/country/{countryCode}/district/{districtCode}/tree

授权

UserHttpBearer

使用现有不透明令牌进行身份验证

类型HTTP (bearer)

参数

路径参数

countryCode*
类型string
必填
districtCode*
类型string
必填

响应

成功

*/*
JSON
"string"

试验场

授权
变量

示例

cURL
JavaScript
PHP
Python

查询国家省份列表

GET
/api/v1/country/{countryCode}/province

授权

UserHttpBearer

使用现有不透明令牌进行身份验证

类型HTTP (bearer)

参数

路径参数

countryCode*
类型string
必填

响应

成功

*/*
JSON
"string"

试验场

授权
变量

示例

cURL
JavaScript
PHP
Python

对地区列表进行全文搜索

GET
/api/v1/country/district/search
UserHttpBearer

使用现有不透明令牌进行身份验证

类型HTTP (bearer)

查询参数

dto*
必填

成功

*/*
JSON
"string"
授权
变量
cURL
JavaScript
PHP
Python

查询城市区域列表

GET
/api/v1/country/{countryCode}/city/{cityCode}/area

授权

UserHttpBearer

使用现有不透明令牌进行身份验证

类型HTTP (bearer)

参数

路径参数

countryCode*
类型string
必填
cityCode*
类型string
必填

响应

成功

*/*
JSON
"string"

试验场

授权
变量

示例

cURL
JavaScript
PHP
Python

查询行政区划详情

GET
/api/v1/country/{countryCode}/district/{districtCode}

授权

UserHttpBearer

使用现有不透明令牌进行身份验证

类型HTTP (bearer)

参数

路径参数

countryCode*
类型string
必填
districtCode*
类型string
必填

响应

成功

*/*
JSON
"string"

试验场

授权
变量

示例

cURL
JavaScript
PHP
Python

查询省份下的城市列表

GET
/api/v1/country/{countryCode}/province/{provinceCode}/city

授权

UserHttpBearer

使用现有不透明令牌进行身份验证

类型HTTP (bearer)

参数

路径参数

countryCode*
类型string
必填
provinceCode*
类型string
必填

响应

成功

*/*
JSON
"string"

试验场

授权
变量

示例

cURL
JavaScript
PHP
Python

基于 GPL-3.0 许可发布