X (Twitter)
Source: https://runstack.engineer/docs/toolkits/x
Posts, users, likes, reposts, bookmarks, lists, spaces, DMs, media uploads, and analytics via the X API v2.
Tools (79):
| Tool | Description |
|---|---|
xCreatePost | Create a new post (tweet) on X: text, polls, media, quotes, replies, geo. |
xDeletePost | Delete a post owned by the authenticated user by post ID. |
xLookupPost | Look up a single post by ID with expansions and field selections. |
xLookupPosts | Look up up to 100 posts by IDs in one request. |
xRecentSearch | Search posts from the last 7 days: conversations, mentions, hashtags. |
xFullArchiveSearch | Search the full archive of public posts by query. |
xRecentCounts | Count posts from the last 7 days matching a query over time. |
xFullArchiveCounts | Count posts across the full archive matching a query over time. |
xPostAnalytics | Engagement analytics for posts over a time range: impressions, likes, replies. |
xPostUsage | X API tweet usage stats for the project: consumption, caps, daily breakdowns. |
xHideReply | Hide or unhide a reply to your own conversation (tweet.moderate.write). |
xQuotePosts | Get posts that quote a specific post. |
xStreamLabels | Stream labeling events applied to posts (compliance label stream). |
xLikePost | Like a post on behalf of the authenticated user. |
xUnlikePost | Unlike a post on behalf of the authenticated user. |
xListLikers | Get users who liked a specific post. |
xLikedPosts | Get posts liked by a user ID. |
xRetweetPost | Repost (retweet) a post on behalf of the authenticated user. |
xUnretweetPost | Undo a repost by source post ID. |
xReposters | Get users who reposted a specific post. |
xReposts | Get reposts of a specific post with post objects. |
xFollowUser | Follow a user on behalf of the authenticated user. |
xUnfollowUser | Unfollow a user on behalf of the authenticated user. |
xFollowers | Get followers of a user by user ID. |
xFollowing | Get accounts a user is following by user ID. |
xBlockedUsers | Get accounts blocked by the authenticated user. |
xMutedUsers | Get accounts muted by the authenticated user. |
xMuteUser | Mute a user on behalf of the authenticated user. |
xUnmuteUser | Unmute a user on behalf of the authenticated user. |
xGetUserById | Get a user profile by user ID. |
xLookupUserByUsername | Get a user profile by username (without @). |
xGetUsersByIds | Get up to 100 user profiles by IDs in one request. |
xLookupUsersByUsernames | Get up to 100 user profiles by usernames in one request. |
xLookupMe | Get the authenticated user profile and ID. |
xHomeTimeline | Reverse-chronological home timeline of the authenticated user. |
xGetBookmarks | Get posts bookmarked by the authenticated user. |
xAddBookmark | Add a post to the authenticated user bookmarks. |
xRemoveBookmark | Remove a post from the authenticated user bookmarks. |
xCreateList | Create a new List owned by the authenticated user. |
xGetList | Get a List by ID. |
xUpdateList | Update a List name, description, or privacy. |
xDeleteList | Delete a List owned by the authenticated user. |
xAddListMember | Add a user to a List you own. |
xRemoveListMember | Remove a user from a List you own. |
xListMembers | Get members of a List. |
xListFollowers | Get followers of a List. |
xFollowList | Follow a List on behalf of the authenticated user. |
xUnfollowList | Unfollow a List on behalf of the authenticated user. |
xPinList | Pin a List to the authenticated user profile. |
xUnpinList | Unpin a List from the authenticated user profile. |
xOwnedLists | Get Lists owned by a user. |
xFollowedLists | Get Lists followed by a user. |
xListMemberships | Get Lists a user is a member of. |
xPinnedLists | Get Lists pinned by a user. |
xListTimeline | Get the timeline of posts from a List by List ID. |
xGetSpace | Get a Space by ID. |
xGetSpacesByIds | Get up to 100 Spaces by IDs in one request. |
xSpacesByCreators | Get Spaces created by given user IDs. |
xSearchSpaces | Search live or scheduled Spaces by keyword. |
xSpaceBuyers | Get users who bought tickets for a ticketed Space. |
xSpacePosts | Get posts shared in a Space. |
xCreateDmConversation | Create a group DM conversation with an opening message. |
xSendDmToConversation | Send a message to an existing DM conversation. |
xSendDmToUser | Send a new one-to-one DM to a user by user ID. |
xDmEventsByParticipant | Get DM events for the one-to-one conversation with a user. |
xDmEventsByConversation | Get DM events for a conversation by conversation ID. |
xRecentDmEvents | Get recent DM events across all conversations (30 days). |
xGetDmEvent | Get a single DM event by event ID. |
xDeleteDm | Delete a DM event you sent by event ID. |
xInitMediaUpload | Initialize a chunked media upload session for videos, GIFs, large files. |
xAppendMediaUpload | Append a base64 media chunk to an upload session. |
xMediaUploadStatus | Poll media processing status until succeeded before posting. |
xUploadMedia | Upload a small media file in one request (base64). |
xUploadLargeMedia | Upload a large media file via initialize, append, finalize in one call. |
xCreateComplianceJob | Create a compliance job for post or user IDs. |
xGetComplianceJob | Get a compliance job by ID. |
xListComplianceJobs | List compliance jobs by type and status. |
xCreateActivitySubscription | Subscribe to X activity events: follows, profile updates, spaces, news. |
xGetOpenApiSpec | Fetch the official X API v2 OpenAPI spec summary and operations. |