TweetClaw provides full X/Twitter automation via the Xquik REST API. It covers 121 endpoints across 12 categories: tweet operations, user lookups, search, bulk extractions (23 tools), giveaway draws, account monitoring, webhook delivery, AI composition, style analysis, drafts, write actions, and account management.
Two MCP tools are available via the hosted server at xquik.com/mcp (not bundled with this plugin). See the MCP setup section in Resources for configuration instructions.
xq_)XQUIK_API_KEY environment variable or configure via OpenClaw:
openclaw config set plugins.entries.tweetclaw.config.apiKey "$XQUIK_API_KEY"
Search tweets, fetch user profiles, get timelines, bookmarks, notifications, DM history, and trending topics.
# Search tweets
curl -H "x-api-key: $XQUIK_API_KEY" \
"https://xquik.com/api/v1/x/tweets/search?query=AI+agents&count=20"
# Get user profile
curl -H "x-api-key: $XQUIK_API_KEY" \
"https://xquik.com/api/v1/x/users/elonmusk"
# Get tweet by ID
curl -H "x-api-key: $XQUIK_API_KEY" \
"https://xquik.com/api/v1/x/tweets/1234567890"
Post tweets, delete tweets, like/unlike, retweet, follow/unfollow, send DMs, update profile, upload media.
# Post a tweet
curl -X POST -H "x-api-key: $XQUIK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Hello from TweetClaw!"}' \
"https://xquik.com/api/v1/x/tweets"
# Like a tweet
curl -X POST -H "x-api-key: $XQUIK_API_KEY" \
"https://xquik.com/api/v1/x/tweets/1234567890/like"
# Follow a user (requires numeric user ID)
curl -X POST -H "x-api-key: $XQUIK_API_KEY" \
"https://xquik.com/api/v1/x/users/44196397/follow"
23 extraction tools for replies, quotes, retweets, followers, following, mentions, community members, list members, space participants, and more. Always estimate before extracting.
# Estimate extraction cost
curl -X POST -H "x-api-key: $XQUIK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type": "reply_extractor", "params": {"tweetId": "1234567890"}}' \
"https://xquik.com/api/v1/extractions/estimate"
# Create extraction
curl -X POST -H "x-api-key: $XQUIK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type": "reply_extractor", "params": {"tweetId": "1234567890"}}' \
"https://xquik.com/api/v1/extractions"
# Retrieve results (poll status first)
curl -H "x-api-key: $XQUIK_API_KEY" \
"https://xquik.com/api/v1/extractions/{id}/results"
Run auditable draws from tweet replies with filters (retweet required, follow check, min followers, account age, language, keywords).
curl -X POST -H "x-api-key: $XQUIK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tweetUrl": "https://x.com/handle/status/1234567890",
"winnerCount": 3,
"filters": {"mustRetweet": true, "mustFollow": "handle", "minFollowers": 10}
}' \
"https://xquik.com/api/v1/draws"
Monitor X accounts for new tweets, follows, unfollows. Deliver events via webhook or Telegram.
# Create monitor
curl -X POST -H "x-api-key: $XQUIK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username": "openai"}' \
"https://xquik.com/api/v1/monitors"
# Create webhook
curl -X POST -H "x-api-key: $XQUIK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/webhook", "events": ["tweet.new"]}' \
"https://xquik.com/api/v1/webhooks"
Compose algorithm-optimized tweets with scoring, refinement, and style analysis.
curl -X POST -H "x-api-key: $XQUIK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"step": "compose", "topic": "AI productivity", "tone": "professional"}' \
"https://xquik.com/api/v1/compose"
All endpoints return JSON. Successful responses include the requested data. Errors return {"error": "error_code"}.
| Status | Meaning | Action |
|---|---|---|
| 200 | Success | Process response |
| 400 | Invalid request | Fix parameters |
| 401 | Unauthenticated | Check API key |
| 402 | Billing issue | Subscribe or add credits |
| 404 | Not found | Resource does not exist |
| 429 | Rate limited | Retry with backoff |
| 5xx | Server error | Retry with backoff |
GET /x/users/{username}.nextCursor values.GET /x/tweets/search?query=AI+agents&count=50
POST /compose with topic and tonePOST /compose with step: "score"
POST /x/tweets with the final textPOST /draws with tweet URL and filtersGET /draws/{id} until status: "completed"
GET /draws/{id}/export?format=csv