- dim层接口
- dwd层接口
- dws层接口
- cfg数据表
- dim层关联表接口
- 测试接口
- ext接口
获取地区信息
开发中
GET
api/v1/areas
请求参数
Query 参数
country_id
integer
可选
示例值:
1
region_id
integer
可选
示例值:
1
province_id
integer
可选
city_id
integer
可选
district_id
integer
可选
page_size
integer
页面大小
示例值:
10
current_page
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 'api/v1/areas?country_id=1®ion_id=1&province_id=&city_id=&district_id=&page_size=10¤t_page=1'
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
array [object {25}]
必需
city_id
integer
必需
city_level_id
integer
必需
city_level_name
null
必需
city_name
null
必需
country_id
integer
必需
country_name
string
必需
created_at
string
必需
deleted_at
null
必需
district_area
null
必需
district_base_address
null
必需
district_code
string
必需
district_name
null
必需
district_population
null
必需
id
integer
必需
lat
null
必需
lng
null
必需
phone_code
null
必需
postal_code
null
必需
province_id
integer
必需
province_name
null
必需
province_type
string
必需
region_id
integer
必需
region_name
null
必需
status
integer
必需
updated_at
null
必需
message
string
必需
示例
{
"code": 0,
"data": [
{
"city_id": 236,
"city_level_id": 8,
"city_level_name": null,
"city_name": null,
"country_id": 1,
"country_name": "St. Kitts and Nevis",
"created_at": "Fri, 05 Jun 2009 00:45:06 GMT",
"deleted_at": null,
"district_area": null,
"district_base_address": null,
"district_code": "awymwSADjR",
"district_name": null,
"district_population": null,
"id": 3022,
"lat": null,
"lng": null,
"phone_code": null,
"postal_code": null,
"province_id": 30,
"province_name": null,
"province_type": "省",
"region_id": 1,
"region_name": null,
"status": 1,
"updated_at": null
},
{
"city_id": 216,
"city_level_id": 5,
"city_level_name": null,
"city_name": null,
"country_id": 1,
"country_name": "南非",
"created_at": "Sun, 25 Oct 2009 20:36:53 GMT",
"deleted_at": null,
"district_area": null,
"district_base_address": null,
"district_code": "tho0wP701F",
"district_name": null,
"district_population": null,
"id": 5001,
"lat": null,
"lng": null,
"phone_code": null,
"postal_code": null,
"province_id": 71,
"province_name": null,
"province_type": "直辖市",
"region_id": 1,
"region_name": null,
"status": 1,
"updated_at": null
},
{
"city_id": 19,
"city_level_id": 8,
"city_level_name": null,
"city_name": null,
"country_id": 1,
"country_name": "シンガポール",
"created_at": "Thu, 05 Apr 2018 18:41:10 GMT",
"deleted_at": null,
"district_area": null,
"district_base_address": null,
"district_code": "SEtIPAzqj6",
"district_name": null,
"district_population": null,
"id": 5395,
"lat": null,
"lng": null,
"phone_code": null,
"postal_code": null,
"province_id": 65,
"province_name": null,
"province_type": "直辖市",
"region_id": 1,
"region_name": null,
"status": 1,
"updated_at": null
},
{
"city_id": 56,
"city_level_id": 3,
"city_level_name": null,
"city_name": null,
"country_id": 1,
"country_name": "斐济",
"created_at": "Tue, 27 Oct 2009 23:35:34 GMT",
"deleted_at": null,
"district_area": null,
"district_base_address": null,
"district_code": "fLtoTO8S09",
"district_name": null,
"district_population": null,
"id": 6300,
"lat": null,
"lng": null,
"phone_code": null,
"postal_code": null,
"province_id": 41,
"province_name": null,
"province_type": "省",
"region_id": 1,
"region_name": null,
"status": 1,
"updated_at": null
},
{
"city_id": 771,
"city_level_id": 3,
"city_level_name": null,
"city_name": null,
"country_id": 1,
"country_name": "玻利維亞",
"created_at": "Sat, 17 Apr 2021 00:10:34 GMT",
"deleted_at": null,
"district_area": null,
"district_base_address": null,
"district_code": "OW7t13EuA1",
"district_name": null,
"district_population": null,
"id": 6750,
"lat": null,
"lng": null,
"phone_code": null,
"postal_code": null,
"province_id": 51,
"province_name": null,
"province_type": "省",
"region_id": 1,
"region_name": null,
"status": 1,
"updated_at": null
},
{
"city_id": 494,
"city_level_id": 10,
"city_level_name": null,
"city_name": null,
"country_id": 1,
"country_name": "オーストリア",
"created_at": "Fri, 25 Feb 2000 20:11:28 GMT",
"deleted_at": null,
"district_area": null,
"district_base_address": null,
"district_code": "wHP3BoNEip",
"district_name": null,
"district_population": null,
"id": 8384,
"lat": null,
"lng": null,
"phone_code": null,
"postal_code": null,
"province_id": 6,
"province_name": null,
"province_type": "省",
"region_id": 1,
"region_name": null,
"status": 1,
"updated_at": null
},
{
"city_id": 60,
"city_level_id": 10,
"city_level_name": null,
"city_name": null,
"country_id": 1,
"country_name": "蒙古",
"created_at": "Tue, 22 Dec 2009 16:47:17 GMT",
"deleted_at": null,
"district_area": null,
"district_base_address": null,
"district_code": "786qAyoKMB",
"district_name": null,
"district_population": null,
"id": 8412,
"lat": null,
"lng": null,
"phone_code": null,
"postal_code": null,
"province_id": 28,
"province_name": null,
"province_type": "直辖市",
"region_id": 1,
"region_name": null,
"status": 1,
"updated_at": null
}
],
"message": "success"
}