Download OpenAPI specification:Download
| depth | integer (Show down to subdivisions) [ 1 .. 3 ] Default: 1 2: show districts; 3: show wards |
[- {
- "code": 1,
- "codename": "thanh_pho_ha_noi",
- "districts": [
- {
- "code": 1,
- "codename": "quan_ba_dinh",
- "division_type": "quận",
- "name": "Quận Ba Đình",
- "province_code": 1,
- "wards": [
- {
- "code": 1,
- "codename": "phuong_phuc_xa",
- "district_code": 1,
- "division_type": "phường",
- "name": "Phường Phúc Xá"
}
]
}
], - "division_type": "thành phố trung ương",
- "name": "Thành phố Hà Nội",
- "phone_code": 24
}
][- {
- "code": 1,
- "codename": "thanh_pho_ha_noi",
- "districts": [
- {
- "code": 1,
- "codename": "quan_ba_dinh",
- "division_type": "quận",
- "name": "Quận Ba Đình",
- "province_code": 1,
- "wards": [
- {
- "code": 1,
- "codename": "phuong_phuc_xa",
- "district_code": 1,
- "division_type": "phường",
- "name": "Phường Phúc Xá"
}
]
}
], - "division_type": "thành phố trung ương",
- "name": "Thành phố Hà Nội",
- "phone_code": 24
}
]| code required | integer (Code) |
| depth | integer (Show down to subdivisions) [ 1 .. 3 ] Default: 1 2: show districts; 3: show wards |
{- "code": 1,
- "codename": "thanh_pho_ha_noi",
- "districts": [
- {
- "code": 1,
- "codename": "quan_ba_dinh",
- "division_type": "quận",
- "name": "Quận Ba Đình",
- "province_code": 1,
- "wards": [
- {
- "code": 1,
- "codename": "phuong_phuc_xa",
- "district_code": 1,
- "division_type": "phường",
- "name": "Phường Phúc Xá"
}
]
}
], - "division_type": "thành phố trung ương",
- "name": "Thành phố Hà Nội",
- "phone_code": 24
}Province code to filter (integer) or Province code to filter (null) (Province code to filter) |
[- {
- "code": 1,
- "codename": "quan_ba_dinh",
- "division_type": "quận",
- "name": "Quận Ba Đình",
- "province_code": 1,
- "wards": [
- {
- "code": 1,
- "codename": "phuong_phuc_xa",
- "district_code": 1,
- "division_type": "phường",
- "name": "Phường Phúc Xá"
}
]
}
]| code required | integer (Code) |
| depth | integer (Show down to subdivisions) [ 1 .. 2 ] Default: 1 2: show wards |
{- "code": 1,
- "codename": "quan_ba_dinh",
- "division_type": "quận",
- "name": "Quận Ba Đình",
- "province_code": 1,
- "wards": [
- {
- "code": 1,
- "codename": "phuong_phuc_xa",
- "district_code": 1,
- "division_type": "phường",
- "name": "Phường Phúc Xá"
}
]
}| q required | |
District code to filter (integer) or District code to filter (null) (District code to filter) | |
Province code to filter, ignored if district is given (integer) or Province code to filter, ignored if district is given (null) (Province code to filter, ignored if district is given) |
[- {
- "code": 754,
- "matches": {
- "mỹ": [
- 11,
- 13
]
}, - "name": "Thị xã Phú Mỹ"
}
]