IP 查询
IP 地址定位查询 · 多级缓存 · 纯真IP数据库
💡 缓存状态: 缓存文件 473 个 | 总大小 106.3 KB | 有效期 7天 (命中缓存可大幅提升响应速度)
2,706
📊 本地库记录 ✅
1,693,156
📚 纯真库记录 ✅
620.0 KB
💿 本地库大小

请求方式:GET

请求地址:https://www.98qy.com/ip/api

返回格式:json / txt / js

请求示例:https://www.98qy.com/ip/api?ip=8.8.8.8&format=json

请求参数:

名称 必填 类型 说明
  ip 否 string 要查询的 IP 地址(留空则返回本机 IP)
  format 否 string 返回格式:json / txt / js(默认 json)

返回参数:

名称 类型 说明
  code int 状态码(200=成功)
  success bool 是否成功
  ip string 查询的 IP 地址
  type string IP 类型(public/private)
  source string 数据源(local_db/qqwry/api/private)
  location object 地理位置信息(国家、地区、城市、ISP)

返回示例(json):

{
  "code": 200,
  "success": true,
  "ip": "8.8.8.8",
  "type": "public",
  "source": "qqwry",
  "location": {
    "country": "美国",
    "countryCode": "",
    "region": "加利福尼亚州",
    "city": "圣克拉拉",
    "isp": "谷歌公司DNS服务器",
    "detail": "美国 加利福尼亚州 圣克拉拉 谷歌公司DNS服务器"
  }
}

🔍 在线测试:

💡 提示:查询流程 文件缓存 → 本地库 → 纯真库 → 第三方API,首次查询后7天内极速响应。