新浪:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js
返回数据:var remote_ip_info = {"ret":1,"start":"27.16.0.0","end":"27.19.255.255","country":"u4e2du56fd","province":"u6e56u5317","city":"u6b66u6c49","district":"","isp":"u7535u4fe1","type":"","desc":""}
调用方法:<script src="http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js" type="text/javascript"></script<script language="javascript">document.write(remote_ip_info.city);</script>
<script type="text/javascript">// < ![CDATA[ // < ![CDATA[ //format参数设置返回格式 js/json //ip 要查询IP 可选 //反回格式如下: //var remote_ip_info = {"ret":1,"start":"117.89.35.0","end":"117.89.35.255","country":"\u4e2d\u56fd","province":"\u6c5f\u82cf","city":"\u5357\u4eac","district":"\u767d\u4e0b","isp":"\u7535\u4fe1","type":"","desc":""}; alert(remote_ip_info["country"]+','+remote_ip_info["province"]+"省"+','+remote_ip_info["city"]+"市")//中国,江苏省,南京市 // ]]></script>
此接口貌似职能返回IP对应的国家省市,IP地址貌似取不到
淘宝:http://ip.taobao.com/service/getIpInfo.php?ip=27.19.3.65
新浪:http://counter.sina.com.cn/ip
返回数据:var ILData = new Array("27.19.69.47","保留地址", "", "", ""); if (typeof(ILData_callback) != "undefined") { ILData_callback(); }
调用方法:同上,document.write(ILData[0])
该接口可以可以查询指定IP的信息,只需要加上ip参数即可
例如:http://counter.sina.com.cn/ip?ip=119.75.217.56
返回数据:var ILData = new Array("119.75.217.56","中国", "北京市", "(百度公司)", "网通"); if (typeof(ILData_callback) != "undefined") { ILData_callback(); }
此接口返回的是一个数组,包括5个元素:IP地址、国家、省市、所属单位、服务商
有道:http://www.youdao.com/smartresult-xml/search.s
查询ip参数:?type=q&ip=119.75.217.56
返回数据:119.75.217.56 北京市 百度公司
查询手机号参数:?type=mobile&q=13387617842
返回数据:13387617842 湖北 武汉
或者:http://www.youdao.com/smartresult-xml/search.s?jsFlag=true&type=mobile&q=13387617950
返回JSON格式数据。
中国天气网API,非常好用http://m.weather.com.cn/data/101200101.html
101200101 为武汉的城市代码
http://61.4.185.48:81/g/ 得到本机访问的IP,
根据此IP查询到城市ID,var ip="61.183.248.221";var id=101200101;if(typeof(id_callback)!="undefined"){id_callback();}
再根据城市ID返回该城市天气信息
http://m.weather.com.cn/m/pn12/weather.htm 该地址为天气插件的代码
腾讯:http://sou.qq.com/online/get_weather.php?callback=Weather&city=武汉
内容非常详细
有道:http://www.youdao.com/smartresult-xml/search.s?type=weather&jsFlag=true&q=%E6%AD%A6%E6%B1%89
手机号码归属地:
淘宝:http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=13667141362
返回数据:__GetZoneResult_ = { mts:'1366714',province:'湖北',catName:'中国移动', telString:'13667141362'}
拍拍:http://virtual.paipai.com/extinfo/GetMobileProductInfo?mobile=13667141362&amount=10000&callname=getPhoneNumInfoExtCallback
返回数据:try{getPhoneNumInfoExtCallback({mobile:'13667141362',province:'湖北',isp:'中国移动',stock:'1',amount:'10000'});}catch(e){}
财付通:http://life.tenpay.com/cgi-bin/mobile/MobileQueryAttribution.cgi?chgmobile=13667141362
返回数据:xml类型,包括ClientAgent、IP、归属地、ISP
115:http://cz.115.com/?ct=index&ac=get_mobile_local&callback=jsonp1333962541001&mobile=13667141362
返回数据:jsonp1333962541001({"province":"u6e56u5317u6b66u6c49","corp":"u79fbu52a8","city":"u6e56u5317u6b66u6c49","queryresult":"True"})
手机在线:http://api.showji.com/Locating/20080808.aspx?m=13667141362&output=json&callback=querycallback
返回数据:querycallback({"Mobile":"13667141362","QueryResult":"True","Province":"湖北","City":"武汉","AreaCode":"027","PostCode":"430000","Corp":"中国移动","Card":"GSM"});这个是从它的网页源代码里找的,以前的失效了。
WebService:http://webservice.webxml.com.cn/WebServices/MobileCodeWS.asmx/getMobileCodeInfo?mobileCode=13667141362&userID=
返回数据:<string xmlns="http://WebXml.com.cn/">13667141362:湖北 武汉 湖北移动亲情卡</string>
手机号码测吉凶:
http://jixiong.showji.com/api.aspx?m=13800138000&output=json&callback=querycallback
返回数据:querycallback({"Mobile":"13800138000","JX":"吉","JXDetail":"万宝集门,天降幸运,立志奋发,得成大功","GX":"做事喜好凭直觉型","GXDetail":"有特强的第六灵感,性格率直无机心,深得朋辈爱戴。感情路上多采多姿。做事喜好凭个人直觉及预感做决定。"});