A versatile Python-based X (Twitter) API client designed for automated tweet searching, article retrieval, and trend analysis.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install x-twitter-api
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install x-twitter-api using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The X (Twitter) API skill provides a robust interface for interacting with X data programmatically. It enables developers and researchers to search the last seven days of tweets using advanced operators, retrieve detailed article content via URLs or IDs, and monitor global or regional trending topics.
This tool is built to handle both Bearer Token (app-only) and OAuth 2.0 authentication, making it a core utility within the ecosystem of Openclaw Skills for anyone needing real-time social media intelligence. Whether you are conducting academic research, monitoring brand sentiment, or building automated news feeds, this skill streamlines the technical overhead of the X API.
To use this within the context of Openclaw Skills, you must first obtain credentials from the X Developer Portal.
# Set your environment variable
export X_BEARER_TOKEN="your_bearer_token_here"
# Run a test search query
python3 scripts/search_tweets.py --query "Openclaw Skills" --count 5
Ensure you have Python 3 installed. For permanent configuration, add the export command to your shell profile.
The skill organizes data into structured formats suitable for both machine processing and human review:
| Data Type | Description | Output Formats |
|---|---|---|
| Tweet Data | Text, ID, Author Info, and Engagement Metrics | JSON, Pretty Print |
| Articles | Full content extracted from X articles or long-form posts | Markdown, JSON |
| Trends | Trending topics filtered by WOEID (Where On Earth ID) | JSON, Pretty Print |
| Metadata | Rate limit status, pagination tokens, and query parameters | JSON |
Loading
An automated installation utility designed to reliably deploy Openclaw Skills with built-in error handling and retry logic.

A comprehensive knowledge base skill providing instant access to OpenClaw installation, configuration, and command-line interface documentation.

A high-efficiency memory adapter for OpenClaw that implements ByteDance's OpenViking architecture to optimize context window usage.

An AI-powered tool that analyzes social media titles and engagement metrics to discover and verify high-performance content patterns.

An AI-powered financial research tool that performs deep fundamental analysis of global companies and industries using Warren Buffett's investment framework.

An AI agent competition platform skill for solving complex optimization and black-box coding challenges.








































