1.淘宝:同个IP不能连续查询,需要时间间隔

http://ip.taobao.com/service/getIpInfo.php?ip=114.114.114.114

返回结果

{
    "code": 0,
    "data": {
        "ip": "114.114.114.114",
        "country": "中国",
        "area": "",
        "region": "江苏",
        "city": "南京",
        "county": "XX",
        "isp": "XX",
        "country_id": "CN",
        "area_id": "",
        "region_id": "320000",
        "city_id": "320100",
        "county_id": "xx",
        "isp_id": "xx"
    }
}

2. pconline,

接口参数与形式比较多,可以打开网站查看

https://whois.pconline.com.cn/ipJson.jsp

返回结果

if (window.IPCallBack) {
    IPCallBack({
        "ip": "58.214.246.10",
        "pro": "江苏省",
        "proCode": "320000",
        "city": "无锡市",
        "cityCode": "320200",
        "region": "",
        "regionCode": "0",
        "addr": "江苏省无锡市 电信",
        "regionNames": "",
        "err": ""
    });
}

 

3. 搜狐,只能返回访问者IP 归属地

http://pv.sohu.com/cityjson ,编码默认GBK

http://pv.sohu.com/cityjson?ie=utf-8 设置编码

返回结果

var returnCitySN = {"cip": "58.214.246.10", "cid": "320200", "cname": "江苏省无锡市"};

 

4.126.net

http://ip.ws.126.net/ipquery

返回结果

var lo="江苏省", lc="无锡市"; var localAddress={city:"无锡市", province:"江苏省"}

 

相关文章:

  • 2021-08-26
  • 2021-12-05
  • 2021-12-02
  • 2021-06-14
猜你喜欢
  • 2022-12-23
  • 2021-11-28
  • 2021-11-16
  • 2021-12-02
  • 2021-12-04
相关资源
相似解决方案