ip查询v2

GET
https://apix.iqfk.top/api/ipv2

接口描述

免费API提供快速的IP查询服务,基于本地数据实现高效响应,支持位置查询等功能。

请求参数

请求示例

var axios = require('axios')

var config = {
  method: 'get',
  url: ''
}

axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data))
  })
  .catch(function (error) {
    console.log(error)
  })

返回示例

{
    "code": 200, // 状态码,200表示成功
    "message": "查询成功", // 状态消息
    "data": {
        "ip": "114.114.114.114", // 查询的IP地址
        "region": "中国|江苏省|南京市|0", // 原始地区信息
        "regionInfo": {
            "country": "中国", // 国家
            "province": "江苏省", // 省份
            "city": "南京市", // 城市
            "isp": "0" // 运营商
        }
    }
}