中文平台大多没有干净的公开接口:百度热搜没有公开 API,抖音的榜单接口没有文档且会变,B 站有接口但没有说明。如果你只是想拿数据做分析,有两种方式。
趋势数据集的字段:
| 文件 | 字段 |
|---|---|
| baidu_hotsearch.json | rank, word, hot, url |
| douyin_hotsearch.json | rank, word, hot, label, url |
| bilibili_trending.json | rank, title, author, views, likes, url, cover |
| toutiao_hotboard.json | rank, title, hot, label, url |
| weibo_hotsearch.json | rank, word, hot, note, url |
| toutiao_hotboard.json | rank, title, hot, label, url |
| weibo_hotsearch.json | rank, word, hot, note, url |
| chaincatcher_headlines.json | id, title, url |
Kaggle 是每天的快照;如果要"此刻"的榜单,同样的数据源做成了按次付费 API,不需要账号或 API key:
GET https://api.seayeah.top/v1/trending/baidu?limit=50 $0.002 GET https://api.seayeah.top/v1/trending/douyin?limit=50 $0.002 GET https://api.seayeah.top/v1/trending/bilibili?limit=50 $0.002 GET https://api.seayeah.top/v1/trending/toutiao?limit=50 $0.002 GET https://api.seayeah.top/v1/trending/weibo?limit=50 $0.002 GET https://api.seayeah.top/v1/trending/all?limit=20 $0.005 (六路数据) GET https://api.seayeah.top/v1/news/en?limit=20 $0.003 (中文加密新闻 + 英文翻译)
付费端点返回 HTTP 402 和 x402 的 USDC 支付挑战(Base 网络)。如果你没有 x402 客户端,也可以向 402 里的地址转账,然后在 /buy 粘贴交易哈希。
两个数据集的许可分别是 CC BY 4.0 和 CC0;使用的时候链接一下 ChinaWire 就好。