当前位置:首页 >娱乐 >2023最新聚合热搜热榜PHP接口API源码【地铁逃生体验服直装科技最新版本】

2023最新聚合热搜热榜PHP接口API源码【地铁逃生体验服直装科技最新版本】

2025-11-05 21:48:22 [时尚] 来源:美人迟暮网

聚合热搜热榜PHP接口API源码,最新本源码接口均抓取采集各大官网数据 。聚合P接地铁逃生体验服直装科技最新版本

PHP环境为5.6或以上 ,热搜热榜地铁逃生辅助器内置开挂菜单解压压缩包里面的源码地铁逃生辅助器(免费)不封号hotlist.php文件到网站目录

2023最新聚合热搜热榜PHP接口API源码【地铁逃生体验服直装科技最新版本】

然后输入参数输入?type

2023最新聚合热搜热榜PHP接口API源码【地铁逃生体验服直装科技最新版本】

参数内容:

2023最新聚合热搜热榜PHP接口API源码【地铁逃生体验服直装科技最新版本】

zhihu(知乎热榜)  weibo(微博热搜) baidu(百度热点) history(历史上的今天) bilihot(哔哩哔哩热搜) biliall(哔哩哔哩全站日榜) sspai(少数派头条) douyin(抖音热搜) CSDN(CSDN头条榜)

使用方法

访问你的域名地址/hotlist.php?type=

?type=(输入参数才能显示内容)

示例 :

访问你的域名地址/hotlist.php?type=zhihu

API源码

Curl(https://sspai.com/api/v1/article/tag/page/get?limit=100000&tag=%E7%83%AD%E9%97%A8%E6%96%87%E7%AB%A0, null, null, "https://sspai.com"), true); $tempArr = []; foreach ($jsonRes[data] as $k => $v) { array_push($tempArr, [ index => $k +1, title => $v[title], createdAt => date(Y-m-d, $v[released_time]), other => $v[author][nickname], like_count => $v[like_count], comment_count => $v[comment_count], url => https://sspai.com/post/.$v[id], mobilUrl => https://sspai.com/post/.$v[id] ]); } return [ success => true, title => 少数派, subtitle => 热榜, update_time => date(Y-m-d h:i:s, time()), data => $tempArr ]; } // CSDN 头条榜 public function csdn() { $_resHtml = $this->Curl(https://www.csdn.net, null, "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1", "https://www.csdn.net"); preg_match(/window.__INITIAL_STATE__=(.*?);<\/script>/, $_resHtml, $_resHtmlArr); $jsonRes = json_decode($_resHtmlArr[1],true); $tempArr = []; //头条 foreach ($jsonRes[pageData][data][Headimg] as $k => $v) { array_push($tempArr, [ index => $k +1, title => $v[title], url => $v[url], mobilUrl => $v[url] ]); } //头条1 foreach ($jsonRes[pageData][data][www-Headlines] as $k => $v) { array_push($tempArr, [ index => $k +17, title => $v[title], url => $v[url], mobilUrl => $v[url] ]); } //头条2 foreach ($jsonRes[pageData][data][www-headhot] as $k => $v) { array_push($tempArr, [ index => $k +48, title => $v[title], url => $v[url], mobilUrl => $v[url] ]); } return [ success => true, title => CSDN, subtitle => 头条榜, update_time => date(Y-m-d h:i:s, time()), data => $tempArr ]; } //百度百科 历史上的今天 public function history() { $month=date(m,time() ); $day=date(d,time() ); //当前年月日 $today = date(Y年m月d日); //获取接口数据 $jsonRes = json_decode($this->Curl(https://baike.baidu.com/cms/home/eventsOnHistory/.$month..json, null, null, "https://baike.baidu.com"), true); $tempArr = []; //统计当日总数 $countnum = count($jsonRes[$month][$month.$day])-1; foreach ($jsonRes[$month][$month.$day] as $k => $v) { array_push($tempArr, [ index => $k +1, title => $v[year].年-.strip_tags($v[title]), url => https://www.douyin.com/search/.urlencode($v[title]), mobilUrl => https://www.douyin.com/search/.urlencode($v[title]) ]); } return [ success => true, title => 百度百科, subtitle => 历史上的今天, update_time => date(Y-m-d h:i:s, time()), data => $tempArr ]; } // 抖音 热搜榜 public function douyin() { $jsonRes = json_decode($this->Curl(https://www.iesdouyin.com/web/api/v2/hotsearch/billboard/word/, null, null, "https://www.douyin.com"), true); $tempArr = []; foreach ($jsonRes[word_list] as $k => $v) { array_push($tempArr, [ index => $k +1, title => $v[word], hot => round($v[hot_value]/10000,1).万, url => https://www.douyin.com/search/.urlencode($v[word]), mobilUrl => https://www.douyin.com/search/.urlencode($v[word]) ]); } return [ success => true, title => 抖音, subtitle => 热搜榜, update_time => date(Y-m-d h:i:s, time()), data => $tempArr ]; } // 哔哩哔哩 全站日榜 public function bilibili_rankall() { $jsonRes = json_decode($this->Curl(https://api.bilibili.com/x/web-interface/ranking/v2?rid=0&type=all, null, null, "https://www.bilibili.com"), true); $tempArr = []; foreach ($jsonRes[data][list] as $k => $v) { array_push($tempArr, [ index => $k +1, title => $v[title], pic => $v[pic], desc => $v[desc], hot => round($v[stat][view]/10000,1).万, url => $v[short_link], mobilUrl => $v[short_link] ]); } return [ success => true, title => 哔哩哔哩, subtitle => 全站日榜, update_time => date(Y-m-d h:i:s, time()), data => $tempArr ]; } // 哔哩哔哩 热搜榜 public function bilibili_hot() { $jsonRes = json_decode($this->Curl(https://app.bilibili.com/x/v2/search/trending/ranking, null, null, "https://www.bilibili.com"), true); $tempArr = []; //return $jsonRes; foreach ($jsonRes[data][list] as $k => $v) { array_push($tempArr, [ index => $v[position], title => $v[keyword], url => https://search.bilibili.com/all?keyword=.$v[keyword].&order=click, mobilUrl => https://search.bilibili.com/all?keyword=.$v[keyword].&order=click ]); } return [ success => true, title => 哔哩哔哩, subtitle => 热搜榜, update_time => date(Y-m-d h:i:s, time()), data => $tempArr ]; } // 知乎热榜 热度 public function zhihuHot() { $jsonRes = json_decode($this->Curl(https://www.zhihu.com/api/v3/feed/topstory/hot-lists/total?limit=50&desktop=true, null, null, "https://www.zhihu.com"), true); $tempArr = []; foreach ($jsonRes[data] as $k => $v) { preg_match(/\d+/, $v[detail_text], $hot); array_push($tempArr, [ index => $k + 1, title => $v[target][title], hot => $hot[0].万, url => https://www.zhihu.com/question/.urlencode($v[target][id]), mobilUrl => https://www.zhihu.com/question/.urlencode($v[target][id]) ]); } return [ success => true, title => 知乎热榜, subtitle => 热度, update_time => date(Y-m-d h:i:s, time()), data => $tempArr ]; } // 微博 热搜榜 public function wbresou() { $_md5 = md5(time()); $cookie = "Cookie: :FG=1"; $jsonRes = json_decode($this->Curl(https://weibo.com/ajax/side/hotSearch, null, $cookie, "https://s.weibo.com"), true); $tempArr = []; foreach ($jsonRes[data][realtime] as $k => $v) { array_push($tempArr, [ index => $k + 1, title => $v[note], hot => round($v[num]/10000,1).万, url => "https://s.weibo.com/weibo?q=".$v[note]."&Refer=index", mobilUrl => "https://s.weibo.com/weibo?q=".$v[note]."&Refer=index" ]); } return [ success => true, title => 微博, subtitle => 热搜榜, update_time => date(Y-m-d h:i:s, time()), data => $tempArr ]; } // 百度热点 指数 public function baiduredian() { $_resHtml = str_replace(["\n", "\r", " "], , $this->Curl(https://top.baidu.com/board?tab=realtime, null)); preg_match(//, $_resHtml, $_resHtmlArr); $jsonRes = json_decode($_resHtmlArr[1], true); //return $jsonRes; $tempArr = []; foreach ($jsonRes[data][cards] as $v) { foreach ($v[content] as $k => $_v) { array_push($tempArr, [ index => $k + 1, title => $_v[word], desc => $_v[desc], pic => $_v[img], url => $_v[url], hot => round($_v[hotScore]/10000,1).万, mobilUrl => $_v[appUrl] ]); } } return [ success => true, title => 百度热点, subtitle => 指数, update_time => date(Y-m-d h:i:s, time()), data => $tempArr ]; } private function Curl($url, $header = [ "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "Accept-Encoding: gzip, deflate, br", "Accept-Language: zh-CN,zh;q=0.9", "Connection: keep-alive", "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1" ], $cookie = null, $refer = https://www.baidu.com) { $ip = rand(0, 255) . . . rand(0, 255) . . . rand(0, 255) . . . rand(0, 255); $header[] = "CLIENT-IP:" . $ip; $header[] = "X-FORWARDED-FOR:" . $ip; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); //设置传输的 url curl_setopt($ch, CURLOPT_HTTPHEADER, $header); //发送 http 报头 curl_setopt($ch, CURLOPT_COOKIE, $cookie); //设置Cookie curl_setopt($ch, CURLOPT_REFERER, $refer); //设置Referer curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_ENCODING, gzip,deflate); // 解码压缩文件 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // 对认证证书来源的检查 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); // 从证书中检查SSL加密算法是否存在 curl_setopt($ch, CURLOPT_TIMEOUT, 5); // 设置超时限制防止死循环 $output = curl_exec($ch); curl_close($ch); return $output; } } $_type = isset($_GET[type]) ? $_GET[type] : ; $API = new Api; switch ($_type) { case baidu: $_res = $API->baiduredian(); break; case zhihu: $_res = $API->zhihuHot(); break; case weibo: $_res = $API->wbresou(); break; case bilihot: $_res = $API->bilibili_hot(); break; case biliall: $_res = $API->bilibili_rankall(); break; case douyin: $_res = $API->douyin(); break; case history: $_res = $API->history(); break; case csdn: $_res = $API->csdn(); break; case sspai: $_res = $API->sspai(); break; default: $_res = [success => false, message => 参数不完整]; break; } $_res[copyright] = 聚合热搜榜; exit(json_encode($_res,JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT)); ?>

(责任编辑:热点)

    推荐文章
    • WordPress 评论区添加图片代码并自动显示

      WordPress 评论区添加图片代码并自动显示在functions.php里添加//评论加图片 add_action(comment_text, comments_embed_img, 2); function com ...[详细]
    • 王者荣耀纷蝶辅助-王者荣耀安卓全绘制开挂神器

      王者荣耀纷蝶辅助-王者荣耀安卓全绘制开挂神器一、纷蝶辅助的核心功能纷蝶辅助是一款专为《王者荣耀》设计的辅助工具,它集多种功能于一身,能够帮助玩家在游戏中获得显著的优势 。以下是纷蝶辅助的一些核心功能:1. 绘制血量: 繁蝶辅助可以实时绘制队友和敌 ...[详细]
    • 恐怖蟹堡王手机中文版

      恐怖蟹堡王手机中文版恐怖蟹堡王手机中文版游戏的玩法是比较刺激的,这款游戏的整体画风也是比较暗黑的,游戏采用海绵宝宝中的各种角色和建筑进行改编,让大家在熟悉之余又多了点恐怖元素,玩家在游戏中扮演的是一个全新的角色,玩家需要 ...[详细]
    • 使命召唤热门游戏中合法辅助的种类及作用

      使命召唤热门游戏中合法辅助的种类及作用在使命召唤这款热门游戏中,有一些辅助受到玩家关注。但要明确 ,这里说的辅助仅指游戏本身允许的合法辅助 。一些战术辅助类的配件可以提升玩家的游戏体验。例如各种瞄准镜辅助使命召唤,红点瞄准镜利于近距离迅速瞄准 ...[详细]
    • 29网课独立查单去授权源码

      29网课独立查单去授权源码源码简介29网课独立查单去授权源码,修改目录下config.php文件里需要对接的平台地址 uid 和key,完成后即可访问域名看效果 。下载地址此处内容需要回复后才能查看 ...[详细]
    • psp魔法禁书目录存档

      psp魔法禁书目录存档psp魔法禁书目录存档是专为同名游戏魔法禁书目录打造的完美存档工具 ,存档中为大家解锁了全部人物以及全剧情通关,玩家当前点击下载即可体验,让你尽享指尖乐趣。psp魔法禁书目录存档使用方法1.将两个文件夹 ...[详细]
    • 和平精英西柚辅助,解锁全新游戏体验(HD模拟器西柚单板插件功能全解析 ,助你轻松制霸战场 )

      和平精英西柚辅助�,解锁全新游戏体验(HD模拟器西柚单板插件功能全解析,助你轻松制霸战场  )在和平精英的战场上 ,你是否曾因对手的强大而感到力不从心?是否想要一款既能提升游戏体验 ,又不会破坏游戏平衡的辅助工具?和平精英西柚辅助或许正是你一直在寻找的答案!这款专为HD模拟器设计的西柚单板插件 ,以 ...[详细]
    • 穿越火线糖糖增强版-穿越火线端游驱动单透外挂

      穿越火线糖糖增强版-穿越火线端游驱动单透外挂H2 核心功能解析#H3 驱动级透视技术该外挂采用内核驱动注入技术绕过常规检测 :1. 实时渲染敌方轮廓 ,无视墙体遮挡2. 动态标记武器与装备品质3. 智能预测移动轨迹算法与传统内存挂相比 ,驱动级方案更 ...[详细]
    • 2023简洁好看跳转页源码,好看且精简go跳转页面源码

      2023简洁好看跳转页源码,好看且精简go跳转页面源码源码简介2023简洁好看跳转页源码 ,好看且精简go跳转页面源码修改里面的html文件即可下载地址此处内容需要回复后才能查看 ...[详细]
    • 天黑装备铺腾讯版

      天黑装备铺腾讯版天黑装备铺腾讯版是一款采取传统卡牌玩法的店铺经营游戏 ,游戏创新度很高将模拟经营与卡牌玩家相结合 。游戏玩家容易但是需要玩家的仔细思考 。快来加入游戏成为一个精明的铁匠铺雇主吧!天黑装备铺腾讯版简介亲爱的工 ...[详细]
    热点阅读