- 简介
- 时间
- 生活服务
- Live2d
- 数据仓库
- 行政区划
- 碧蓝航线
- Bilibili
- 壁纸
- 音乐
- 成语
- 加解密编码
省市区街道列表
测试中
GET
https://api.timelessq.com/district
district
最后修改时间:2023-02-15 01:57:17
请求参数
Query 参数
level
联动等级2、3、4
示例值:
2
示例代码
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?level=2'
返回响应
🟢200successful operation
application/json
Body
errno
integer
必需
errmsg
string
必需
data
array [object {3}]
必需
code
string
地区编号
name
string
名称
children
array [object {2}]
必需
示例
{
"errno": 0,
"errmsg": "",
"data": [
{
"code": "11",
"name": "北京市",
"children": [
{
"code": "110101",
"name": "东城区"
},
{
"code": "110102",
"name": "西城区"
},
{
"code": "110105",
"name": "朝阳区"
},
{
"code": "110106",
"name": "丰台区"
},
{
"code": "110107",
"name": "石景山区"
},
{
"code": "110108",
"name": "海淀区"
},
{
"code": "110109",
"name": "门头沟区"
},
{
"code": "110111",
"name": "房山区"
},
{
"code": "110112",
"name": "通州区"
},
{
"code": "110113",
"name": "顺义区"
},
{
"code": "110114",
"name": "昌平区"
},
{
"code": "110115",
"name": "大兴区"
},
{
"code": "110116",
"name": "怀柔区"
},
{
"code": "110117",
"name": "平谷区"
},
{
"code": "110118",
"name": "密云区"
},
{
"code": "110119",
"name": "延庆区"
}
]
},
{
"code": "12",
"name": "天津市",
"children": [
{
"code": "120101",
"name": "和平区"
},
{
"code": "120102",
"name": "河东区"
},
{
"code": "120103",
"name": "河西区"
},
{
"code": "120104",
"name": "南开区"
},
{
"code": "120105",
"name": "河北区"
},
{
"code": "120106",
"name": "红桥区"
},
{
"code": "120110",
"name": "东丽区"
},
{
"code": "120111",
"name": "西青区"
},
{
"code": "120112",
"name": "津南区"
},
{
"code": "120113",
"name": "北辰区"
},
{
"code": "120114",
"name": "武清区"
},
{
"code": "120115",
"name": "宝坻区"
},
{
"code": "120116",
"name": "滨海新区"
},
{
"code": "120117",
"name": "宁河区"
},
{
"code": "120118",
"name": "静海区"
},
{
"code": "120119",
"name": "蓟州区"
}
]
}
]
}
🟠400Invalid status value
修改于 2023-02-15 01:57:17