API接口:查询搜索引擎收录量 JSON数据接口
介绍:查询百度搜索、360搜索、神马搜索、搜狗搜索、谷歌搜索的网站收录量(数据仅供参考)
使用PHP示例(具体根据业务参照编写):
<?php
//获取网站收录信息
function webApplytongji($domain){
error_reporting(0);
header('Content-type:text/json;charset=utf-8;');
date_default_timezone_set("PRC");
$result = file_get_contents("https://api.lxurl.net/api/bdsl.php?url=".$domain);
return $result;
}?>
<?php
//解析API接口数据并转换为PHP参数
$sholu = json_decode(webApplytongji($domain), true);
$sholu['baidu']//百度收录量
$sholu['sl360']//360收录量
$sholu['sm']//神马收录量
$sholu['sogou']//搜狗收录量
$sholu['google']//谷歌收录量
?>
API接口大全:api.lxurl.net
显示效果参照绿夏技术导航网:https://lxurl.net/
-----正文到此结束-----


发表评论 取消回复