- 气象局接口:
音乐接口
- 虾米接口
- QQ空间音乐接口
- QQ空间收藏音乐接口
http://qzone-music.qq.com/fcg-bin/fcg_music_fav_getinfo.fcg?dirinfo=0&dirid=1&uin=QQ号&p=0.519638272547262&g_tk=1284234856
地图接口
- 阿里云根据地区名获取经纬度接口
http://gc.ditu.aliyun.com/geocoding?a=苏州市 官方文档参数解释: 纬度,经度 type 001 (100代表道路,010代表POI,001代表门址,111可以同时显示前三项)
- 阿里云根据经纬度获取地区名接口
http://gc.ditu.aliyun.com/regeocoding?l=39.938133,116.395739&type=001 官方文档
IP接口
- 新浪接口(ip值为空的时候 获取本地的)
http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=218.4.255.255
- 淘宝接口
http://ip.taobao.com/service/getIpInfo.php?ip=63.223.108.42
手机信息查询接口
- 淘宝网接口
http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=手机号
- 拍拍接口
http://virtual.paipai.com/extinfo/GetMobileProductInfo?mobile=手机号&amount=10000&callname=getPhoneNumInfoExtCallback 用例
- 百付宝接口
https://www.baifubao.com/callback?cmd=1059&callback=phone&phone=手机号
- 115接口
http://cz.115.com/?ct=index&ac=get_mobile_local&callback=jsonp1333962541001&mobile=手机号
- 有道接口
http://www.youdao.com/smartresult-xml/search.s?jsFlag=true&type=mobile&q=手机号
- 手机在线接口
http://api.showji.com/Locating/www.showji.com.aspx?m=手机号&output=json&callback=querycallbackhttp://tech.sina.com.cn/down/baishitong/mobile.html?code=
视频信息接口
- 优酷
http://v.youku.com/player/getPlayList/VideoIDS/视频ID (比如 http://v.youku.com/v_show/id_ XNTQxNzc4ODg0.html的ID就是XNTQxNzc4ODg0)
翻译、词典接口
- 腾讯
http://dict.qq.com/dict?q=词语
淘宝网
API地址: http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=15850781443
参数:
tel:手机号码
返回:JSON
API地址: http://virtual.paipai.com/extinfo/GetMobileProductInfo?mobile=15850781443&amount=10000&callname=getPhoneNumInfoExtCallback
参数:
mobile:手机号码
callname:回调函数
amount:未知(必须)
返回:JSON
API地址: http://life.tenpay.com/cgi-bin/mobile/MobileQueryAttribution.cgi?chgmobile=15850781443
参数:
chgmobile:手机号码
返回:xml
API地址: https://www.baifubao.com/callback?cmd=1059&callback=phone&phone=15850781443
参数:
phone:手机号码
callback:回调函数
cmd:未知(必须)
返回:JSON
API地址: http://cz.115.com/?ct=index&ac=get_mobile_local&callback=jsonp1333962541001&mobile=15850781443
参数:
mobile:手机号码
callback:回调函数
返回:JSON
有道api接口
接口地址:http://www.youdao.com/smartresult-xml/search.s?type=mobile&q=13892101112
参数说明:
type : 参数手机归属地固定为mobile
q : 手机号码
返回XML格式:
<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格式:
举例:
<?php
$mobile = "15018788111"; //要查询的电话号码
$content = get_mobile_area($mobile);
print_r($content);
function get_mobile_area($mobile){
$sms = array('province'=>'', 'supplier'=>''); //初始化变量
//根据淘宝的数据库调用返回值
$url = "http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=".$mobile."&t=".time();
$content = file_get_contents($url);
$sms['province'] = substr($content, "56", "4"); //截取字符串
$sms['supplier'] = substr($content, "81", "4");
return $sms;
}
天气预报接口
http://api.map.baidu.com/telematics/v3/weather?location=%E7%BB%A5%E5%BE%B7&output=json&ak=11ffd27d38deda622f51c9d314d46b17
再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!希望你也加入到我们人工智能的队伍中来!http://www.captainbed.net
- 气象局接口:
音乐接口
- 虾米接口
- QQ空间音乐接口
- QQ空间收藏音乐接口
http://qzone-music.qq.com/fcg-bin/fcg_music_fav_getinfo.fcg?dirinfo=0&dirid=1&uin=QQ号&p=0.519638272547262&g_tk=1284234856
地图接口
- 阿里云根据地区名获取经纬度接口
http://gc.ditu.aliyun.com/geocoding?a=苏州市 官方文档参数解释: 纬度,经度 type 001 (100代表道路,010代表POI,001代表门址,111可以同时显示前三项)
- 阿里云根据经纬度获取地区名接口
http://gc.ditu.aliyun.com/regeocoding?l=39.938133,116.395739&type=001 官方文档
IP接口
- 新浪接口(ip值为空的时候 获取本地的)
http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=218.4.255.255
- 淘宝接口
http://ip.taobao.com/service/getIpInfo.php?ip=63.223.108.42
手机信息查询接口
- 淘宝网接口
http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=手机号
- 拍拍接口
http://virtual.paipai.com/extinfo/GetMobileProductInfo?mobile=手机号&amount=10000&callname=getPhoneNumInfoExtCallback 用例
- 百付宝接口
https://www.baifubao.com/callback?cmd=1059&callback=phone&phone=手机号
- 115接口
http://cz.115.com/?ct=index&ac=get_mobile_local&callback=jsonp1333962541001&mobile=手机号
- 有道接口
http://www.youdao.com/smartresult-xml/search.s?jsFlag=true&type=mobile&q=手机号
- 手机在线接口
http://api.showji.com/Locating/www.showji.com.aspx?m=手机号&output=json&callback=querycallbackhttp://tech.sina.com.cn/down/baishitong/mobile.html?code=
视频信息接口
- 优酷
http://v.youku.com/player/getPlayList/VideoIDS/视频ID (比如 http://v.youku.com/v_show/id_ XNTQxNzc4ODg0.html的ID就是XNTQxNzc4ODg0)
翻译、词典接口
- 腾讯
http://dict.qq.com/dict?q=词语
淘宝网
API地址: http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=15850781443
参数:
tel:手机号码
返回:JSON
API地址: http://virtual.paipai.com/extinfo/GetMobileProductInfo?mobile=15850781443&amount=10000&callname=getPhoneNumInfoExtCallback
参数:
mobile:手机号码
callname:回调函数
amount:未知(必须)
返回:JSON
API地址: http://life.tenpay.com/cgi-bin/mobile/MobileQueryAttribution.cgi?chgmobile=15850781443
参数:
chgmobile:手机号码
返回:xml
API地址: https://www.baifubao.com/callback?cmd=1059&callback=phone&phone=15850781443
参数:
phone:手机号码
callback:回调函数
cmd:未知(必须)
返回:JSON
API地址: http://cz.115.com/?ct=index&ac=get_mobile_local&callback=jsonp1333962541001&mobile=15850781443
参数:
mobile:手机号码
callback:回调函数
返回:JSON
有道api接口
接口地址:http://www.youdao.com/smartresult-xml/search.s?type=mobile&q=13892101112
参数说明:
type : 参数手机归属地固定为mobile
q : 手机号码
返回XML格式:
<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格式:
举例:
<?php
$mobile = "15018788111"; //要查询的电话号码
$content = get_mobile_area($mobile);
print_r($content);
function get_mobile_area($mobile){
$sms = array('province'=>'', 'supplier'=>''); //初始化变量
//根据淘宝的数据库调用返回值
$url = "http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=".$mobile."&t=".time();
$content = file_get_contents($url);
$sms['province'] = substr($content, "56", "4"); //截取字符串
$sms['supplier'] = substr($content, "81", "4");
return $sms;
}
天气预报接口
http://api.map.baidu.com/telematics/v3/weather?location=%E7%BB%A5%E5%BE%B7&output=json&ak=11ffd27d38deda622f51c9d314d46b17