Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTwitter / X Data
Twitter / X 数据
Read-only access to Twitter/X via twitterapi.io. Use these tools to look up tweets, users, followers, and social activity.
通过twitterapi.io实现对Twitter/X的只读访问。使用这些工具可以查询推文、用户、关注者以及社交动态。
Tool Decision Tree
工具决策树
"Search for tweets about a topic" →
Advanced query with operators: keywords, from:user, #hashtag, $cashtag, min_faves, date ranges.
twitter_search_tweets"Look up a specific tweet or set of tweets" →
Pass one or more tweet IDs directly.
twitter_get_tweets"Who is this Twitter account?" →
Profile data: bio, follower count, tweet count, verification.
twitter_user_info"What has this account been posting?" →
Recent tweets from a specific user.
twitter_user_tweets"Who follows this account?" →
List of followers for a user.
twitter_user_followers"Who does this account follow?" →
List of accounts a user follows.
twitter_user_followings"What are people saying in reply to this tweet?" →
Replies to a specific tweet by ID.
twitter_tweet_replies"Who retweeted this?" →
Users who retweeted a specific tweet.
twitter_tweet_retweeters"Find accounts related to a topic" →
Search users by name or keyword.
twitter_search_users"搜索关于某个主题的推文" →
支持运算符的高级查询:关键词、from:用户、#话题标签、$行情标签、min_faves(最低点赞数)、日期范围。
twitter_search_tweets"查询特定推文或一组推文" →
直接传入一个或多个推文ID。
twitter_get_tweets"这个Twitter账户是谁的?" →
资料数据:个人简介、关注者数量、推文数量、认证状态。
twitter_user_info"该账户发布过哪些内容?" →
特定用户的近期推文。
twitter_user_tweets"谁关注了这个账户?" →
该用户的关注者列表。
twitter_user_followers"这个账户关注了谁?" →
该用户关注的账户列表。
twitter_user_followings"这条推文的回复内容有哪些?" →
通过推文ID查询特定推文的回复内容。
twitter_tweet_replies"谁转发了这条推文?" →
转发了特定推文的用户列表。
twitter_tweet_retweeters"查找与某个主题相关的账户" →
通过名称或关键词搜索用户。
twitter_search_usersAvailable Tools
可用工具
| Tool | Description | Key Params |
|---|---|---|
| Advanced tweet search | |
| Get tweets by ID | |
| User profile lookup | |
| User's recent tweets | |
| User's followers | |
| User's followings | |
| Replies to a tweet | |
| Who retweeted | |
| Search for users | |
| 工具 | 描述 | 关键参数 |
|---|---|---|
| 高级推文搜索 | |
| 通过ID查询推文 | |
| 用户资料查询 | |
| 用户近期推文 | |
| 用户关注者 | |
| 用户关注的账户 | |
| 推文回复查询 | |
| 转发者查询 | |
| 用户搜索 | |
Usage Patterns
使用场景
Research an account
账户调研
- — get profile, follower count, bio
twitter_user_info - — see what they've been posting
twitter_user_tweets - — who they follow (reveals interests)
twitter_user_followings
- — 获取资料、关注者数量、个人简介
twitter_user_info - — 查看该账户发布的内容
twitter_user_tweets - — 查看其关注的账户(可了解兴趣偏好)
twitter_user_followings
Track a topic or token
追踪主题或代币
- with query like
twitter_search_tweets— find popular tweets"$SOL min_faves:50" - with the topic — find relevant accounts
twitter_search_users - Follow up with on interesting accounts
twitter_user_info
- 使用,查询语句例如
twitter_search_tweets— 查找热门推文"$SOL min_faves:50" - 使用搜索相关主题 — 查找相关账户
twitter_search_users - 对感兴趣的账户使用进一步了解
twitter_user_info
Analyze engagement on a tweet
分析推文互动情况
- — get the tweet and its metrics
twitter_get_tweets - — see the conversation
twitter_tweet_replies - — see who amplified it
twitter_tweet_retweeters
- — 获取推文及其数据指标
twitter_get_tweets - — 查看相关对话内容
twitter_tweet_replies - — 查看哪些用户进行了转发推广
twitter_tweet_retweeters
Find influencers in a space
寻找领域内的意见领袖
- with keyword (e.g. "DeFi analyst")
twitter_search_users - on top results to compare follower counts
twitter_user_info - to check content quality
twitter_user_tweets
- 使用搜索关键词(例如"DeFi分析师")
twitter_search_users - 对排名靠前的结果使用比较关注者数量
twitter_user_info - 使用检查内容质量
twitter_user_tweets
Search Query Operators
搜索查询运算符
The tool supports advanced operators:
twitter_search_tweets| Operator | Example | Description |
|---|---|---|
| keyword | | Tweets containing the word |
| exact phrase | | Exact phrase match |
| | Tweets by a specific user |
| | Tweets replying to a user |
| | Tweets with hashtag |
| | Tweets with cashtag |
| | Filter by language |
| | Tweets with images/video |
| | Tweets with URLs |
| | Only replies |
| | Minimum likes |
| | Minimum retweets |
| | Tweets after date |
| | Tweets before date |
Combine operators:
from:VitalikButerin $ETH min_faves:100 since:2024-01-01twitter_search_tweets| 运算符 | 示例 | 描述 |
|---|---|---|
| 关键词 | | 包含该关键词的推文 |
| 精确短语 | | 精确匹配该短语的推文 |
| | 特定用户发布的推文 |
| | 回复特定用户的推文 |
| | 包含该话题标签的推文 |
| | 包含该行情标签的推文 |
| | 按语言筛选推文 |
| | 包含图片/视频的推文 |
| | 包含链接的推文 |
| | 仅显示回复内容 |
| | 最低点赞数筛选 |
| | 最低转发数筛选 |
| | 筛选指定日期之后的推文 |
| | 筛选指定日期之前的推文 |
组合运算符示例:
from:VitalikButerin $ETH min_faves:100 since:2024-01-01Pagination
分页
Most endpoints support cursor-based pagination. When a response includes a cursor value, pass it as the parameter to get the next page. If no cursor is returned, you've reached the end.
cursor大多数接口支持基于游标(cursor)的分页。当响应中包含游标值时,将其作为参数传入即可获取下一页数据。如果没有返回游标,则表示已到达最后一页。
cursorNotes
注意事项
- API key required: Set environment variable. Tools will error without it.
TWITTER_API_KEY - Read-only: These tools only retrieve data. No posting, liking, or following.
- Usernames: Always pass without the prefix (e.g.
@not"elonmusk")."@elonmusk" - Tweet IDs: Use string format for tweet IDs to avoid integer overflow issues.
- Rate limits: The API has rate limits. If you get rate-limited, wait before retrying.
- 需要API密钥:设置环境变量。如果没有该密钥,工具将报错。
TWITTER_API_KEY - 只读权限:这些工具仅用于获取数据,不支持发布、点赞或关注操作。
- 用户名:传入时请勿添加前缀(例如:
@而非"elonmusk")。"@elonmusk" - 推文ID:请使用字符串格式传入推文ID,以避免整数溢出问题。
- 速率限制:该API存在速率限制。如果被限制,请等待后再重试。