twitter-query
Query X/Twitter via twitterapi.io read-only APIs by account (user timeline) or by keyword (advanced search). Outputs structured JSON; no LLM, no trend scoring. Use when the user asks for tweets from a handle, user timeline, keyword/hashtag/cashtag search, or 推特/X 推文查询.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alexander10011/twitter-queryWhat This Skill Does
The twitter-query skill provides a robust, read-only interface for fetching real-time data from X (formerly Twitter) directly into your OpenClaw environment. By leveraging the twitterapi.io backend, this tool allows users to pull structured tweet data based on specific user handles or complex search queries without the overhead of external LLM summarization. The skill outputs raw, parseable JSON data, ensuring that information remains pristine and ready for downstream processing or programmatic analysis. It is designed to act as a data retrieval layer, focusing on performance, accuracy, and ease of integration.
Installation
To integrate this skill into your workflow, you must have the OpenClaw environment configured. First, ensure you have a valid TWITTER_API_KEY from twitterapi.io. Installation is managed via the ClawHub CLI. Run the following command in your terminal:
clawhub install openclaw/skills/skills/alexander10011/twitter-query
Once installed, you must configure the environment variable by running export TWITTER_API_KEY="your_key_here" in your shell session. The skill relies on Python 3 for execution, and you should ensure the dependencies listed in the repository are satisfied before initiating any queries.
Use Cases
This skill is ideal for developers and analysts who need to monitor social sentiment, track real-time news, or build datasets from X. Common use cases include:
- Automated social media monitoring for specific industry leaders or competitors.
- Building custom news aggregators that track hashtags or specific ticker symbols like $BTC or $ETH.
- Analyzing historical data from a specific timeline to evaluate communications trends.
- Integrating live tweet feeds into dashboards or notification systems where structured, non-interpreted data is required.
Example Prompts
- "Use twitter-query to fetch the last 20 tweets from VitalikButerin and output the results for analysis."
- "Search for the latest 10 tweets containing the hashtag #OpenSource, filtered by latest results."
- "Retrieve the top tweets from the last 24 hours that mention the term 'Artificial Intelligence' to get a snapshot of current discourse."
Tips & Limitations
- Read-Only: This skill cannot post tweets, like, or follow accounts. It is strictly a retrieval tool.
- Rate Limiting: Performance is subject to your twitterapi.io subscription tier. Always respect the API limits to avoid interruptions.
- Data Handling: Since the output is raw JSON, you may need to use tools like
jqor Python'sjsonlibrary if processing large amounts of data at once. - No LLM Interference: The skill does not provide summaries. If you need a summary of the retrieved data, pass the JSON output to your preferred LLM model within the OpenClaw chat interface.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-alexander10011-twitter-query": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api, code-execution
Related Skills
web3-daily-mcp
MCP Server for Web3 Daily - Real-time Web3 research digest with macro news, KOL sentiment, market data, and personalized wallet analysis. This is an MCP server that provides tools for AI agents to fetch real data from the J4Y backend.
web3-daily
Web3 public research digest service. Provides daily digest with macro news, KOL sentiment, and real-time market data (BTC/ETH prices, Fear & Greed Index). No personal data required. Use when user asks for Web3 news, crypto digest, or says /web3.
web3-pm-interview
Use this skill when preparing candidates for Web3 product manager interviews, especially wallet, exchange, DeFi, DEX, on-chain data, growth, AI Wallet, Agentic Wallet, senior PM, product lead, or product director roles. It analyzes target JDs, maps candidate experience to role requirements, builds interview narratives, generates round-specific playbooks and question banks, runs mock interview scoring, and prepares case or 30/60/90-day plans.