Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTwitter/X Data Skill
Twitter/X 数据技能
Query Twitter/X data from the 6551 platform REST API. All endpoints require a Bearer token via .
$TWITTER_TOKENGet your token: https://6551.io/mcp
Base URL:
https://ai.6551.io从6551平台REST API查询Twitter/X数据。所有接口都需要通过提供Bearer令牌。
$TWITTER_TOKEN获取令牌:https://6551.io/mcp
基础URL:
https://ai.6551.ioAuthentication
身份验证
All requests require the header:
Authorization: Bearer $TWITTER_TOKEN所有请求都需要添加以下请求头:
Authorization: Bearer $TWITTER_TOKENTwitter 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"}'| Parameter | Type | Default | Description |
|---|---|---|---|
| string | required | Twitter username (without @) |
| integer | 20 | Max tweets (1-100) |
| string | "Latest" | "Latest" or "Top" |
| boolean | false | Include reply tweets |
| boolean | false | Include 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"}'| 参数名 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 字符串 | 必填 | Twitter用户名(不含@符号) |
| 整数 | 20 | 最大返回推文数(1-100) |
| 字符串 | "Latest" | 可选"Latest"或"Top" |
| 布尔值 | false | 是否包含回复推文 |
| 布尔值 | 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搜索参数
| Parameter | Type | Default | Description |
|---|---|---|---|
| string | - | Search keywords |
| string | - | Tweets from specific user |
| string | - | Tweets to specific user |
| string | - | Tweets mentioning user |
| string | - | Filter by hashtag (without #) |
| boolean | false | Exclude reply tweets |
| boolean | false | Exclude retweets |
| integer | 0 | Minimum likes threshold |
| integer | 0 | Minimum retweets threshold |
| integer | 0 | Minimum replies threshold |
| string | - | Start date (YYYY-MM-DD) |
| string | - | End date (YYYY-MM-DD) |
| string | - | Language code (e.g. "en", "zh") |
| string | "Top" | "Top" or "Latest" |
| integer | 20 | Max tweets (1-100) |
| 参数名 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 字符串 | - | 搜索关键词 |
| 字符串 | - | 特定用户发布的推文 |
| 字符串 | - | 提及特定用户的推文 |
| 字符串 | - | 包含特定用户提及的推文 |
| 字符串 | - | 按话题标签筛选(不含#符号) |
| 布尔值 | false | 排除回复推文 |
| 布尔值 | false | 排除转发推文 |
| 整数 | 0 | 最低点赞数阈值 |
| 整数 | 0 | 最低转发数阈值 |
| 整数 | 0 | 最低回复数阈值 |
| 字符串 | - | 开始日期(格式:YYYY-MM-DD) |
| 字符串 | - | 结束日期(格式:YYYY-MM-DD) |
| 字符串 | - | 语言代码(例如"en"、"zh") |
| 字符串 | "Top" | 可选"Top"或"Latest" |
| 整数 | 20 | 最大返回推文数(1-100) |
5. Get Follower Events
5. 获取关注者事件
Get new followers or unfollowers for a user.
bash
undefined获取用户的新增关注者或取关用户信息。
bash
undefinedGet 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}'
-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}'
-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}'
-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}'
-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}'| Parameter | Type | Default | Description |
|---|---|---|---|
| string | required | Twitter username (without @) |
| integer | 20 | Max 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}'| 参数名 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 字符串 | 必填 | Twitter用户名(不含@符号) |
| 整数 | 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"}'| Parameter | Type | Default | Description |
|---|---|---|---|
| string | required | Twitter 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"}'| 参数名 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 字符串 | 必填 | 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
- 前往https://6551.io/mcp获取API令牌
- 存在调用频率限制;每次请求最多返回100条结果
- Twitter用户名不应包含@符号