网易有道 IP地址、手机号码归属地和身份证 查询接口API

刚在天翼应用工厂里发现了好多有用的API,而且基本都是免费的,可谓是个大宝库。有兴趣的可以去看一下:http://api.189works.com/list

这里介绍网易有道在上面发布的三款免费API,毕竟是大公司,速度有保证,所以拿来与大家分享一下。当然其他的API也非常棒。

这三款接口都是以URL GET方式提交参数,以XML的形式返回查询结果


查询IP地址:

http://www.youdao.com/smartresult-xml/search.s?type=ip&q=IP地址

举例:http://www.youdao.com/smartresult-xml/search.s?type=ip&q=123.233.157.9

返回:


<?xml version="1.0" encoding="gbk"?>
<smartresult>
<product type="ip">
<ip>123.233.157.9</ip>
<location>山东省济南市 网通</location>
</product>
</smartresult>



查询手机号码归属地:

http://www.yodao.com/smartresult-xml/search.s?type=mobile&q=手机号

举例:http://www.yodao.com/smartresult-xml/search.s?type=mobile&q=13892101111

返回:


<?xml version="1.0" encoding="gbk"?>
<smartresult>
<product type="mobile">
<phonenum>13892101111</phonenum>
<location>陕西 延安</location>
</product>
</smartresult>



查询身份证信息:

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>


( ! ) Warning: Missing argument 1 for cwppos_show_review(), called in /data/www/enjoyphp/wp-content/themes/flat/content-single.php on line 29 and defined in /data/www/enjoyphp/wp-content/plugins/wp-product-review/includes/legacy.php on line 18
Call Stack
#TimeMemoryFunctionLocation
10.0000354984{main}( ).../index.php:0
20.0001355272require( '/data/www/enjoyphp/wp-blog-header.php' ).../index.php:17
30.171810179352require_once( '/data/www/enjoyphp/wp-includes/template-loader.php' ).../wp-blog-header.php:19
40.173010250496include( '/data/www/enjoyphp/wp-content/themes/flat/single.php' ).../template-loader.php:74
50.258410821304get_template_part( ).../single.php:5
60.258410821824locate_template( ).../general-template.php:167
70.258510821920load_template( ).../template.php:643
80.258510822304require( '/data/www/enjoyphp/wp-content/themes/flat/content-single.php' ).../template.php:686
90.265510807912cwppos_show_review( ).../content-single.php:29

发表评论

电子邮件地址不会被公开。 必填项已用*标注