> POST[http://域名/yrapi.php/index/elecity](https://gitee.com/link?target=http%3A%2F%2F%25E5%259F%259F%25E5%2590%258D%2Fyrapi.php%2Findex%2Felecity)
### [](#%E8%AF%B7%E6%B1%82%E4%BD%93request-body-6)请求体(Request Body)
| 参数名称 | 数据类型 | 示例 | 不为空 | 描述 |
| --- | --- | --- | --- | --- |
| userid | string | 10001 | true | 账号ID |
| sign | string | DS9V0606ITN8GLJM5M4L4DYWQX0VDMVM | true | 签名;签名规则见“签名说明” |
### [](d#%E5%93%8D%E5%BA%94%E4%BD%93-6)响应体
● 响应数据格式:JSON
| 参数名称 | 类型 | 示例 | 不为空 | 描述 |
| --- | --- | --- | --- | --- |
| errno | string | 0 | true | 错误码,0代表查询成功,非0代表失败 |
| errmsg | string | 查询成功 | true | 错误描述 |
| data | array | \* | true | errno=0时 返回数据 |
| ⇥ city\_name | string | 广东 | true | 地区名称 |
| ⇥ sort | int | 100 | true | 排序 |
| ⇥ initial | string | G | true | 首字母 |
| ⇥ need\_ytype | Int | 1 | true | 是否三要素认证 |
| ⇥ need\_city | Int | 1 | true | 是否需要选择城市(当此开关打开以后才有下面的城市列表) |
| ⇥ city | Array | \* | true | 支持的地级市 |
| ⇥⇥ city\_name | string | 广州 | true | 城市名称 |
| ⇥⇥ initial | string | G | true | 首字母 |