IP 归属地 查询

支持 IPv4 / IPv6 双栈查询。想知道某个 IP 地址在哪里吗?这个接口告诉你答案!
IP 数据库更新时间:获取中…
您的 IP:获取中...
GET http://www.ipsee.cn/api/v2?ip=114.102.109.97
JSON 管道符 本机 IP

API 文档

接口列表

路由说明参数
GET /api/v2?ip=JSON 格式查询ip (IPv4 / IPv6)
GET /api/v1?ip=管道符纯文本ip (IPv4 / IPv6)
GET /api/myip获取本机 IP无
GET /api/db数据库更新时间无

JSON 格式查询请求示例

接口地址:http://www.ipsee.cn/api/v2?ip=

IPv6 示例:http://www.ipsee.cn/api/v2?ip=240e:45b:1688:1ea:60f4:bfff:fe0f:482

curl PHP Python JavaScript Node.js Go Java
curl http://www.ipsee.cn/api/v2?ip=223.5.5.5

IPv4 返回格式

{
  "ip": "42.247.22.247",
  "ip_type": "企业/其他",
  "location": {
    "continent": "亚洲",
    "country": "中国",
    "province": "广东省",
    "city": "深圳市",
    "district": "南山区",
    "isp": "教育网",
    "area_code": "440300",
    "country_en": "China",
    "iso_code": "CN",
    "longitude": "116.708463",
    "latitude": "23.37102",
    "asn": "AS4538",
    "asn_org": "ERX-CERNET-BKB China Education and Research Network Center"
  }
}

IPv4 的 district 可能为空,取决于库内区县精度。

IPv6 返回示例

{
  "ip": "240e:45b:1688:1ea:60f4:bfff:fe0f:482",
  "ip_type": "无线基站网络",
  "location": {
    "continent": "亚洲",
    "country": "中国",
    "province": "安徽省",
    "city": "芜湖市",
    "district": "鸠江区",
    "isp": "电信",
    "area_code": "340207",
    "country_en": "China",
    "iso_code": "CN",
    "longitude": "117.30387609027962",
    "latitude": "31.860076187273556",
    "asn": "AS4134",
    "asn_org": "No.31,Jin-rong Street"
  }
}

IPv6 的省/市/区县为标准全称(如“安徽省 / 芜湖市 / 鸠江区”);移动基站类地址的 ip_type 为“无线基站网络”。

字段说明

字段类型说明
continentstring大洲
countrystring国家
provincestring省份
citystring城市
districtstring区县
ispstring运营商
area_codestring行政区划代码
country_enstring国家英文名
iso_codestring国家 ISO 代码
asnstring自治系统编号
asn_orgstringASN 组织
longitudestring经度
latitudestring纬度
ip_typestringIP 类型