- 简介
- 时间
- 生活服务
- Live2d
- 数据仓库
- 行政区划
- 碧蓝航线
- Bilibili
- 壁纸
- 音乐
- 成语
- 加解密编码
行政区划搜索
测试中
GET
https://api.timelessq.com/district/search
district
最后修改时间:2023-02-15 02:15:03
请求参数
Query 参数
keyword
地区名称、地区编号
示例值:
南宁
keepParent
integer
可选
示例值:
1
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.timelessq.com/district/search?keyword=南宁&keepParent=1'
返回响应
🟢200成功
application/json
Body
errno
integer
必需
errmsg
string
必需
data
array [object {2}]
必需
code
string
必需
name
string
必需
示例
{
"errno": 0,
"errmsg": "",
"data": [
{
"code": "45",
"name": "广西壮族自治区",
"children": [
{
"code": "4501",
"name": "南宁市",
"children": [
{
"code": "450110",
"name": "武鸣区",
"children": [
{
"code": "450110451",
"name": "南宁华侨投资区"
}
]
},
{
"code": "450127",
"name": "横县",
"children": [
{
"code": "450127400",
"name": "南宁六景工业园区管委会"
}
]
}
]
}
]
},
{
"code": "53",
"name": "云南省",
"children": [
{
"code": "5303",
"name": "曲靖市",
"children": [
{
"code": "530302",
"name": "麒麟区",
"children": [
{
"code": "530302001",
"name": "南宁街道"
}
]
}
]
}
]
}
]
}
🟠400Invalid status value
修改于 2023-02-15 02:15:03