hot-topics

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Hot Topics & Trending Content Skill

热门话题与热搜内容Skill

This skill helps AI agents fetch trending topics and hot searches from major Chinese social media and content platforms.
本Skill可帮助AI Agent获取主流中文社交媒体及内容平台的热门话题与热搜内容。

When to Use This Skill

何时使用本Skill

Use this skill when users:
  • Want to know what's trending on social media
  • Ask about hot topics or viral content
  • Need to understand current popular discussions
  • Want to track trending topics across platforms
  • Research social media trends
当用户有以下需求时,使用本Skill:
  • 想了解社交媒体上的热门趋势
  • 咨询热门话题或爆款内容
  • 需要了解当前的热门讨论
  • 想要跨平台追踪热门话题
  • 研究社交媒体趋势

Supported Platforms

支持的平台

  1. Weibo (微博) - Chinese Twitter equivalent
  2. Zhihu (知乎) - Chinese Quora equivalent
  3. Baidu (百度) - China's largest search engine
  4. Douyin (抖音) - TikTok China
  5. Toutiao (今日头条) - ByteDance news aggregator
  6. Bilibili (B站) - Chinese YouTube equivalent
  1. Weibo (微博) - 中国版Twitter
  2. Zhihu (知乎) - 中国版Quora
  3. Baidu (百度) - 中国最大的搜索引擎
  4. Douyin (抖音) - TikTok中国版
  5. Toutiao (今日头条) - 字节跳动旗下新闻聚合平台
  6. Bilibili (B站) - 中国版YouTube

API Endpoints

API接口

PlatformEndpointDescription
Weibo
/v2/weibo
Weibo hot search topics
Zhihu
/v2/zhihu
Zhihu trending questions
Baidu
/v2/baidu/hot
Baidu hot searches
Douyin
/v2/douyin
Douyin trending videos
Toutiao
/v2/toutiao
Toutiao hot news
Bilibili
/v2/bili
Bilibili trending videos
All endpoints use GET method and base URL:
https://60s.viki.moe/v2
平台接口地址描述
Weibo
/v2/weibo
Weibo热搜话题
Zhihu
/v2/zhihu
Zhihu热门问题
Baidu
/v2/baidu/hot
Baidu热搜内容
Douyin
/v2/douyin
Douyin热门视频
Toutiao
/v2/toutiao
Toutiao热点资讯
Bilibili
/v2/bili
Bilibili热门视频
所有接口均使用GET请求方法,基础URL为:
https://60s.viki.moe/v2

How to Use

使用方法

Get Weibo Hot Searches

获取微博热搜

python
import requests

def get_weibo_hot():
    response = requests.get('https://60s.viki.moe/v2/weibo')
    return response.json()

hot_topics = get_weibo_hot()
print("🔥 微博热搜:")
for i, topic in enumerate(hot_topics['data'][:10], 1):
    print(f"{i}. {topic['title']} - 热度: {topic['热度']}")
python
import requests

def get_weibo_hot():
    response = requests.get('https://60s.viki.moe/v2/weibo')
    return response.json()

hot_topics = get_weibo_hot()
print("🔥 微博热搜:")
for i, topic in enumerate(hot_topics['data'][:10], 1):
    print(f"{i}. {topic['title']} - 热度: {topic['热度']}")

Get Zhihu Hot Topics

获取知乎热门话题

python
def get_zhihu_hot():
    response = requests.get('https://60s.viki.moe/v2/zhihu')
    return response.json()

topics = get_zhihu_hot()
print("💡 知乎热榜:")
for topic in topics['data'][:10]:
    print(f"· {topic['title']}")
python
def get_zhihu_hot():
    response = requests.get('https://60s.viki.moe/v2/zhihu')
    return response.json()

topics = get_zhihu_hot()
print("💡 知乎热榜:")
for topic in topics['data'][:10]:
    print(f"· {topic['title']}")

Get Multiple Platform Trends

获取多平台热点

python
def get_all_hot_topics():
    platforms = {
        'weibo': 'https://60s.viki.moe/v2/weibo',
        'zhihu': 'https://60s.viki.moe/v2/zhihu',
        'baidu': 'https://60s.viki.moe/v2/baidu/hot',
        'douyin': 'https://60s.viki.moe/v2/douyin',
        'bili': 'https://60s.viki.moe/v2/bili'
    }
    
    results = {}
    for name, url in platforms.items():
        try:
            response = requests.get(url)
            results[name] = response.json()
        except:
            results[name] = None
    
    return results
python
def get_all_hot_topics():
    platforms = {
        'weibo': 'https://60s.viki.moe/v2/weibo',
        'zhihu': 'https://60s.viki.moe/v2/zhihu',
        'baidu': 'https://60s.viki.moe/v2/baidu/hot',
        'douyin': 'https://60s.viki.moe/v2/douyin',
        'bili': 'https://60s.viki.moe/v2/bili'
    }
    
    results = {}
    for name, url in platforms.items():
        try:
            response = requests.get(url)
            results[name] = response.json()
        except:
            results[name] = None
    
    return results

Usage

使用示例

all_topics = get_all_hot_topics()
undefined
all_topics = get_all_hot_topics()
undefined

Simple bash examples

Bash简单示例

bash
undefined
bash
undefined

Weibo hot search

微博热搜

Zhihu trending

知乎热榜

Baidu hot search

百度热搜

Douyin trending

抖音热门

Bilibili trending

B站热门

Response Format

响应格式

Responses typically include:
json
{
  "data": [
    {
      "title": "话题标题",
      "url": "https://...",
      "热度": "1234567",
      "rank": 1
    },
    ...
  ],
  "update_time": "2024-01-15 14:00:00"
}
响应内容通常包含以下结构:
json
{
  "data": [
    {
      "title": "话题标题",
      "url": "https://...",
      "热度": "1234567",
      "rank": 1
    },
    ...
  ],
  "update_time": "2024-01-15 14:00:00"
}

Example Interactions

交互示例

User: "现在微博上什么最火?"

用户: "现在微博上什么最火?"

python
hot = get_weibo_hot()
top_5 = hot['data'][:5]

response = "🔥 微博热搜 TOP 5:\n\n"
for i, topic in enumerate(top_5, 1):
    response += f"{i}. {topic['title']}\n"
    response += f"   热度:{topic.get('热度', 'N/A')}\n\n"
python
hot = get_weibo_hot()
top_5 = hot['data'][:5]

response = "🔥 微博热搜 TOP 5:\n\n"
for i, topic in enumerate(top_5, 1):
    response += f"{i}. {topic['title']}\n"
    response += f"   热度:{topic.get('热度', 'N/A')}\n\n"

User: "知乎上大家在讨论什么?"

用户: "知乎上大家在讨论什么?"

python
zhihu = get_zhihu_hot()
response = "💡 知乎当前热门话题:\n\n"
for topic in zhihu['data'][:8]:
    response += f"· {topic['title']}\n"
python
zhihu = get_zhihu_hot()
response = "💡 知乎当前热门话题:\n\n"
for topic in zhihu['data'][:8]:
    response += f"· {topic['title']}\n"

User: "对比各平台热点"

用户: "对比各平台热点"

python
def compare_platform_trends():
    all_topics = get_all_hot_topics()
    
    summary = "📊 各平台热点概览\n\n"
    
    platforms = {
        'weibo': '微博',
        'zhihu': '知乎',
        'baidu': '百度',
        'douyin': '抖音',
        'bili': 'B站'
    }
    
    for key, name in platforms.items():
        if all_topics.get(key):
            top_topic = all_topics[key]['data'][0]
            summary += f"{name}{top_topic['title']}\n"
    
    return summary
python
def compare_platform_trends():
    all_topics = get_all_hot_topics()
    
    summary = "📊 各平台热点概览\n\n"
    
    platforms = {
        'weibo': '微博',
        'zhihu': '知乎',
        'baidu': '百度',
        'douyin': '抖音',
        'bili': 'B站'
    }
    
    for key, name in platforms.items():
        if all_topics.get(key):
            top_topic = all_topics[key]['data'][0]
            summary += f"{name}{top_topic['title']}\n"
    
    return summary

Best Practices

最佳实践

  1. Rate Limiting: Don't call APIs too frequently, data updates every few minutes
  2. Error Handling: Always handle network errors and invalid responses
  3. Caching: Cache results for 5-10 minutes to reduce API calls
  4. Top N: Usually showing top 5-10 items is sufficient
  5. Context: Provide platform context when showing trending topics
  1. 请求频率限制:不要过于频繁调用API,数据每几分钟更新一次
  2. 错误处理:务必处理网络错误和无效响应
  3. 缓存机制:将结果缓存5-10分钟以减少API调用次数
  4. 展示数量:通常展示前5-10条内容即可
  5. 平台上下文:展示热门话题时需提供对应的平台信息

Common Use Cases

常见使用场景

1. Daily Trending Summary

1. 每日热搜汇总

python
def get_daily_trending_summary():
    weibo = get_weibo_hot()
    zhihu = get_zhihu_hot()
    
    summary = "📱 今日热点速览\n\n"
    summary += "【微博热搜】\n"
    summary += "\n".join([f"{i}. {t['title']}" 
                          for i, t in enumerate(weibo['data'][:3], 1)])
    summary += "\n\n【知乎热榜】\n"
    summary += "\n".join([f"{i}. {t['title']}" 
                          for i, t in enumerate(zhihu['data'][:3], 1)])
    
    return summary
python
def get_daily_trending_summary():
    weibo = get_weibo_hot()
    zhihu = get_zhihu_hot()
    
    summary = "📱 今日热点速览\n\n"
    summary += "【微博热搜】\n"
    summary += "\n".join([f"{i}. {t['title']}" 
                          for i, t in enumerate(weibo['data'][:3], 1)])
    summary += "\n\n【知乎热榜】\n"
    summary += "\n".join([f"{i}. {t['title']}" 
                          for i, t in enumerate(zhihu['data'][:3], 1)])
    
    return summary

2. Find Common Topics Across Platforms

2. 查找跨平台共同话题

python
def find_common_topics():
    all_topics = get_all_hot_topics()
    
    # Extract titles from all platforms
    all_titles = []
    for platform_data in all_topics.values():
        if platform_data and 'data' in platform_data:
            all_titles.extend([t['title'] for t in platform_data['data']])
    
    # Simple keyword matching (can be improved)
    from collections import Counter
    keywords = []
    for title in all_titles:
        keywords.extend(title.split())
    
    common = Counter(keywords).most_common(10)
    return f"🔍 热门关键词:{', '.join([k for k, _ in common])}"
python
def find_common_topics():
    all_topics = get_all_hot_topics()
    
    # 提取所有平台的话题标题
    all_titles = []
    for platform_data in all_topics.values():
        if platform_data and 'data' in platform_data:
            all_titles.extend([t['title'] for t in platform_data['data']])
    
    # 简单关键词匹配(可优化)
    from collections import Counter
    keywords = []
    for title in all_titles:
        keywords.extend(title.split())
    
    common = Counter(keywords).most_common(10)
    return f"🔍 热门关键词:{', '.join([k for k, _ in common])}"

3. Platform-specific Trending Alert

3. 平台专属热点提醒

python
def check_trending_topic(keyword):
    platforms = ['weibo', 'zhihu', 'baidu']
    found_in = []
    
    for platform in platforms:
        url = f'https://60s.viki.moe/v2/{platform}' if platform != 'baidu' else 'https://60s.viki.moe/v2/baidu/hot'
        data = requests.get(url).json()
        
        for topic in data['data']:
            if keyword.lower() in topic['title'].lower():
                found_in.append(platform)
                break
    
    if found_in:
        return f"✅ 话题 '{keyword}' 正在以下平台trending: {', '.join(found_in)}"
    return f"❌ 话题 '{keyword}' 未在主流平台trending"
python
def check_trending_topic(keyword):
    platforms = ['weibo', 'zhihu', 'baidu']
    found_in = []
    
    for platform in platforms:
        url = f'https://60s.viki.moe/v2/{platform}' if platform != 'baidu' else 'https://60s.viki.moe/v2/baidu/hot'
        data = requests.get(url).json()
        
        for topic in data['data']:
            if keyword.lower() in topic['title'].lower():
                found_in.append(platform)
                break
    
    if found_in:
        return f"✅ 话题 '{keyword}' 正在以下平台trending: {', '.join(found_in)}"
    return f"❌ 话题 '{keyword}' 未在主流平台trending"

4. Trending Content Recommendation

4. 个性化热门内容推荐

python
def recommend_content_by_interest(interest):
    """Recommend trending content based on user interest"""
    all_topics = get_all_hot_topics()
    
    recommendations = []
    for platform, data in all_topics.items():
        if data and 'data' in data:
            for topic in data['data']:
                if interest.lower() in topic['title'].lower():
                    recommendations.append({
                        'platform': platform,
                        'title': topic['title'],
                        'url': topic.get('url', '')
                    })
    
    return recommendations
python
def recommend_content_by_interest(interest):
    """根据用户兴趣推荐热门内容"""
    all_topics = get_all_hot_topics()
    
    recommendations = []
    for platform, data in all_topics.items():
        if data and 'data' in data:
            for topic in data['data']:
                if interest.lower() in topic['title'].lower():
                    recommendations.append({
                        'platform': platform,
                        'title': topic['title'],
                        'url': topic.get('url', '')
                    })
    
    return recommendations

Platform-Specific Notes

各平台专属说明

Weibo (微博)

Weibo (微博)

  • Updates frequently (every few minutes)
  • Includes "热度" (heat score)
  • Some topics may have tags like "热" or "新"
  • 更新频率高(每几分钟更新一次)
  • 包含“热度”评分
  • 部分话题带有“热”或“新”标签

Zhihu (知乎)

Zhihu (知乎)

  • Focuses on questions and discussions
  • Usually more in-depth topics
  • Great for understanding what people are curious about
  • 聚焦于问题与讨论
  • 话题通常更具深度
  • 适合了解大众的好奇点

Baidu (百度)

Baidu (百度)

  • Reflects search trends
  • Good indicator of mainstream interest
  • Includes various categories
  • 反映搜索趋势
  • 是主流兴趣的良好指标
  • 涵盖多种分类

Douyin (抖音)

Douyin (抖音)

  • Video-focused trending
  • Entertainment and lifestyle content
  • Young audience interests
  • 以视频类热门内容为主
  • 以娱乐和生活方式内容为主
  • 契合年轻用户的兴趣

Bilibili (B站)

Bilibili (B站)

  • Video platform trends
  • ACG (Anime, Comic, Games) culture
  • Creative content focus
  • 视频平台热门趋势
  • 聚焦ACG(动画、漫画、游戏)文化
  • 主打创意内容

Troubleshooting

问题排查

Issue: Empty or null data

问题:返回空数据或null

  • Solution: API might be updating, retry after a few seconds
  • Check network connectivity
  • 解决方案:API可能正在更新,几秒后重试
  • 检查网络连接

Issue: Old timestamps

问题:时间戳显示为旧数据

  • Solution: Data is cached, this is normal
  • Most platforms update every 5-15 minutes
  • 解决方案:数据已被缓存,属于正常现象
  • 大多数平台每5-15分钟更新一次

Issue: Missing platform

问题:某平台数据缺失

  • Solution: Ensure correct endpoint URL
  • Check API documentation for changes
  • 解决方案:确认接口URL正确
  • 查看API文档确认是否有变更

Related Resources

相关资源