https://api.9wt.cn/API/hotlist.php
示例地址:https://api.9wt.cn/API/hotlist.php?title=百度
查看各大榜单的今日热榜排行,不传入任何参数将返回平台列表( 36氪, 51CTO, 吾爱破解, AcFun, 百度, 哔哩哔哩, 酷安, CSDN, 数字尾巴, 豆瓣讨论, 豆瓣电影, 抖音, 极客公园, 原神, 果壳, HelloGitHub, 历史上的今天, 崩坏3, 虎扑, 虎嗅, 爱范儿, IT之家「喜加一」, IT之家, 简书, 稀土掘金, 英雄联盟, 米游社 · 崩坏3, 网易新闻, 水木社区, NGA, 腾讯新闻, 新浪新闻, 新浪网, 什么值得买, 少数派, 崩坏:星穹铁道, 澎湃新闻, 百度贴吧, 今日头条, 中央气象台, 微博, 微信读书, 游研社, 知乎, 知乎日报)
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| title | string | 是 | 平台名称,支持中英文。不提供则返回所有支持的平台列表 |
| 状态码 | 说明 |
|---|---|
| 200 | 请求成功,服务器已成功处理了请求。 |
| 403 | 服务器拒绝请求。这可能是由于缺少必要的认证凭据(如API密钥)或权限不足。 |
| 404 | 请求的资源未找到。请检查您的请求地址是否正确。 |
| 429 | 请求过于频繁。您已超出速率限制,请稍后再试。 |
| 500 | 服务器内部错误。服务器在执行请求时遇到了问题。 |
此处将显示接口返回结果...
<?php
$url = 'https://api.9wt.cn/API/hotlist.php';
$params = ['title' => 'YOUR_VALUE', ];
$url .= '?' . http_build_query($params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>import requests
url = "https://api.9wt.cn/API/hotlist.php"
params = {
'title': 'YOUR_VALUE',
}
response = requests.get(url, params=params)
print(response.text)const url = new URL('https://api.9wt.cn/API/hotlist.php');
const params = {
'title': 'YOUR_VALUE',
};
Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
fetch(url)
.then(response => response.text())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));