PURPOSE: 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"
ConnectorAPI key