IP地址查询
IP地址归属地详情查询;仅限国内(含港澳台)

接口地址: https://api.qsir.cn/api/dm-ipquery

返回格式: JSON

请求方式: GET/POST

请求示例: https://api.qsir.cn/api/dm-ipquery?ip=183.192.70.211

即2023年9月1号起,所有接口请求必须携带秘钥,否则请求失败!!

请求参数说明:

名称 必填 类型 说明
ip String IP地址
longitude String 位置经度
latitude String 位置纬度

返回参数说明:

名称 类型 说明
continent String 大陆州
country String 国家
province String 省级行政区
city String 城市
district String 地区
isp String 网络运营商
areacode String 地区编码
countrycode String 国家代码
countryenglish String 国家英文名称
longitude String 经度
latitude String 纬度

返回示例:

{
  "code": 200,
  "msg": "success",
  "result": {
    "ip": "183.192.70.211",
    "continent": "亚洲",
    "country": "中国",
    "province": "上海",
    "city": "上海",
    "district": "徐汇区",
    "isp": "移动",
    "areacode": "310100",
    "countrycode": "CN",
    "countryenglish": "China",
    "longitude": "121.472644",
    "latitude": "31.231706"
  }
}

请求参数设置:

参数名称 参数值


{
  "code": 200,
  "msg": "success",
  "result": {
    "ip": "183.192.70.211",
    "continent": "亚洲",
    "country": "中国",
    "province": "上海",
    "city": "上海",
    "district": "徐汇区",
    "isp": "移动",
    "areacode": "310100",
    "countrycode": "CN",
    "countryenglish": "China",
    "longitude": "121.472644",
    "latitude": "31.231706"
  }
}

错误码格式说明:

名称 类型 说明
code int 成功
msg String 错误

代码示例:

暂无示例。