opentwitter

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Twitter/X Data Skill

Twitter/X 数据技能

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
从6551平台REST API查询Twitter/X数据。所有端点都需要通过
$TWITTER_TOKEN
提供Bearer token。
获取你的token: https://6551.io/mcp
基础URL:
https://ai.6551.io

Authentication

身份验证

All requests require the header:
Authorization: Bearer $TWITTER_TOKEN

所有请求都需要包含以下请求头:
Authorization: Bearer $TWITTER_TOKEN

Twitter Operations

Twitter 操作

1. Get Twitter User Info

1. 获取Twitter用户信息

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"}'
通过用户名获取用户资料。
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

2. 通过ID获取Twitter用户

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"}'
通过数字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

3. 获取用户推文

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"}'
ParameterTypeDefaultDescription
username
stringrequiredTwitter username (without @)
maxResults
integer20Max tweets (1-100)
product
string"Latest""Latest" or "Top"
includeReplies
booleanfalseInclude reply tweets
includeRetweets
booleanfalseInclude retweets
获取用户的近期推文。
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"}'
参数类型默认值描述
username
字符串必填Twitter用户名(不含@)
maxResults
整数20最大推文数量(1-100)
product
字符串"Latest""Latest"或"Top"
includeReplies
布尔值false包含回复推文
includeRetweets
布尔值false包含转发推文

4. Search Twitter

4. 搜索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}'
使用多种过滤器搜索推文。
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"}'
从特定用户搜索:
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}'
通过话题标签搜索:
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

Twitter搜索参数

ParameterTypeDefaultDescription
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
booleanfalseExclude reply tweets
excludeRetweets
booleanfalseExclude retweets
minLikes
integer0Minimum likes threshold
minRetweets
integer0Minimum retweets threshold
minReplies
integer0Minimum 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
integer20Max tweets (1-100)
参数类型默认值描述
keywords
字符串-搜索关键词
fromUser
字符串-来自特定用户的推文
toUser
字符串-发给特定用户的推文
mentionUser
字符串-提及特定用户的推文
hashtag
字符串-按话题标签过滤(不含#)
excludeReplies
布尔值false排除回复推文
excludeRetweets
布尔值false排除转发推文
minLikes
整数0最低点赞数阈值
minRetweets
整数0最低转发数阈值
minReplies
整数0最低回复数阈值
sinceDate
字符串-开始日期(YYYY-MM-DD)
untilDate
字符串-结束日期(YYYY-MM-DD)
lang
字符串-语言代码(例如"en"、"zh")
product
字符串"Top""Top"或"Latest"
maxResults
整数20最大推文数量(1-100)

5. Get Follower Events

5. 获取关注者事件

Get new followers or unfollowers for a user.
bash
undefined
获取用户的新关注者或取消关注者信息。
bash
undefined

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}'
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)                       |
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}'

| 参数 | 类型 | 默认值 | 描述 |
|-------------|---------|---------|------------------------------------------|
| `username` | 字符串 | 必填 | Twitter用户名(不含@) |
| `isFollow` | 布尔值 | true | true=新关注者,false=取消关注者 |
| `maxResults` | 整数 | 20 | 最大事件数量(1-100) |

6. Get Deleted Tweets

6. 获取已删除推文

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}'
ParameterTypeDefaultDescription
username
stringrequiredTwitter username (without @)
maxResults
integer20Max tweets (1-100)
获取用户的已删除推文。
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}'
参数类型默认值描述
username
字符串必填Twitter用户名(不含@)
maxResults
整数20最大推文数量(1-100)

7. Get KOL Followers

7. 获取KOL关注者

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"}'
ParameterTypeDefaultDescription
username
stringrequiredTwitter username (without @)

获取哪些KOL(关键意见领袖)正在关注某用户。
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"}'
参数类型默认值描述
username
字符串必填Twitter用户名(不含@)

Data Structures

数据结构

Twitter User

Twitter用户

json
{
  "userId": "44196397",
  "screenName": "elonmusk",
  "name": "Elon Musk",
  "description": "...",
  "followersCount": 170000000,
  "friendsCount": 500,
  "statusesCount": 30000,
  "verified": true
}
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://..."}]
}

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

加密货币领域Twitter KOL推文

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}'
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}'
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 @ symbol