接口地址
http://api.guiguiya.com/api/hotlist
📝 接口描述
支持:百度热点 指数/少数派 热榜/百科历史上的今天/抖音 热搜榜/哔哩哔哩 全站日榜/哔哩哔哩 热搜榜/知乎热榜 热度/知乎热门问题/微博 热搜榜/CSDN热榜/搜狗热搜/今日头条热榜/ACFUN弹幕网/安全KER 热榜/懂球帝 热榜/爱范儿/稀土掘金/51CTO 推荐榜
📋 请求示例
GET http://api.guiguiya.com/api/hotlist# 带参数请求示例
http://api.guiguiya.com/api/hotlist?param1=value1¶m2=value2
📤 返回示例
{
"code": 200,
"msg": "success",
"data": {}
}
🔧 JavaScript (Fetch)
fetch('http://api.guiguiya.com/api/hotlist', {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
})
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err));
🐘 PHP (cURL)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://api.guiguiya.com/api/hotlist');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
📡 Python (requests)
import requests
url = 'http://api.guiguiya.com/api/hotlist'
response = requests.request('GET', url)
print(response.json())