IP9.COM.CN 免费 IP 归属地查询 API 随便用、不限量
同时国内国外线路,毫秒反应速度。
接口地址 GET URL https://ip9.com.cn/get?ip=58.30.0.0
返回结果示例 JSON { "ret": 200, // 200 为正常 "data": { "country": "中国", // 国家/地区 "country_code": "cn", // 国家/地区简码 "prov": "北京", // 省份 "city": "北京", // 城市 "city_code": "beijing", // 城市简码 "city_short_code": "bj", // 城市简码 "area": "东城", // 区县 "post_code": "100000", //邮政编码 "area_code": "010", // 电话区号 "isp": "中国移动", // 运营商 "lng": "116.41005", // 城市中心-经度 "lat": "39.93157", // 城市中心-纬度 "long_ip": 975044608, // longip "big_area": "华北" // 国内大区划分 }, "qt": 0.001 // 查询时间-秒 }
对接文档: https://www.ip9.com.cn/?source=v2
欢迎使用。
![]() | 1 kkk9 350 天前 不会是纯真和 ip2location.lite 吧? |
2 alexmaster OP @kkk9 这个不是 |
3 xhrzg2017 350 天前 {"ret":200,"data":{"country":"剖","country_code":"cn","prov":"蹂","city":"踹","city_code":"guangzhou","city_short_code":"gz","area":"","post_code":"510000","area_code":"020","isp":"\/","lng":"113.26683","lat":"23.12897","long_ip":1959198922,"big_area":""},"qt":0.001} 编码问题 |
4 alexmaster OP @xhrzg2017 浏览器调整到 utf8 编码 |
5 jifengg 350 天前 直接访问 https://ip9.com.cn/get 是本机出口 ip ,最好也能返回 ipv4 的格式,虽然有个 long_ip |
6 alexmaster OP @jifengg 记录 |
7 alexmaster OP 顶一波 |
![]() | 8 3573535 347 天前 via iPhone ret":200,"data":{"country":"涓","country_code":"cn","prov":"浜","city":"","city_code":"kunming","city_short_code":"km","area":"础","post_code":"650500","area_code":"0871","isp":"涓典俊","lng":"102.801382","lat":"24.889275","long_ip":1034351057,"big_area":"瑗垮"},"qt":0.001} |
9 alexmaster OP @3573535 浏览器调整到 utf8 编码 |
10 alexmaster OP 在 header 中增加默认 utf8 ,个别浏览器编码显示错乱修正。 |