来自ID开放平台
common/get_provinces
查询指定省份的城市列表
URL
http://api.10000.com/common/get_citys
HTTP请求方式
GET
请求参数
| 必选 | 类型及范围 | 说明 | |
|---|---|---|---|
| client_id | true | string | 申请应用时分配的AppKey。 |
| access_token | true | string | 采用OAuth授权方式为必填参数,OAuth授权后获得。 |
| country | true | integer | 国家ID,目前仅支持中国:1。 |
返回数据
| 返回值字段 | 字段类型 | 字段说明 |
|---|---|---|
| id | integer | 省份ID |
| region | string | 省份名称 |
| code1 | integer | 省份编码 |
[
{
"id": "3193",
"region": "西藏",
"code1": "18939904"
},
{
"id": "3141",
"region": "澳门",
"code1": "19005440"
},
{
"id": "3274",
"region": "青海",
"code1": "18874368"
},
......
]