Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
Version History
- Updated all CLI usage instructions from npx @xapi-to/xapi to npx xapi-to for improved simplicity and clarity. - Installation and setup commands now use the new xapi-to syntax everywhere. - Expanded the API Services section to explicitly list several available third-party APIs. - General rewording and improved consistency in reference blocks and example commands.
What This Skill Does
xapi is a CLI tool for accessing real-time external data through a unified interface. It provides built-in capabilities for Twitter/X, crypto prices, web search, news, and AI text processing, plus proxied access to third-party APIs. All output is JSON, making it easy to chain with other tools.
A single CLI handles Twitter data, crypto prices, web search, and AI text tasks without separate API keys or SDKs for each service.
When to use it
- Look up a Twitter user's profile and recent tweets
- Check current BTC or ETH price and 24-hour change
- Search the web or news for real-time information
- Summarize or rewrite a block of text via AI
- Discover and call third-party API endpoints without writing integration code
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Get the last 10 tweets from @elonmusk
- 1Run `npx @xapi-to/xapi call twitter.user_by_screen_name --input '{"screen_name":"elonmusk"}'` to get the numeric user_id
- 2Extract the user_id from the JSON response
- 3Run `npx @xapi-to/xapi call twitter.user_tweets --input '{"user_id":"44196397","count":10}'`
- 4Parse the returned JSON array of tweet objects
JSON array of the 10 most recent tweets with text, timestamps, and engagement metrics
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.