opentwitter
Twitter/X data via the 6551 API. Supports user profiles, tweet search, user tweets, follower events, deleted tweets, and KOL followers.
Best use case
opentwitter is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Twitter/X data via the 6551 API. Supports user profiles, tweet search, user tweets, follower events, deleted tweets, and KOL followers.
Teams using opentwitter should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/opentwitter/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How opentwitter Compares
| Feature / Agent | opentwitter | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Twitter/X data via the 6551 API. Supports user profiles, tweet search, user tweets, follower events, deleted tweets, and KOL followers.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Twitter/X Data Skill
Query Twitter/X data from the 6551 platform REST API. All endpoints require a Bearer token via `$TWITTER_TOKEN`.
**Get your token**: https://6551.io/mcp
**Base URL**: `https://ai.6551.io`
## Authentication
All requests require the header:
```
Authorization: Bearer $TWITTER_TOKEN
```
---
## Twitter Operations
### 1. Get Twitter User Info
Get user profile by username.
```bash
curl -s -X POST "https://ai.6551.io/open/twitter_user_info" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username": "elonmusk"}'
```
### 2. Get Twitter User by ID
Get user profile by numeric ID.
```bash
curl -s -X POST "https://ai.6551.io/open/twitter_user_by_id" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"userId": "44196397"}'
```
### 3. Get User Tweets
Get recent tweets from a user.
```bash
curl -s -X POST "https://ai.6551.io/open/twitter_user_tweets" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username": "elonmusk", "maxResults": 20, "product": "Latest"}'
```
| Parameter | Type | Default | Description |
|------------------|---------|----------|--------------------------------|
| `username` | string | required | Twitter username (without @) |
| `maxResults` | integer | 20 | Max tweets (1-100) |
| `product` | string | "Latest" | "Latest" or "Top" |
| `includeReplies` | boolean | false | Include reply tweets |
| `includeRetweets`| boolean | false | Include retweets |
### 4. Search Twitter
Search tweets with various filters.
```bash
curl -s -X POST "https://ai.6551.io/open/twitter_search" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"keywords": "bitcoin", "maxResults": 20, "product": "Top"}'
```
**Search from specific user:**
```bash
curl -s -X POST "https://ai.6551.io/open/twitter_search" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"fromUser": "VitalikButerin", "maxResults": 20}'
```
**Search by hashtag:**
```bash
curl -s -X POST "https://ai.6551.io/open/twitter_search" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"hashtag": "crypto", "minLikes": 100, "maxResults": 20}'
```
### Twitter Search Parameters
| Parameter | Type | Default | Description |
|------------------|---------|---------|-------------------------------------|
| `keywords` | string | - | Search keywords |
| `fromUser` | string | - | Tweets from specific user |
| `toUser` | string | - | Tweets to specific user |
| `mentionUser` | string | - | Tweets mentioning user |
| `hashtag` | string | - | Filter by hashtag (without #) |
| `excludeReplies` | boolean | false | Exclude reply tweets |
| `excludeRetweets`| boolean | false | Exclude retweets |
| `minLikes` | integer | 0 | Minimum likes threshold |
| `minRetweets` | integer | 0 | Minimum retweets threshold |
| `minReplies` | integer | 0 | Minimum replies threshold |
| `sinceDate` | string | - | Start date (YYYY-MM-DD) |
| `untilDate` | string | - | End date (YYYY-MM-DD) |
| `lang` | string | - | Language code (e.g. "en", "zh") |
| `product` | string | "Top" | "Top" or "Latest" |
| `maxResults` | integer | 20 | Max tweets (1-100) |
### 5. Get Follower Events
Get new followers or unfollowers for a user.
```bash
# Get new followers
curl -s -X POST "https://ai.6551.io/open/twitter_follower_events" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username": "elonmusk", "isFollow": true, "maxResults": 20}'
# Get unfollowers
curl -s -X POST "https://ai.6551.io/open/twitter_follower_events" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username": "elonmusk", "isFollow": false, "maxResults": 20}'
```
| Parameter | Type | Default | Description |
|-------------|---------|---------|------------------------------------------|
| `username` | string | required| Twitter username (without @) |
| `isFollow` | boolean | true | true=new followers, false=unfollowers |
| `maxResults`| integer | 20 | Max events (1-100) |
### 6. Get Deleted Tweets
Get deleted tweets from a user.
```bash
curl -s -X POST "https://ai.6551.io/open/twitter_deleted_tweets" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username": "elonmusk", "maxResults": 20}'
```
| Parameter | Type | Default | Description |
|-------------|---------|---------|--------------------------------|
| `username` | string | required| Twitter username (without @) |
| `maxResults`| integer | 20 | Max tweets (1-100) |
### 7. Get KOL Followers
Get which KOLs (Key Opinion Leaders) are following a user.
```bash
curl -s -X POST "https://ai.6551.io/open/twitter_kol_followers" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username": "elonmusk"}'
```
| Parameter | Type | Default | Description |
|------------|--------|---------|--------------------------------|
| `username` | string | required| Twitter username (without @) |
---
## Data Structures
### Twitter User
```json
{
"userId": "44196397",
"screenName": "elonmusk",
"name": "Elon Musk",
"description": "...",
"followersCount": 170000000,
"friendsCount": 500,
"statusesCount": 30000,
"verified": true
}
```
### Tweet
```json
{
"id": "1234567890",
"text": "Tweet content...",
"createdAt": "2024-02-20T12:00:00Z",
"retweetCount": 1000,
"favoriteCount": 5000,
"replyCount": 200,
"userScreenName": "elonmusk",
"hashtags": ["crypto", "bitcoin"],
"urls": [{"url": "https://..."}]
}
```
---
## Common Workflows
### Crypto Twitter KOL Tweets
```bash
curl -s -X POST "https://ai.6551.io/open/twitter_user_tweets" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username": "VitalikButerin", "maxResults": 10}'
```
### Trending Crypto Tweets
```bash
curl -s -X POST "https://ai.6551.io/open/twitter_search" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"keywords": "bitcoin", "minLikes": 1000, "product": "Top", "maxResults": 20}'
```
## Notes
- Get your API token at https://6551.io/mcp
- Rate limits apply; max 100 results per request
- Twitter usernames should not include the @ symbolRelated Skills
opennews
Crypto news search, AI ratings, trading signals, and real-time updates via the OpenNews 6551 API. Supports keyword search, coin filtering, source filtering, AI score ranking, and WebSocket live feeds.
agent-reach
Give your AI agent eyes to see the entire internet. Read and search across Twitter/X, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu, Instagram, LinkedIn, Boss直聘, RSS, and any web page — all from a single CLI. Use when: (1) reading content from URLs (tweets, Reddit posts, articles, videos), (2) searching across platforms (web, Twitter, Reddit, GitHub, YouTube, Bilibili, XiaoHongShu, Instagram, LinkedIn, Boss直聘), (3) user asks to configure/enable a platform channel, (4) checking channel health or updating Agent Reach. Triggers: "search Twitter/Reddit/YouTube", "read this URL", "find posts about", "搜索", "读取", "查一下", "看看这个链接", "帮我配", "帮我添加", "帮我安装".
searxng-search
使用自建SearXNG搜索引擎搜索互联网内容。触发词:搜索、查一下、帮我查、查找、搜一下、帮我搜索。
multi-search-engine
Multi search engine integration with 17 engines (8 CN + 9 Global). Supports advanced search operators, time filters, site search, privacy engines, and WolframAlpha knowledge queries. No API keys required.
weather
Get current weather and forecasts via wttr.in or Open-Meteo. Use when: user asks about weather, temperature, or forecasts for any location. NOT for: historical weather data, severe weather alerts, or detailed meteorological analysis. No API key needed.
wacli
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
voice-call
Start voice calls via the OpenClaw voice-call plugin.
video-frames
Extract frames or short clips from videos using ffmpeg.
trello
Manage Trello boards, lists, and cards via the Trello REST API.
tmux
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
things-mac
Manage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database). Use when a user asks OpenClaw to add a task to Things, list inbox/today/upcoming, search tasks, or inspect projects/areas/tags.
summarize
Summarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for “transcribe this YouTube/video”).