twitter

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令牌。
获取令牌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