参考 : http://www.hujuntao.com/archives/phone-numbers-attribution-to-api-interface.html
http://hi.baidu.com/yangzong247/item/a037fead288cf0bf29ce9d91
一 、有道api接口
接口地址:http://www.youdao.com/smartresult-xml/search.s?type=mobile&q=13892101112
参数说明:
- type : 参数手机归属地固定为mobile
- q : 手机号码
返回XML格式:
<?xml version="1.0" encoding="gbk"?>
<smartresult>
<product type="mobile">
<phonenum>13892101112</phonenum>
<location>陕西 延安</location>
</product>
</smartresult>
或者
http://www.youdao.com/smartresult-xml/search.s?jsFlag=true&type=mobile&q=手机号码
返回JSON格式:
fYodaoCallBack(1, {‘product’:'mobile’,'phonenum’:’13892101112′,’location’:'陕西 延安’} , ”);
查询身份证信息:
http://www.yodao.com/smartresult-xml/search.s?type=id&q=身份证号码
举例:http://www.youdao.com/smartresult-xml/search.s?type=id&q=370782196402121133
返回:
<?xml version="1.0" encoding="gbk"?>
<smartresult>
<product type="identitycard">
<code>370782196402121133</code>
<location>山东省潍坊市诸城市</location>
<birthday>19640212</birthday>
<gender>m</gender>
</product>
</smartresult>
二、096.me api接口
查询手机号码归属地:
http://www.096.me/api.php?phone=手机号&mode={txt,xml}
举例:http://www.096.me/api.php?phone=13892101111&mode=txt
返回:
13892101111||陕西延安移动全球通卡 ||吉凶参半,惟赖勇气,贯彻力行,始可成功 吉带凶||
举例:http://www.096.me/api.php?phone=13892101111&mode=xml
返回: