网易有道 IP地址、邮编区号及城市查询、手机号码归属地和身份证 查询接口API
2012-12-14 17:53
791 查看
具体有多少个接口,不得而知,目前网上搜索的就知道四个:
查询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
返回:
返回:
根据 邮编、区号、城市名查询城市信息: http://www.yodao.com/smartresult-xml/search.s?type=zip&q=邮编或区号或城市名
举例:http://www.youdao.com/smartresult-xml/search.s?type=zip&q=武汉
注:此时从输入框获取城市名需要:java.net.URLEncoder.encode(cityName,"UTF-8");当为汉字的时候不处理直接访问会得不到数据。
返回:
<?xml version="1.0" encoding="gbk"?>
<smartresult>
<product type="zipcode">
<province>湖北省</province>
<city>武汉市</city>
<location>湖北省 武汉市</location>
<phone>027</phone>
<zipcode>430000</zipcode>
</product>
</smartresult>
举例:http://www.youdao.com/smartresult-xml/search.s?type=zip&q=021
返回:
<?xml version="1.0" encoding="gbk"?>
<smartresult>
<product type="zipcode">
<province></province>
<city>上海市</city>
<location>上海市</location>
<phone>021</phone>
<zipcode>200000</zipcode>
</product>
</smartresult>
------------------------------------------------------------------------------
上面返回的是xml数据,且编码格式为gbk[解析xml的时候需要注意,一般默认的都是utf-8],也可以试返回json数据:
只需要在请求的url中加一个字段:jsFlag=true
例如:www.youdao.com/smartresult-xml/search.s?jsFlag=true&type=zip&q=021
返回:
好了, 暂时就这么多了!
查询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>
根据 邮编、区号、城市名查询城市信息: http://www.yodao.com/smartresult-xml/search.s?type=zip&q=邮编或区号或城市名
举例:http://www.youdao.com/smartresult-xml/search.s?type=zip&q=武汉
注:此时从输入框获取城市名需要:java.net.URLEncoder.encode(cityName,"UTF-8");当为汉字的时候不处理直接访问会得不到数据。
返回:
<?xml version="1.0" encoding="gbk"?>
<smartresult>
<product type="zipcode">
<province>湖北省</province>
<city>武汉市</city>
<location>湖北省 武汉市</location>
<phone>027</phone>
<zipcode>430000</zipcode>
</product>
</smartresult>
举例:http://www.youdao.com/smartresult-xml/search.s?type=zip&q=021
返回:
<?xml version="1.0" encoding="gbk"?>
<smartresult>
<product type="zipcode">
<province></province>
<city>上海市</city>
<location>上海市</location>
<phone>021</phone>
<zipcode>200000</zipcode>
</product>
</smartresult>
------------------------------------------------------------------------------
上面返回的是xml数据,且编码格式为gbk[解析xml的时候需要注意,一般默认的都是utf-8],也可以试返回json数据:
只需要在请求的url中加一个字段:jsFlag=true
例如:www.youdao.com/smartresult-xml/search.s?jsFlag=true&type=zip&q=021
返回:
updateCall(1, {'product':'zipcode','province':'','city':'上海市','location':'上海市','phone':'021','zipcode':'200000'} , ''); |
相关文章推荐
- 网易有道 IP地址、邮编区号及城市查询、手机号码归属地和身份证 查询接口API
- 免费手机号码归属地API查询接口
- 免费手机号码归属地API查询接口
- 转汇集各种 webservice工厂,快递,ip,天气,身份证,手机,翻译,火车时刻,股票,邮编,二维码,公交,ISBN,ICP 查询接口 API
- 免费手机号码归属地API查询接口
- IP查询、手机号码归属地、邮政编码、长途电话区号、身份证号码验证专业在线查询
- 免费手机号码归属地API查询接口和PHP使用实例分享
- 免费手机号码归属地API查询接口和PHP使用实例分享
- 免费手机号码归属地API查询接口
- 汇集各种 webservice工厂,快递,ip,天气,身份证,手机,翻译,火车时刻,股票,邮编,二维码,公交,ISBN,ICP 查询接口 API
- 免费手机号码归属地API查询接口
- 查询IP地理位置、身份证所在地、手机归属地的接口
- 实用接口:IP地址、手机归属和身份证查询接口
- 手机号码归属地查询api
- 一些可以查询IP地理位置、身份证所在地、手机归属地的接口
- 一些可以查询IP地理位置、身份证所在地、手机归属地的接口
- PHP一些可以查询IP地理位置、身份证所在地、手机归属地的接口
- 一些可以查询IP地理位置、身份证所在地、手机归属地的接口
- 手机号码归属地查询接口大全(七种)