agentbox-twitter
Original:🇺🇸 English
Translated
Twitter/X research via paid API: search tweets with 50+ operators, fetch tweets with threads/replies/quotes, get user profiles with tweets/followers/following. Uses x_payment tool for automatic USDC micropayments ($0.003/call). Use when: (1) searching tweets by keyword, user, or advanced operators, (2) fetching specific tweets by ID/URL with context, (3) looking up user profiles and their activity.
3installs
Added on
NPX Install
npx skill4agent add cascade-protocol/agentbox agentbox-twitterTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Twitter Research
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_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: , , , , , .
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.
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 }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\"}"
})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}"
})Research a user
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...\"}"
})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.
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 |