← 返回
未分类 Key 中文

X Trends (using official API)

Get trending topics on X (Twitter) using the X API. Use when the user wants to see what's trending or check trends for a location.
使用X API获取X(Twitter)上的热门话题。当用户想查看当前热门内容或特定地点的趋势时使用。
terryds terryds 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 1
Stars
📥 390
下载
💾 0
安装
1
版本
#latest

概述

X Trends

Get trending topics on X (Twitter) using the X API.

Setup

  1. Get your Bearer Token from the X Developer Portal: https://developer.x.com
  2. Set environment variable:

```bash

export X_BEARER_TOKEN="your-bearer-token-here"

```

  1. Or set skills."x-trends".apiKey / skills."x-trends".env.X_BEARER_TOKEN in ~/.openclaw/openclaw.json

Usage

Trends by location (WOEID)

# Get trends for a location by WOEID (e.g. 1 = Worldwide, 23424977 = United States)
python3 {baseDir}/scripts/trends.py --woeid 1

# Limit number of results (1-50, default 20)
python3 {baseDir}/scripts/trends.py --woeid 23424977 --max 10

WOEID Lookup

To find the WOEID for a place, use the lookup script:

# Search by city or country name (case-insensitive, partial match)
python3 {baseDir}/scripts/woeid_lookup.py "Tokyo"
python3 {baseDir}/scripts/woeid_lookup.py "Indonesia"

The full list of supported WOEIDs is in {baseDir}/scripts/woeid.json.

Notes

  • Requires Bearer Token authentication (X_BEARER_TOKEN)
  • Results include trend name and tweet count when available
  • Present results in a readable list format

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 10:15 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Marketing Skills

jchopard69
访问 23 个营销模块,提供转化率优化(CRO)、SEO、文案撰写、分析、发布、广告和社交媒体的清单、框架及可直接使用的交付物。
★ 145 📥 31,571
data-analysis

Google Trends API

terryds
获取Google趋势数据,包括每日热门话题、实时趋势、地区兴趣、相关主题、相关查询及自动补全建议...
★ 1 📥 570
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 935 📥 211,294