Twitter/X Search
twitterPURPOSE: Direct Twitter/X access — raw operations on a specific account, tweet, search, list, or community.
COVERS (by action): tweet search & user search; a named user's profile / tweets / timeline / mentions; followers, followings & follow checks; a tweet's replies / thread / quotes / retweeters; trends; community & list timelines; spaces; long-form articles.
BOUNDARIES:
Use twitter for RAW ops on a NAMED account or a specific tweet. For "what are KOLs calling / 喊单" use signal(kol_call); for general crypto/news tweet CONTENT use news(sources=["twitter"]).
USAGE — pick an action and supply its required params:
search: query (+ optional query_type, cursor, time_range)
user_info / user_about: user_name
batch_user_info: user_ids (comma-separated)
search_users: query
user_tweets: user_name or user_id (+ optional include_replies, cursor)
user_timeline: user_id (+ optional cursor)
user_mentions: user_name (+ optional cursor)
followers / followings: user_name (+ optional cursor)
verified_followers: user_id (+ optional cursor)
check_follow: user_name + target_user_name
tweets_by_ids: tweet_ids (comma-separated)
tweet_replies / tweet_replies_v2 / tweet_thread / tweet_quotes / tweet_retweeters: tweet_id (+ optional cursor)
trends: woeid (default 1 = worldwide)
community_tweets: community_id (+ optional cursor)
article: tweet_id
space_detail: space_id
list_tweets / list_timeline: list_id (+ optional cursor)
RETURNS: the raw twitterapi.io payload for the chosen action (tweets / users / relationships / trends), paginated via next_cursor.
EXAMPLES:
"搜 BTC 相关推文" → action="search", query="BTC"
"Elon Musk 账号信息" → action="user_info", user_name="elonmusk"
"V神最近发了什么" → action="user_tweets", user_name="VitalikButerin"
"这条推文的回复" → action="tweet_replies", tweet_id="..."
"全球趋势" → action="trends"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Local records per business list (default 20 and max 20). Does not change upstream page size. Omitted records from a shortened page are not recoverable through the next upstream cursor. | |
| query | No | Search query string. Required for: search\, search_users. Supports Twitter advanced search operators. Up to 500 runes; longer queries silently truncated. | |
| woeid | No | Yahoo WOEID for trends location (1=Worldwide\, 23424977=US). Default 1. | |
| action | Yes | Which Twitter operation to perform: search | user_info | user_about | batch_user_info | search_users | user_tweets | user_timeline | user_mentions | followers | followings | verified_followers | check_follow | tweets_by_ids | tweet_replies | tweet_replies_v2 | tweet_thread | tweet_quotes | tweet_retweeters | trends | community_tweets | article | space_detail | list_tweets | list_timeline | |
| cursor | No | Pagination cursor from previous response's next_cursor field. | |
| list_id | No | Twitter List ID. Required for: list_tweets\, list_timeline. | |
| user_id | No | Numeric Twitter user ID. Required for: user_timeline\, verified_followers. Also accepted by user_tweets as alternative to user_name. | |
| space_id | No | Twitter Space ID. Required for: space_detail. | |
| tweet_id | No | Single tweet ID. Required for: tweet_replies\, tweet_replies_v2\, tweet_thread\, tweet_quotes\, tweet_retweeters\, article. | |
| user_ids | No | Comma-separated numeric user IDs. Required for: batch_user_info. | |
| tweet_ids | No | Comma-separated tweet IDs. Required for: tweets_by_ids. | |
| user_name | No | Twitter handle (without @). Required for: user_info\, user_about\, user_tweets\, user_mentions\, followers\, followings\, check_follow. | |
| verbosity | No | Per logical prose field: concise 200 Unicode characters | standard 600 (default) | detail 2000. Includes nested text; detail remains capped. Independent of record limit. | |
| query_type | No | Search result ordering: Latest (default) | Top. Only for: search. | |
| time_range | No | Explicit caller-requested recency window\, written as <number><unit> where unit is h|d|w|m|y — e.g. 1h\, 4h\, 1d\, 1w\, 1m\, 6m\, 1y. Supply this field when a time constraint is required; the server does not infer a window from query text. Only for: search. | |
| community_id | No | Twitter Community ID. Required for: community_tweets. | |
| include_replies | No | Include reply tweets in results. For: user_tweets. | |
| target_user_name | No | Second user handle for relationship check. Required for: check_follow. |