最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
查询手机号 IP地址信息的API接口整理
时间:2014-03-22 编辑:简简单单 来源:一聚教程网
新浪: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":""}
调用方法:document.write(remote_ip_info.city);
此接口貌似职能返回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=
返回数据:
手机号码测吉凶:
http://jixiong.showji.com/api.aspx?m=13800138000&output=json&callback=querycallback
返回数据:querycallback({"Mobile":"13800138000","JX":"吉","JXDetail":"万宝集门,天降幸运,立志奋发,得成大功","GX":"做事喜好凭直觉型","GXDetail":"有特强的第六灵感,性格率直无机心,深得朋辈爱戴。感情路上多采多姿。做事喜好凭个人直觉及预感做决定。"});
时间校准:
国家授时中心:http://www.time.ac.cn/timeflash.asp?user=flash
返回数据:201281185151
搜狐:http://ntp.news.sohu.com/mtime.php
返回数据:setm=2012,08,11,09,04,16,570
-
下一个: wordpress上传文件自动按日期更名
相关文章
- HTML简单购物数量小程序代码展示 10-31
- html canvas实现弹幕功能 10-31
- HTML中空格表示的意义 10-31
- html area标签解读 10-31
- html使用表单标签实现注册页面代码展示 10-31
- 使用HTML截图并保存为本地图片的代码展示 10-31