查询可用国家地区
返回指定账号可定位的国家、州/省与城市。提取代理时把 countryCode 等传入 exportIp 即可定点。
接口信息
GET /api/iplt/client/ip/dynamics/getLocationList
认证方式:API Key(x-merchant-code + x-merchant-token)
请求头
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| x-merchant-token | 是 | String | 商户令牌(API Key 的 token 部分) |
| x-merchant-code | 是 | String | 商户代码(API Key 的 code 部分) |
| Content-Type | 否 | String | 固定 application/json(POST/PUT 必填) |
请求参数(Query)
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| accountId | 是 | String | 账号 ID |
注意
accountId 必填。缺失会返回 code: 2002。响应示例
{
"total": 3,
"rows": [
{ "countryCode": "US", "countryName": "美国", "stateCode": "CA", "cityCode": "losangeles" },
{ "countryCode": "US", "countryName": "美国", "stateCode": "NY", "cityCode": "newyork" },
{ "countryCode": "GB", "countryName": "英国", "stateCode": null, "cityCode": null }
],
"code": 200,
"msg": "查询成功"
}
响应参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| countryCode | String | 国家/地区二字码,如 US |
| countryName | String | 国家/地区名称 |
| stateCode | String | 州/省代码,可为空 |
| cityCode | String | 城市代码,可为空 |
说明本接口不分页,一次返回该账号的全部可定位区域,
total 等于行数。