Twitter / X integration
Social media platform API for posting, reading, and managing Twitter/X content. Post tweets, read timelines, manage followers, search for content, and access user data. Essential for building social media management tools, content automation, and analytics applications.
Say what should happen.
The workflow builds itself.
Common Twitter / X use cases
- Native video posts
- Cleanup
- Automation
- Media automation
- Engagement
- Content sharing
- Follow management
- Profile retrieval
- Account info
- User lookup
What you can do with Twitter / X
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Tweet, 8 operations
create_tweetCreate tweetPOSTCreates and posts a new tweet.delete_tweetDelete tweetDELETEDeletes a tweet by ID.get_liked_tweetsGet liked tweetsGETRetrieves a list of tweets that have been liked by a specified user.get_tweetGet tweetGETRetrieves a single tweet by ID.get_tweetsGet tweetsGETRetrieves multiple tweets by IDs.get_user_mentionsGet user mentionsGETRetrieves tweets mentioning a user.get_user_timelineGet user timelineGETRetrieves tweets posted by a user.search_recent_tweetsSearch recent tweetsGETSearches tweets from the last 7 days.
User, 6 operations
get_followersGet followersGETRetrieves a user's followers.get_followingGet followingGETRetrieves users that a user follows.get_meGet meGETRetrieves the authenticated user's profile.get_userGet userGETRetrieves user profile by ID.get_user_by_usernameGet user by usernameGETRetrieves user profile by username.get_users_by_usernamesGet users by usernamesGETLooks up multiple users by their usernames.
Media, 4 operations
append_media_uploadAppend media uploadPOSTUploads the media file bytes into an open upload session (step 2 of the native media chain).finalize_media_uploadFinalize media uploadPOSTFinalizes a chunked media upload (step 3 of the native media chain).get_media_upload_statusGet media upload statusGETChecks video processing status of an uploaded media (step 4 of the native media chain).init_media_uploadInit media uploadPOSTInitializes a chunked media upload session (step 1 of the native media chain).
Bookmark, 3 operations
add_bookmarkAdd bookmarkPOSTAdds a tweet to the authenticated user's private bookmarks collection.get_bookmarksGet bookmarksGETRetrieves tweets that have been bookmarked by the authenticated user.remove_bookmarkRemove bookmarkDELETERemoves a tweet from the authenticated user's bookmarks collection.
Follow, 2 operations
follow_userFollow userPOSTFollows a user.unfollow_userUnfollow userDELETEUnfollows a user.
Like, 2 operations
like_tweetLike tweetPOSTLikes a tweet.unlike_tweetUnlike tweetDELETEUnlikes a tweet.
Retweet, 2 operations
retweetRetweetPOSTRetweets a tweet.undo_retweetUndo retweetDELETERemoves a retweet.
Dm, 1 operation
send_dmSend dmPOSTSends a private direct message to another Twitter user.
Dm event, 1 operation
get_dm_eventsGet dm eventsGETRetrieves direct message events for the authenticated user.
OAuth scopes Twitter / X requires
Each operation declares the scopes Twitter / X requires for it.
media.writeneeded by append_media_upload, finalize_media_upload, get_media_upload_status and 1 more
Twitter / X API rate limits
- 300 requests per minute
Varies by endpoint and access level. Post creation: 200 per 15 min (user). Search: 450 per 15 min (app), 180 per 15 min (user). User lookup: 300 per 15 min (app). Timeline: 1500 per 15 min (app). See https://docs.x.com/x-api/rate-limits for details.
These are the limits Twitter / X documents, not ones LiveContext measured. They can change and often depend on your plan, so check the Twitter / X documentation for current values.
Use Twitter / X from Claude Code, Cursor or Codex
Connect Twitter / X in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Twitter / X operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Twitter / X
- Create your workspace
Sign up free. Nothing to install.
- Connect Twitter / X once
Add your Twitter / X connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Twitter / X integration FAQ
What can you do with the Twitter / X integration?
LiveContext exposes 29 operations on Twitter / X, covering tweet, user, media and bookmark. Common uses include Native video posts, Cleanup and Automation.
Which OAuth scopes does Twitter / X require?
The operations that declare a scope all need media.write.
What are the Twitter / X API rate limits?
Twitter / X documents 300 requests per minute. Varies by endpoint and access level. Post creation: 200 per 15 min (user). Search: 450 per 15 min (app), 180 per 15 min (user). User lookup: 300 per 15 min (app). Timeline: 1500 per 15 min (app). See https://docs.x.com/x-api/rate-limits for details. Limits are set by Twitter / X and can depend on your plan.
