1.淘宝:同个IP不能连续查询,需要时间间隔
http://ip.taobao.com/service/getIpInfo.php?ip=176.9.139.229
{
"code": 0,
"data": {
"ip": "176.9.139.229",
"country": "德国",
"area": "",
"region": "Sachsen",
"city": "XX",
"county": "XX",
"isp": "XX",
"country_id": "DE",
"area_id": "",
"region_id": "DE_13",
"city_id": "xx",
"county_id": "xx",
"isp_id": "xx"
}
}
2.国外:归属地为英文
http://ip-api.com/json/176.9.139.229
{
"as": "AS24940 Hetzner Online GmbH",
"city": "Falkenstein",
"country": "Germany",
"countryCode": "DE",
"isp": "Hetzner Online GmbH",
"lat": 49.0976,
"lon": 12.4869,
"org": "Hetzner Online GmbH",
"query": "176.9.139.229",
"region": "SN",
"regionName": "Saxony",
"status": "success",
"timezone": "Europe/Berlin",
"zip": "93167"
}
转载请注明:MitNick » 查询IP归属地的接口