ip sevices
http://www.ip138.com/ip2city.asp
http://www.bliao.com/ip.phtml
http://www.whereismyip.com/
http://www.ip.cn/getip.php?action=getip&ip_url=
http://ip.taobao.com/service/getIpInfo.php?ip=ipAdsress
|
2
3
4
|
<script type="text/<A class="infotextkey" href="http://www.jb51.net/" target=_blank>javascript</A>"> document.write(returnCitySN["cip"]+','+returnCitySN["cname"]) </script> |
简介
使用淘宝API,获取IP地址所在的国家、省、市、地区,以及访问接口时所使用的ISP(电信/联通/移动/铁通等)。
此接口采集自这里。
接口类型
HTTP(GET) / UTF-8
接口返回值类型
json
-
请求地址:
http://ip.taobao.com/service/getIpInfo.php?ip=IPAddress
-
Demo
http://ip.taobao.com/service/getIpInfo.php?ip=121.35.211.41
-
请求参数详解
- IPAddress
要查询的IP地址
- IPAddress
-
返回值
12345678910111213141516171819{"code":0,"data":{"country":"\u4e2d\u56fd","country_id":"CN","area":"\u534e\u5357","area_id":"800000","region":"\u5e7f\u4e1c\u7701","region_id":"440000","city":"\u6df1\u5733\u5e02","city_id":"440300","county":"","county_id":"-1","isp":"\u7535\u4fe1","isp_id":"100017","ip":"121.35.211.41"}} -
返回参数详解
- code
状态码,正常为0,异常的时候为非0。 - data
查询到的结果。 - country
国家。 - country_id
国家代码。 - area
地区名称(华南、华北...)。 - area_id
地区编号。 - region
省名称。 - region_id
省编号。 - city
市名称。 - city_id
市编号。 - county
县名称。 - county_id
县编号。 - isp
ISP服务商名称(电信/联通/铁通/移动...)。 - isp_id
ISP服务商编号。 - ip
查询的IP地址。
- code
浙公网安备 33010602011771号