xapi-labs
bởi glacier-luo
PDF & DocumentsTóm tắt
Aggregated API platform for AI agents.
Mô tả
Kỹ năng này làm gì
xapi is a CLI tool for accessing real-time external data and third-party APIs from the terminal. It provides built-in capabilities for Twitter/X, crypto prices, web search, news, and AI text processing, plus proxy access to services like Reddit, Serper, and OpenRouter. All output is JSON by default, making it easy to chain with other tools.
One CLI covers Twitter data, crypto, web search, and AI text tasks that would otherwise require separate API keys and SDKs for each service.
Khi nào nên dùng
- Look up a Twitter user's profile and recent tweets
- Check current BTC or ETH price and 24h change
- Search the web or latest news for a keyword
- Summarize or rewrite a block of text via AI
- Find and call a third-party API without writing integration code
Quy trình ví dụ
User asks: Get the last 10 tweets from @elonmusk
- 1
Run
npx @xapi-to/xapi call twitter.user_by_screen_name --input '{"screen_name":"elonmusk"}'to get the numeric user_id - 2
Extract
user_idfrom the JSON response - 3
Run
npx @xapi-to/xapi call twitter.user_tweets --input '{"user_id":"44196397","count":10}' - 4
Parse the JSON output to extract tweet text and metadata
JSON array of the 10 most recent tweets from the account
Yêu cầu
- XAPI_API_KEY — register at xapi.to or via `npx @xapi-to/xapi register`
- Paid xapi account balance for API calls
- Twitter OAuth binding (for write actions like posting tweets)
Cài đặt
clawhub install glacier-luo/xapi-labsChạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.