接口描述 :调用本接口查询所有的地区信息。
请求方式 :get
请求路径 :/live/auxiliary-tools/query-province-list
使用说明: 单个用户一分钟限制调用10000次,并发不超过100
请求参数说明:
无
返回参数说明:
参数 | 类型 | 是否必传 | 名称及描述 |
---|---|---|---|
code | int | 是 | 状态码 |
message | string | 是 | 描述信息 |
result | list< object> | 否 | 返回结果数组 |
result[*].area_code | int | 否 | 地区编码 |
result[*].area_cnname | string | 否 | 中文名称 |
result[*].level | int | 否 | 区域级别 |
示例:
请求路径:https://cdnapi-global.ctapi.ctyun.cn/live/auxiliary-tools/query-province-list
示例1:
请求:https://cdnapi-global.ctapi.ctyun.cn/live/auxiliary-tools/query-province-list
返回结果:
{
"code": 100000,
"message": "success",
"result": [
{
"level": 1,
"area_code": 340000,
"area_cnname": "安徽"
},
{
"level": 1,
"area_code": 330000,
"area_cnname": "浙江"
},
{
"level": 1,
"area_code": 310000,
"area_cnname": "上海"
},
{
"level": 1,
"area_code": 320000,
"area_cnname": "江苏"
},
{
"level": 1,
"area_code": 360000,
"area_cnname": "江西"
},
{
"level": 1,
"area_code": 350000,
"area_cnname": "福建"
},
{
"level": 1,
"area_code": 440000,
"area_cnname": "广东"
},
{
"level": 1,
"area_code": 450000,
"area_cnname": "广西"
},
{
"level": 1,
"area_code": 460000,
"area_cnname": "海南"
},
{
"level": 1,
"area_code": 410000,
"area_cnname": "河南"
},
{
"level": 1,
"area_code": 430000,
"area_cnname": "湖南"
},
{
"level": 1,
"area_code": 420000,
"area_cnname": "湖北"
},
{
"level": 1,
"area_code": 210000,
"area_cnname": "辽宁"
},
{
"level": 1,
"area_code": 220000,
"area_cnname": "吉林"
},
{
"level": 1,
"area_code": 230000,
"area_cnname": "黑龙江"
},
{
"level": 1,
"area_code": 610000,
"area_cnname": "陕西"
},
{
"level": 1,
"area_code": 620000,
"area_cnname": "甘肃"
},
{
"level": 1,
"area_code": 630000,
"area_cnname": "青海"
},
{
"level": 1,
"area_code": 640000,
"area_cnname": "宁夏"
},
{
"level": 1,
"area_code": 650000,
"area_cnname": "新疆"
},
{
"level": 1,
"area_code": 110000,
"area_cnname": "北京"
},
{
"level": 1,
"area_code": 120000,
"area_cnname": "天津"
},
{
"level": 1,
"area_code": 130000,
"area_cnname": "河北"
},
{
"level": 1,
"area_code": 140000,
"area_cnname": "山西"
},
{
"level": 1,
"area_code": 150000,
"area_cnname": "内蒙古"
},
{
"level": 1,
"area_code": 370000,
"area_cnname": "山东"
},
{
"level": 1,
"area_code": 500000,
"area_cnname": "重庆"
},
{
"level": 1,
"area_code": 510000,
"area_cnname": "四川"
},
{
"level": 1,
"area_code": 520000,
"area_cnname": "贵州"
},
{
"level": 1,
"area_code": 530000,
"area_cnname": "云南"
},
{
"level": 1,
"area_code": 540000,
"area_cnname": "西藏"
},
{
"level": 0,
"area_code": 0,
"area_cnname": "中国"
},
{
"level": 1,
"area_code": 820000,
"area_cnname": "澳门特别行政区"
},
{
"level": 1,
"area_code": 810000,
"area_cnname": "香港特别行政区"
},
{
"level": 1,
"area_code": 710000,
"area_cnname": "台湾省"
}
]
}
错误码请参考:参数code和message含义