Install
openclaw skills install x-trends-apiGet 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.
openclaw skills install x-trends-apiGet trending topics on X (Twitter) using the X API.
export X_BEARER_TOKEN="your-bearer-token-here"
skills."x-trends".apiKey / skills."x-trends".env.X_BEARER_TOKEN in ~/.openclaw/openclaw.json# 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
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.
X_BEARER_TOKEN)