agentbox-twitter
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTwitter Research
Twitter/X 研究
Paid Twitter/X data API at . Costs $0.003 USDC per call via x402 on Solana. Use the tool for all requests.
https://twitter.x402.agentbox.fyix_payment付费Twitter/X数据API地址为。通过Solana上的x402进行调用,每次费用为0.003 USDC。所有请求请使用工具。
https://twitter.x402.agentbox.fyix_paymentEndpoints
端点
Search Tweets
搜索推文
Find tweets matching a query with 50+ advanced operators.
x_payment({
"url": "https://twitter.x402.agentbox.fyi/search",
"method": "GET",
"params": "{\"q\": \"from:elonmusk AI\", \"type\": \"Latest\", \"limit\": 20}"
})Parameters:
| Param | Type | Default | Description |
|---|---|---|---|
| q | string | required | Search query with operators |
| type | "Latest" or "Top" | Latest | Sort by recency or popularity |
| limit | 1-200 | 20 | Max tweets to return |
| cursor | string | - | Pagination cursor from previous response |
Search operators:
| Operator | Example | Description |
|---|---|---|
| from:user | | Tweets by user |
| to:user | | Replies to user |
| @user | | Mentioning user |
| min_faves:N | | Minimum likes |
| min_retweets:N | | Minimum retweets |
| min_replies:N | | Minimum replies |
| filter:media | | Has media |
| filter:images | | Has images |
| filter:videos | | Has video |
| filter:links | | Has links |
| filter:replies | | Only replies |
| -filter:replies | | Exclude replies |
| since:date | | After date |
| until:date | | Before date |
| within_time:Nh | | Last N hours |
| lang:code | | Language filter |
| conversation_id:ID | | In conversation |
| filter:self_threads | | User's thread replies |
Combine operators:
from:elonmusk AI min_faves:100 -filter:replies within_time:7dResponse:
{ query, tweets[], count, hasMore, nextCursor, summary }The object includes: , , , , , .
summarytotalLikestotalRetweetstotalRepliesavgLikesmaxLikestopTweetId使用50+高级运算符查找匹配查询条件的推文。
x_payment({
"url": "https://twitter.x402.agentbox.fyi/search",
"method": "GET",
"params": "{\"q\": \"from:elonmusk AI\", \"type\": \"Latest\", \"limit\": 20}"
})参数:
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| q | string | 必填 | 带运算符的搜索查询 |
| type | "Latest" 或 "Top" | Latest | 按时效性或热度排序 |
| limit | 1-200 | 20 | 返回的最大推文数量 |
| cursor | string | - | 来自上一次响应的分页游标 |
搜索运算符:
| 运算符 | 示例 | 描述 |
|---|---|---|
| from:user | | 用户发布的推文 |
| to:user | | 回复给该用户的推文 |
| @user | | 提及该用户的推文 |
| min_faves:N | | 最低点赞数 |
| min_retweets:N | | 最低转发数 |
| min_replies:N | | 最低回复数 |
| filter:media | | 包含媒体内容 |
| filter:images | | 包含图片 |
| filter:videos | | 包含视频 |
| filter:links | | 包含链接 |
| filter:replies | | 仅显示回复 |
| -filter:replies | | 排除回复 |
| since:date | | 指定日期之后发布的推文 |
| until:date | | 指定日期之前发布的推文 |
| within_time:Nh | | 最近N小时内发布的推文 |
| lang:code | | 按语言筛选 |
| conversation_id:ID | | 属于指定对话的推文 |
| filter:self_threads | | 用户发布的线程回复 |
组合运算符示例:
from:elonmusk AI min_faves:100 -filter:replies within_time:7d响应:
{ query, tweets[], count, hasMore, nextCursor, summary }summarytotalLikestotalRetweetstotalRepliesavgLikesmaxLikestopTweetIdFetch Tweets
获取推文
Get tweet(s) by ID or URL with optional thread, replies, and quotes.
x_payment({
"url": "https://twitter.x402.agentbox.fyi/tweet/1585841080431321088",
"method": "GET",
"params": "{\"include\": \"thread,replies\", \"limit\": 50}"
})URL format: where ref is:
/tweet/{ref}- Tweet ID:
1585841080431321088 - Comma-separated IDs: (batch fetch, no includes)
123,456,789
Parameters:
| Param | Type | Default | Description |
|---|---|---|---|
| include | string | - | Comma-separated: |
| limit | 1-200 | 50 | Max replies/quotes to return |
Include options (single tweet only):
- - author's self-reply chain in the conversation
thread - - replies from other users
replies - - quote tweets of this tweet
quotes
Response:
{ tweets[], count, parent?, thread?, replies?, quotes? }If the fetched tweet is a reply, is auto-included with the replied-to tweet.
parent通过ID或URL获取推文,可选择包含线程、回复和引用内容。
x_payment({
"url": "https://twitter.x402.agentbox.fyi/tweet/1585841080431321088",
"method": "GET",
"params": "{\"include\": \"thread,replies\", \"limit\": 50}"
})URL格式: 其中ref可以是:
/tweet/{ref}- 推文ID:
1585841080431321088 - 逗号分隔的多个ID:(批量获取,不支持包含额外内容)
123,456,789
参数:
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| include | string | - | 逗号分隔的选项: |
| limit | 1-200 | 50 | 返回的最大回复/引用数量 |
包含选项(仅单条推文支持):
- - 作者在对话中的自回复链
thread - - 其他用户的回复
replies - - 引用该推文的推文
quotes
响应:
{ tweets[], count, parent?, thread?, replies?, quotes? }如果获取的推文是回复内容,会自动包含被回复的推文。
parentFetch Users
获取用户资料
Get user profile(s) with optional tweets, followers, or following.
x_payment({
"url": "https://twitter.x402.agentbox.fyi/user/elonmusk",
"method": "GET",
"params": "{\"include\": \"tweets\", \"limit\": 20}"
})URL format: where ref is:
/user/{ref}- Username: or
elonmusk@elonmusk - User ID:
44196397 - Comma-separated IDs: (batch fetch, no includes)
123,456
Parameters:
| Param | Type | Default | Description |
|---|---|---|---|
| include | string | - | Comma-separated: |
| limit | 1-200 | 50 | Max tweets/followers/following to return |
| include_replies | boolean | false | Include replies in user's tweets |
Response (single):
Response (batch):
{ user, tweets?, followers?, following? }{ users[], count, hasMore }获取用户资料,可选择包含推文、关注者或关注对象。
x_payment({
"url": "https://twitter.x402.agentbox.fyi/user/elonmusk",
"method": "GET",
"params": "{\"include\": \"tweets\", \"limit\": 20}"
})URL格式: 其中ref可以是:
/user/{ref}- 用户名:或
elonmusk@elonmusk - 用户ID:
44196397 - 逗号分隔的多个ID:(批量获取,不支持包含额外内容)
123,456
参数:
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| include | string | - | 逗号分隔的选项: |
| limit | 1-200 | 50 | 返回的最大推文/关注者/关注对象数量 |
| include_replies | boolean | false | 在用户推文中包含回复内容 |
响应(单用户):
响应(批量):
{ user, tweets?, followers?, following? }{ users[], count, hasMore }Usage Patterns
使用模式
Monitor a topic
监控话题
x_payment({
"url": "https://twitter.x402.agentbox.fyi/search",
"method": "GET",
"params": "{\"q\": \"x402 OR \\\"402 payment\\\" min_faves:5 within_time:24h\", \"type\": \"Latest\"}"
})x_payment({
"url": "https://twitter.x402.agentbox.fyi/search",
"method": "GET",
"params": "{\"q\": \"x402 OR \\\"402 payment\\\" min_faves:5 within_time:24h\", \"type\": \"Latest\"}"
})Get a tweet with full context
获取带完整上下文的推文
x_payment({
"url": "https://twitter.x402.agentbox.fyi/tweet/1585841080431321088",
"method": "GET",
"params": "{\"include\": \"thread,replies,quotes\", \"limit\": 20}"
})x_payment({
"url": "https://twitter.x402.agentbox.fyi/tweet/1585841080431321088",
"method": "GET",
"params": "{\"include\": \"thread,replies,quotes\", \"limit\": 20}"
})Research a user
研究用户
x_payment({
"url": "https://twitter.x402.agentbox.fyi/user/CoinbaseDev",
"method": "GET",
"params": "{\"include\": \"tweets\", \"limit\": 50}"
})x_payment({
"url": "https://twitter.x402.agentbox.fyi/user/CoinbaseDev",
"method": "GET",
"params": "{\"include\": \"tweets\", \"limit\": 50}"
})Paginate results
分页获取结果
Use from a previous response:
nextCursorx_payment({
"url": "https://twitter.x402.agentbox.fyi/search",
"method": "GET",
"params": "{\"q\": \"from:elonmusk\", \"cursor\": \"DAABCgAB...\"}"
})使用上一次响应中的:
nextCursorx_payment({
"url": "https://twitter.x402.agentbox.fyi/search",
"method": "GET",
"params": "{\"q\": \"from:elonmusk\", \"cursor\": \"DAABCgAB...\"}"
})Cost
费用
Every call costs $0.003 USDC on Solana mainnet. Each paginated request is a separate call. Plan queries to minimize calls - use specific operators and reasonable limits.
每次调用在Solana主网需支付0.003 USDC。每个分页请求视为单独调用。请合理规划查询,以减少调用次数——使用具体的运算符和合理的数量限制。
Errors
错误说明
| HTTP | Meaning |
|---|---|
| 400 | Invalid parameters (check query syntax) |
| 402 | Payment required (handled automatically by x_payment) |
| 404 | Tweet or user not found |
| 502 | Upstream API error |
| HTTP状态码 | 含义 |
|---|---|
| 400 | 参数无效(检查查询语法) |
| 402 | 需要支付(由x_payment工具自动处理) |
| 404 | 推文或用户不存在 |
| 502 | 上游API错误 |