← Back to Skills Marketplace
rpeng666

获取各大平台热榜

by Rpeng666 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
175
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install hotrankhub
Description
聚合 47 个平台热榜数据的 API 服务
README (SKILL.md)

HotRank Hub - 热榜数据 API 服务

概述

HotRank Hub 是一个聚合全网热榜数据的 API 服务,提供 47 个平台的实时热搜、热榜数据。通过标准化的 HTTP API,您可以轻松获取微博、知乎、抖音、B站、GitHub 等平台的热门内容。

核心能力

📊 数据聚合

  • 47 个数据源:覆盖社交媒体、科技资讯、财经新闻、游戏娱乐等多个领域
  • 实时更新:数据每5分钟自动更新,确保获取最新热点
  • 标准化格式:统一的数据结构,易于集成和解析

🔍 平台覆盖

HotRank Hub 聚合 47 个平台的热榜数据,完整列表如下:

社交媒体(7个):微博热搜、知乎热榜、知乎日报、百度热搜、百度贴吧、小红书、夸克热搜

短视频/视频(4个):抖音热点、快手热榜、B站热门、腾讯视频

科技资讯(16个):GitHub、GitHub趋势、HelloGitHub、掘金、CSDN、V2EX、Linux.do、Hacker News、IT之家、36氪、虎嗅、少数派、爱范儿、酷安、FreeBuf

财经新闻(4个):雪球、华尔街见闻、金十数据、财联社

游戏娱乐(6个):Steam、虎扑、豆瓣电影、英雄联盟、网易云音乐、QQ音乐

新闻资讯(4个):今日头条、网易新闻、澎湃新闻、参考消息

生活方式(4个):微信读书、什么值得买、懂车帝、历史上的今天

社区论坛(2个):人人都是产品经理

共计 47 个数据源,覆盖中文互联网主流平台。

API 基础信息

基础 URL

https://airouter.tech/api

响应格式

所有 API 返回 JSON 格式,包含以下字段:

{
  "code": 200,          // 状态码
  "msg": "请求成功",     // 响应消息
  "data": [...],        // 热榜数据列表
  "timestamp": 1709500000000  // 时间戳
}

数据字段

每个热榜条目包含:

字段 类型 说明
id string/number 唯一标识
title string 热搜标题
desc string 热搜描述
hot number/string 热度值
url string PC端链接
mobileUrl string 移动端链接

核心工具

1. 获取热榜数据

GET /api/{source_id}

参数:

  • source_id (路径参数):数据源 ID,如 weibozhihubilibili

示例:

# 获取微博热搜
curl https://airouter.tech/api/weibo

# 获取知乎热榜
curl https://airouter.tech/api/zhihu

响应示例:

{
  "code": 200,
  "msg": "请求成功",
  "data": [
    {
      "id": "1",
      "title": "热搜标题",
      "desc": "热搜描述",
      "hot": 1000000,
      "url": "https://weibo.com/...",
      "mobileUrl": "https://weibo.com/..."
    }
  ],
  "timestamp": 1709500000000
}

2. 数据源列表

完整的 47 个数据源列表请参考 sources.json 文件。

每个数据源包含:

  • id:数据源唯一标识
  • name:平台名称
  • category:类别分类
  • apiPath:API 端点路径

使用示例

基础示例

// 获取微博热搜
const response = await fetch('https://airouter.tech/api/weibo');
const data = await response.json();
console.log(data);

// 获取 GitHub 趋势
const githubData = await fetch('https://airouter.tech/api/github-trending');
const trending = await githubData.json();

高级示例

跨平台对比

// 对比微博和知乎的热榜
const [weibo, zhihu] = await Promise.all([
  fetch('https://airouter.tech/api/weibo').then(r => r.json()),
  fetch('https://airouter.tech/api/zhihu').then(r => r.json())
]);

// 找出共同热点
const weiboTitles = new Set(weibo.data.map(item => item.title));
const common = zhihu.data.filter(item => weiboTitles.has(item.title));

生成热点报告

// 获取多个平台数据并生成报告
const platforms = ['weibo', 'zhihu', 'douyin'];
const reports = await Promise.all(
  platforms.map(p =>
    fetch(`https://airouter.tech/api/${p}`)
      .then(r => r.json())
  )
);

// 汇总分析
const summary = reports.map((report, i) => ({
  platform: platforms[i],
  topItems: report.data.slice(0, 5)
}));

最佳实践

1. 缓存策略

Why: 减少不必要的 API 调用,提升响应速度

How:

const CACHE_KEY = 'hotrankhub_cache';
const CACHE_TIME = 5 * 60 * 1000; // 5分钟

async function getHotList(source) {
  const cache = localStorage.getItem(`${CACHE_KEY}_${source}`);
  if (cache) {
    const { data, timestamp } = JSON.parse(cache);
    if (Date.now() - timestamp \x3C CACHE_TIME) {
      return data;
    }
  }

  const response = await fetch(`/api/${source}`);
  const data = await response.json();

  localStorage.setItem(`${CACHE_KEY}_${source}`, JSON.stringify({
    data,
    timestamp: Date.now()
  }));

  return data;
}

2. 错误处理

Why: 确保应用的健壮性和用户体验

How:

try {
  const response = await fetch('/api/weibo');
  if (!response.ok) {
    throw new Error(`HTTP ${response.status}`);
  }
  const data = await response.json();
  // 处理数据
} catch (error) {
  console.error('获取热榜失败:', error);
  // 显示友好的错误提示
  showToast('获取数据失败,请稍后重试');
}

3. 并发请求

Why: 提升多平台数据获取效率

How:

// 同时获取多个平台数据
const sources = ['weibo', 'zhihu', 'bilibili'];
const results = await Promise.allSettled(
  sources.map(s => fetch(`/api/${s}`).then(r => r.json()))
);

// 处理结果
results.forEach((result, i) => {
  if (result.status === 'fulfilled') {
    console.log(`${sources[i]}: ${result.value.data.length} items`);
  } else {
    console.error(`${sources[i]} failed:`, result.reason);
  }
});

限制与注意事项

  • 缓存时间:API 默认缓存 5 分钟
  • 请求频率:建议合理控制请求频率,避免过度调用
  • 数据准确性:数据来源于第三方平台,不保证 100% 准确

技术支持

如有问题,请联系:

  • 网站:https://airouter.tech
  • 文档:完整 API 文档请参考 api-reference.md
  • 示例:更多使用示例请参考 examples.md
Usage Guidance
This skill appears coherent: it simply calls an external, unauthenticated API (https://airouter.tech/api) and returns JSON. Before installing, verify the trustworthiness of the airouter.tech domain and the publisher (look for a real repository or contact/support email), because the registry summary had 'Source: unknown'. Because the API is public and unauthenticated, it could be rate-limited, unreliable, or change behavior; avoid sending any sensitive data through it. Consider caching results (docs already suggest 5‑minute caching) to reduce outbound requests, and monitor your agent's outbound network requests after installation. If you need stronger assurance, ask the publisher for a canonical repo or privacy/terms page and confirm TLS and domain ownership.
Capability Analysis
Type: OpenClaw Skill Name: hotrankhub Version: 1.0.0 The HotRank Hub skill is a legitimate API wrapper designed to aggregate trending topics from 47 different platforms (e.g., Weibo, GitHub, Zhihu) via the 'https://airouter.tech/api' endpoint. The bundle consists entirely of documentation, metadata, and standard code examples (JavaScript/Python) for fetching public data, with no evidence of malicious intent, data exfiltration, or prompt injection.
Capability Assessment
Purpose & Capability
The skill name, description, metadata, SKILL.md and example files all describe an API that returns aggregated 'hot list' data from 47 sources and the declared apiBaseUrl (https://airouter.tech/api) matches the examples. Minor inconsistency: the registry record listed 'Source: unknown' / 'Homepage: none' while metadata.json and multiple docs reference https://airouter.tech — you may want to verify the publisher and domain ownership, but functionally the requirements align with the stated purpose.
Instruction Scope
SKILL.md and other docs instruct only to perform GET requests to the aggregator endpoints and to cache/handle responses; there are no instructions to read local files, access unrelated environment variables, or transmit data to endpoints other than the documented apiBaseUrl.
Install Mechanism
This is an instruction-only skill with no install spec and no code files to write or run on the host, so there is no install-time risk.
Credentials
The skill requests no environment variables, secrets, or local config paths. The API is described as public/unauthenticated, so no credentials are required — this is proportionate to the described functionality.
Persistence & Privilege
Skill flags show always:false and normal agent invocation; the skill does not request persistent agent/system privileges or modify other skills' configuration.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install hotrankhub
  3. After installation, invoke the skill by name or use /hotrankhub
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
HotRank Hub 1.0.0 — 首次发布: - 提供聚合 47 个主流平台热榜数据的 API 服务,涵盖社交媒体、短视频、科技资讯、财经、娱乐等领域 - 支持标准化 HTTP API,所有返回数据为统一 JSON 格式 - 热榜数据每 5 分钟自动更新,保证实时性 - 提供详细的数据字段说明、调用示例和最佳实践(缓存、错误处理、并发请求等) - 附带完整数据源列表和平台分类,便于按需调用
Metadata
Slug hotrankhub
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 获取各大平台热榜?

聚合 47 个平台热榜数据的 API 服务. It is an AI Agent Skill for Claude Code / OpenClaw, with 175 downloads so far.

How do I install 获取各大平台热榜?

Run "/install hotrankhub" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 获取各大平台热榜 free?

Yes, 获取各大平台热榜 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 获取各大平台热榜 support?

获取各大平台热榜 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 获取各大平台热榜?

It is built and maintained by Rpeng666 (@rpeng666); the current version is v1.0.0.

💬 Comments