首页 / 帮助文档 / 开发者文档 / 2.2.4. 查询可用国家地区

查询可用国家地区

返回指定账号可定位的国家、州/省与城市。提取代理时把 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": "查询成功"
}

响应参数说明

参数名类型说明
countryCodeString国家/地区二字码,如 US
countryNameString国家/地区名称
stateCodeString州/省代码,可为空
cityCodeString城市代码,可为空
说明本接口不分页,一次返回该账号的全部可定位区域,total 等于行数。
技术支持 support@iplight.net · 返回官网 · 使用教程