1. 搜狐
接口: http://pv.sohu.com/cityjson?ie=utf-8
返回: var returnCitySN = {"cip": "110.53.253.181", "cid": "430100", "cname": "湖南省长沙市"};
2. 淘宝 (有点慢)
接口: http://ip.taobao.com/service/getIpInfo.php?ip=myip
返回:{"code":0,"data":{"ip":"110.53.253.181","country":"中国","area":"","region":" 湖南 ","city":" 长沙 ","county":"XX","isp":" 联通 ","country_id":"CN","area_id":"","region_id":"430000","city_id":"430100","county_id":"xx","isp_id":"100026"}}
- https://www.jianshu.com/p/8153bb06e7e2
- https://blog.csdn.net/txz_gray/article/details/53217293
来源: http://www.bubuko.com/infodetail-2735053.html