IP地址查询接口及调用方法


1.查询地址

搜狐IP地址查询接口(IP):http://pv.sohu.com/cityjson 

1616 IP地址查询接口(IP+地址):http://w.1616.net/chaxun/iptolocal.php

126(地址): http://ip.ws.126.net/ipquery

 

2.使用

<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>//ie指定编码,默认是gbk
<script>console.log(returnCitySN["cip"]);</script>

<script src="http://w.1616.net/chaxun/iptolocal.php"></script>
<script>console.log(WData)</script>

<script src="http://ip.ws.126.net/ipquery"></script>
<script>console.log(lo);console.log(lc);</script>

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM