Tencent IP Address query interface: http://fw.qq.com/ipaddress
Sina IP Address query interface: HTTP://INT.DPOOL.SINA.COM.CN/IPLOOKUP/IPLOOKUP.PHP?FORMAT=JS
Sohu IP Address query interface: Http://pv.sohu.com/cityjson
Google IP address query interface: http://j.maxmind.com/app/geoip.js
Youdao IP Address query interface: HTTP://WWW.YOUDAO.COM/SMARTRESULT-XML/SEARCH.S
1616 IP Address query interface: http://w.1616.net/chaxun/iptolocal.php
126 Http://ip.ws.126.net/ipquery
Hao123 http://app.hao123.com/ipquery/getcity.php?rtype=2
Taobao http://ip.taobao.com/service/getIpInfo.php?ip=117.89.35.58
Pacific Internet http://whois.pconline.com.cn/
Design of Honeycomb Interface calling method
API request Address: http://www.hujuntao.com/api/ip/ip.php? parameters
Parameter description:
IP:IP Address Optional
Format: output format JSON optional default to JS
JSON Invocation Example:
Request Address: Http://www.hujuntao.com/api/ip/ip.php?callback=jQuery17107324279078748077_1327024991339&format=json &_=1327024991363
{
"IP": "117.89.35.58″,
"Province": "U6C5FU82CF",
"City": "U5357u4eac"
}
Tencent interface Call method
<script type= "Text/javascript" src= "http://fw.qq.com/ipaddress" ></script><script type= "text/" JavaScript ">//<! [cdata[
<! [cdata[
The back format is as follows://var ipdata = new Array ("117.89.35.98", "", "Jiangsu province", "Nanjing"); Console.log (ipdata[0]+ ', ' +ipdata[2]+ ', ' +ipdata[3])//117.89.35.98, Jiangsu Province, Nanjing City
]]></script>
The method is already unavailable and access Http://fw.qq.com/ipaddre displays "The page you are looking to temporarily unavailable.
Please try again later. ". Tencent has made a judgment on referer, although it can forge referer through PHP, but the actual test is to obtain the IP address of the server rather than the IP address of the client. We despise Tencent together. ∩? (???)? ∩?
Sina interface Call method
<script type= "Text/javascript" src= "Http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js" ></ Script><script type= "Text/javascript" >//<! [cdata[
<! [cdata[
Format parameter setting returns formatting Js/json//ip to query IP optional//back format as follows://var Remote_ip_info = {"ret": 1, "Start": "117.89.35.0", "End": " 117.89.35.255 "," Country ":" U4e2du56fd "," Province ":" U6C5FU82CF "," City ":" U5357u4eac "," District ":" u767du4e0b "," ISP ":" U7535u4fe1 "," type ":" "," desc ":" "}; Console.log (remote_ip_info["Country"]+ ', "+remote_ip_info[" province "]+" province "+", "+remote_ip_info[" City "]+" market ")//China, Nanjing City, Jiangsu Province
]]></script>
Method of calling Sohu interface
<script type= "Text/javascript" src= "Http://pv.sohu.com/cityjson?ie=utf-8" ></script><script type= " Text/javascript ">//<! [cdata[
<! [cdata[
The default is GBK can be coded via IE parameters Console.log (returncitysn["CIP"]+ ', ' +returncitysn["CNAME"])//117.89.35.98, Nanjing, Jiangsu Province
]]></script>
Google Interface Call method
It is said to be Google, do not know is not true.
<script type= "Text/javascript" src= "http://j.maxmind.com/app/geoip.js" ></script><script type= "text /javascript ">//<! [cdata[
<! [cdata[
Console.log (Geoip_country_name () + ', ' +geoip_region_name () + ', ' +geoip_city ())//china,jiangsu,nanjing
]]></script>
Youdao Interface Call method
Call Interface Example: http://www.youdao.com/smartresult-xml/search.s?type=ip&q=123.233.157.9
return XML data
<?xml version= "1.0″encoding=" GBK "?>
<smartresult>
<product type= "IP" >
<ip>123.233.157.9</ip>
<location> Shandong province Jinan Netcom </location>
</product>
</smartresult>
Or
http://www.youdao.com/smartresult-xml/search.s?jsflag=true&keyfrom=163.com&event=fyodaocallback& type=ip&q=192.168.1.1
Return JSON data
Fyodaocallback (1, {' Product ': ' IP ', ' IP ': ' 192.168.1.1′, ' location ': ' LAN each other and you in the same intranet '}, ");
IP Address query interface and call method design Honeycomb | 2011-12-29 | Javascript
Design Honeycomb IP Address query interface: http://www.hujuntao.com/api/ip/ip.php
Tencent IP Address query interface: http://fw.qq.com/ipaddress
Sina IP Address query interface: HTTP://INT.DPOOL.SINA.COM.CN/IPLOOKUP/IPLOOKUP.PHP?FORMAT=JS
Sohu IP Address query interface: Http://pv.sohu.com/cityjson
Google IP address query interface: http://j.maxmind.com/app/geoip.js
Youdao IP Address query interface: HTTP://WWW.YOUDAO.COM/SMARTRESULT-XML/SEARCH.S
1616 IP Address query interface: http://w.1616.net/chaxun/iptolocal.php
126 Http://ip.ws.126.net/ipquery
Hao123 http://app.hao123.com/ipquery/getcity.php?rtype=2
Taobao http://ip.taobao.com/service/getIpInfo.php?ip=117.89.35.58
Pacific Internet http://whois.pconline.com.cn/
Design of Honeycomb Interface calling method
API request Address: http://www.hujuntao.com/api/ip/ip.php? parameters
Parameter description:
IP:IP Address Optional
Format: output format JSON optional default to JS
JSON Invocation Example:
Request Address: Http://www.hujuntao.com/api/ip/ip.php?callback=jQuery17107324279078748077_1327024991339&format=json &_=1327024991363
{
"IP": "117.89.35.58″,
"Province": "U6C5FU82CF",
"City": "U5357u4eac"
}
Tencent interface Call method
<script type= "Text/javascript" src= "http://fw.qq.com/ipaddress" ></script><script type= "text/" JavaScript ">//<! [cdata[
<! [cdata[
The back format is as follows://var ipdata = new Array ("117.89.35.98", "", "Jiangsu province", "Nanjing"); Console.log (ipdata[0]+ ', ' +ipdata[2]+ ', ' +ipdata[3])//117.89.35.98, Jiangsu Province, Nanjing City
]]></script>
The method is already unavailable and access Http://fw.qq.com/ipaddre displays "The page you are looking to temporarily unavailable.
Please try again later. ". Tencent has made a judgment on referer, although it can forge referer through PHP, but the actual test is to obtain the IP address of the server rather than the IP address of the client. We despise Tencent together. ∩? (???)? ∩?
Sina interface Call method
<script type= "Text/javascript" src= "Http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js" ></ Script><script type= "Text/javascript" >//<! [cdata[
<! [cdata[
Format parameter setting returns formatting Js/json//ip to query IP optional//back format as follows://var Remote_ip_info = {"ret": 1, "Start": "117.89.35.0", "End": " 117.89.35.255 "," Country ":" U4e2du56fd "," Province ":" U6C5FU82CF "," City ":" U5357u4eac "," District ":" u767du4e0b "," ISP ":" U7535u4fe1 "," type ":" "," desc ":" "}; Console.log (remote_ip_info["Country"]+ ', "+remote_ip_info[" province "]+" province "+", "+remote_ip_info[" City "]+" market ")//China, Nanjing City, Jiangsu Province
]]></script>
Method of calling Sohu interface
<script type= "Text/javascript" src= "Http://pv.sohu.com/cityjson?ie=utf-8" ></script><script type= " Text/javascript ">//<! [cdata[
<! [cdata[
The default is GBK can be coded via IE parameters Console.log (returncitysn["CIP"]+ ', ' +returncitysn["CNAME"])//117.89.35.98, Nanjing, Jiangsu Province
]]></script>
Google Interface Call method
It is said to be Google, do not know is not true.
<script type= "Text/javascript" src= "http://j.maxmind.com/app/geoip.js" ></script><script type= "text /javascript ">//<! [cdata[
<! [cdata[
Console.log (Geoip_country_name () + ', ' +geoip_region_name () + ', ' +geoip_city ())//china,jiangsu,nanjing
]]></script>
Youdao Interface Call method
Call Interface Example: http://www.youdao.com/smartresult-xml/search.s?type=ip&q=123.233.157.9
return XML data
<?xml version= "1.0″encoding=" GBK "?>
<smartresult>
<product type= "IP" >
<ip>123.233.157.9</ip>
<location> Shandong province Jinan Netcom </location>
</product>
</smartresult>
Or
http://www.youdao.com/smartresult-xml/search.s?jsflag=true&keyfrom=163.com&event=fyodaocallback& type=ip&q=192.168.1.1
Return JSON data
Fyodaocallback (1, {' Product ': ' IP ', ' IP ': ' 192.168.1.1′, ' location ': ' LAN each other and you in the same intranet '}, ");