Overview
X (Twitter) tools allow you to interact with the X platform API to post tweets, retrieve user profiles, search for tweets, and get specific tweet information. These tools provide comprehensive social media integration capabilities.Key Features
X_POST: Post tweets to your X accountX_GET_USER_PROFILE: Retrieve user profile informationX_SEARCH_TWEETS: Search for tweets using queriesX_GET_TWEETS: Get specific tweets by ID or criteria
Authentication
To use the X API, you need to create a developer account on the X Developer Platform and generate your API keys.X_POSTuses OAuth 1.0a user-context credentials (config):consumer_key,consumer_secret,access_token,access_token_secretX_GET_USER_PROFILE,X_SEARCH_TWEETS, andX_GET_TWEETSuse an app-only OAuth 2.0 Bearer token (config):bearer_token
Tools
X_POST
Post tweets to your X account. Input:
Output:
X_GET_USER_PROFILE
Retrieve user profile information from X. Input:username(string, required): Username to lookup (without @)
user object with id, username, name, and (when available) description, location, url, verified, followers_count, following_count, tweet_count, created_at, and profile_image_url.
X_SEARCH_TWEETS
Search for tweets using specific queries. Input:
Output:
A
tweets array. Each tweet has id, text, created_at, author, and optional public_metrics (retweet_count, like_count, reply_count) and entities (hashtags, mentions, urls).
X_GET_TWEETS
Retrieve recent tweets from a user’s timeline. Input:
Output:
A
tweets array. Each tweet has id, text, created_at, author (username, name), and optional public_metrics (retweet_count, like_count, reply_count).
Examples
Example: Post a Tweet
Example: Get User Profile
Example: Search Tweets
Example: Get a User’s Tweets
Use Cases
- Social media automation and scheduling
- Social listening and brand monitoring
- Customer engagement and support
- Content amplification and marketing
- Real-time trend analysis
- Community management