如题,使用IP66来验证IP地址定位的准确率
IP66.net是常用的IP定位工具,通过整合IP地址分配数据、基站信息等,返回IP对应的地理位置(国家、省市、运营商等)。其查询方式简单:
- 网址:https://www.ip66.net/
- API接口:支持批量查询,适合开发者集成。
API调用示例
若需批量验证,可通过IP66的API接口实现,直接注册进行批量查询,以下是返回信息示例:
{
"code": 200,
"data": {
"location": {
"area_code": "320311",
"city": "徐州",
"city_code": "0516",
"continent": "亚洲",
"country": "中国",
"country_code": "CN",
"district": "泉山",
"elevation": "40",
"ip": "180.124.68.28",
"isp": "电信",
"latitude": "34.214855",
"longitude": "117.169163",
"multi_street": [
{
"lng": "117.169163",
"lat": "34.214855",
"province": "江苏",
"city": "徐州",
"district": "泉山",
"street": "双山路",
"radius": "2.27",
"zip_code": "221000"
},
{
"lng": "117.191078",
"lat": "34.224231",
"province": "江苏",
"city": "徐州",
"district": "泉山",
"street": "解放南路387号",
"radius": "1.15",
"zip_code": "221000"
},
{
"lng": "117.180535",
"lat": "34.218589",
"province": "江苏",
"city": "徐州",
"district": "泉山",
"street": "文华路",
"radius": "2.73",
"zip_code": "221000"
}
],
"province": "江苏",
"street": "双山路",
"time_zone": "Asia/Shanghai",
"weather_station": "CHXX0437",
"zip_code": "221000"
}
},
"msg": "success"
}
注:实际使用需遵守IP66的API调用规范,避免高频请求。
IP66.net在IP定位查询中表现稳定,国内IP准确率超90%,适合个人或企业进行基础IP检测。若需更高精度(如街道级),也能够联系客服进行测试。