📊 热搜数据聚合服务

使用方式: GET /?platform=baidu|weibo|zhihu

📡 可用接口:

百度热搜 微博热搜 知乎热榜

附加参数:
?platform=zhihu&refresh=true - 强制刷新缓存
?platform=weibo&refresh=true - 强制刷新缓存

🧪 缓存降级测试:

📝 前端调用示例:

// 获取百度热搜
fetch('https://你的worker.xx.workers.dev/?platform=baidu')
  .then(r => r.json())
  .then(data => {
    if (data.success) {
      console.log('数据来源:', data.source);
      console.log('是否缓存:', data.cached);
      console.log('数据:', data.data);
    }
  })

// 获取知乎热榜 (强制刷新)
fetch('https://你的worker.xx.workers.dev/?platform=zhihu&refresh=true')
  .then(r => r.json())
  .then(console.log)
服务状态: 正常运行
调试模式: 开启
模拟失败: 主接口(关) / 备接口(关)
最后更新: 1/22/2026, 9:08:20 AM