AACFlow

X

Interact with X

Usage Instructions

Integrate X into the workflow. Search tweets, manage bookmarks, follow/block/mute users, like and retweet, view trends, and more.

Tools

x_create_tweet

Input

ParameterTypeRequiredDescription
textstringYesNo description
replyToTweetIdstringNoNo description
quoteTweetIdstringNoNo description
mediaIdsstringNoNo description
replySettingsstringNoWho can reply: "mentionedUsers", "following", "subscribers", or "verified"

Output

ParameterTypeDescription
idstringThe ID of the created tweet
textstringThe text of the created tweet

x_delete_tweet

Input

ParameterTypeRequiredDescription
tweetIdstringYesNo description

Output

ParameterTypeDescription
deletedbooleanWhether the tweet was successfully deleted

x_search_tweets

Input

ParameterTypeRequiredDescription
querystringYesSearch query (supports operators like "from:", "to:", "#hashtag", "has:images", "is:retweet", "lang:")
maxResultsnumberNoNo description
startTimestringNoNo description
endTimestringNoNo description
sinceIdstringNoNo description
untilIdstringNoNo description
sortOrderstringNoSort order: "recency" or "relevancy"
nextTokenstringNoNo description

Output

ParameterTypeDescription
tweetsarrayArray of tweets matching the search query
idstringTweet ID
textstringTweet text content
createdAtstringTweet creation timestamp
authorIdstringAuthor user ID
conversationIdstringConversation thread ID
inReplyToUserIdstringUser ID being replied to
publicMetricsobjectEngagement metrics
retweetCountnumberNumber of retweets
replyCountnumberNumber of replies
likeCountnumberNumber of likes
quoteCountnumberNumber of quotes
includesobjectAdditional data including user profiles
usersarrayArray of user objects referenced in tweets
idstringUser ID
usernamestringUsername without @ symbol
namestringDisplay name
descriptionstringUser bio
profileImageUrlstringProfile image URL
verifiedbooleanWhether the user is verified
metricsobjectUser statistics
followersCountnumberNumber of followers
followingCountnumberNumber of users following
tweetCountnumberTotal number of tweets
metaobjectSearch metadata including result count and pagination tokens
resultCountnumberNumber of results returned
newestIdstringID of the newest tweet
oldestIdstringID of the oldest tweet
nextTokenstringPagination token for next page

x_get_tweets_by_ids

Input

ParameterTypeRequiredDescription
idsstringYesNo description

Output

ParameterTypeDescription
tweetsarrayArray of tweets matching the provided IDs
idstringTweet ID
textstringTweet text content
createdAtstringTweet creation timestamp
authorIdstringAuthor user ID
conversationIdstringConversation thread ID
inReplyToUserIdstringUser ID being replied to
publicMetricsobjectEngagement metrics
retweetCountnumberNumber of retweets
replyCountnumberNumber of replies
likeCountnumberNumber of likes
quoteCountnumberNumber of quotes
includesobjectAdditional data including user profiles
usersarrayArray of user objects referenced in tweets
idstringUser ID
usernamestringUsername without @ symbol
namestringDisplay name
descriptionstringUser bio
profileImageUrlstringProfile image URL
verifiedbooleanWhether the user is verified
metricsobjectUser statistics
followersCountnumberNumber of followers
followingCountnumberNumber of users following
tweetCountnumberTotal number of tweets

x_get_quote_tweets

Input

ParameterTypeRequiredDescription
tweetIdstringYesNo description
maxResultsnumberNoNo description
paginationTokenstringNoNo description

Output

ParameterTypeDescription
tweetsarrayArray of quote tweets
idstringTweet ID
textstringTweet text content
createdAtstringTweet creation timestamp
authorIdstringAuthor user ID
conversationIdstringConversation thread ID
inReplyToUserIdstringUser ID being replied to
publicMetricsobjectEngagement metrics
retweetCountnumberNumber of retweets
replyCountnumberNumber of replies
likeCountnumberNumber of likes
quoteCountnumberNumber of quotes
metaobjectPagination metadata
resultCountnumberNumber of results returned
nextTokenstringToken for next page

x_hide_reply

Input

ParameterTypeRequiredDescription
tweetIdstringYesNo description
hiddenbooleanYesNo description

Output

ParameterTypeDescription
hiddenbooleanWhether the reply is now hidden

x_get_user_tweets

Input

ParameterTypeRequiredDescription
userIdstringYesNo description
maxResultsnumberNoNo description
paginationTokenstringNoNo description
startTimestringNoNo description
endTimestringNoNo description
sinceIdstringNoNo description
untilIdstringNoNo description
excludestringNoComma-separated types to exclude: "retweets", "replies"

Output

ParameterTypeDescription
tweetsarrayArray of tweets by the user
idstringTweet ID
textstringTweet text content
createdAtstringTweet creation timestamp
authorIdstringAuthor user ID
conversationIdstringConversation thread ID
inReplyToUserIdstringUser ID being replied to
publicMetricsobjectEngagement metrics
retweetCountnumberNumber of retweets
replyCountnumberNumber of replies
likeCountnumberNumber of likes
quoteCountnumberNumber of quotes
includesobjectAdditional data including user profiles
usersarrayArray of user objects referenced in tweets
idstringUser ID
usernamestringUsername without @ symbol
namestringDisplay name
descriptionstringUser bio
profileImageUrlstringProfile image URL
verifiedbooleanWhether the user is verified
metricsobjectUser statistics
followersCountnumberNumber of followers
followingCountnumberNumber of users following
tweetCountnumberTotal number of tweets
metaobjectPagination metadata
resultCountnumberNumber of results returned
newestIdstringID of the newest tweet
oldestIdstringID of the oldest tweet
nextTokenstringToken for next page
previousTokenstringToken for previous page

x_get_user_mentions

Input

ParameterTypeRequiredDescription
userIdstringYesNo description
maxResultsnumberNoNo description
paginationTokenstringNoNo description
startTimestringNoNo description
endTimestringNoNo description
sinceIdstringNoNo description
untilIdstringNoNo description

Output

ParameterTypeDescription
tweetsarrayArray of tweets mentioning the user
idstringTweet ID
textstringTweet text content
createdAtstringTweet creation timestamp
authorIdstringAuthor user ID
conversationIdstringConversation thread ID
inReplyToUserIdstringUser ID being replied to
publicMetricsobjectEngagement metrics
retweetCountnumberNumber of retweets
replyCountnumberNumber of replies
likeCountnumberNumber of likes
quoteCountnumberNumber of quotes
includesobjectAdditional data including user profiles
usersarrayArray of user objects referenced in tweets
idstringUser ID
usernamestringUsername without @ symbol
namestringDisplay name
descriptionstringUser bio
profileImageUrlstringProfile image URL
verifiedbooleanWhether the user is verified
metricsobjectUser statistics
followersCountnumberNumber of followers
followingCountnumberNumber of users following
tweetCountnumberTotal number of tweets
metaobjectPagination metadata
resultCountnumberNumber of results returned
newestIdstringID of the newest tweet
oldestIdstringID of the oldest tweet
nextTokenstringToken for next page
previousTokenstringToken for previous page

x_get_user_timeline

Input

ParameterTypeRequiredDescription
userIdstringYesNo description
maxResultsnumberNoNo description
paginationTokenstringNoNo description
startTimestringNoNo description
endTimestringNoNo description
sinceIdstringNoNo description
untilIdstringNoNo description
excludestringNoComma-separated types to exclude: "retweets", "replies"

Output

ParameterTypeDescription
tweetsarrayArray of timeline tweets
idstringTweet ID
textstringTweet text content
createdAtstringTweet creation timestamp
authorIdstringAuthor user ID
conversationIdstringConversation thread ID
inReplyToUserIdstringUser ID being replied to
publicMetricsobjectEngagement metrics
retweetCountnumberNumber of retweets
replyCountnumberNumber of replies
likeCountnumberNumber of likes
quoteCountnumberNumber of quotes
includesobjectAdditional data including user profiles
usersarrayArray of user objects referenced in tweets
idstringUser ID
usernamestringUsername without @ symbol
namestringDisplay name
descriptionstringUser bio
profileImageUrlstringProfile image URL
verifiedbooleanWhether the user is verified
metricsobjectUser statistics
followersCountnumberNumber of followers
followingCountnumberNumber of users following
tweetCountnumberTotal number of tweets
metaobjectPagination metadata
resultCountnumberNumber of results returned
newestIdstringID of the newest tweet
oldestIdstringID of the oldest tweet
nextTokenstringToken for next page
previousTokenstringToken for previous page

x_manage_like

Input

ParameterTypeRequiredDescription
userIdstringYesNo description
tweetIdstringYesNo description
actionstringYesAction to perform: "like" or "unlike"

Output

ParameterTypeDescription
likedbooleanWhether the tweet is now liked

x_manage_retweet

Input

ParameterTypeRequiredDescription
userIdstringYesNo description
tweetIdstringYesNo description
actionstringYesAction to perform: "retweet" or "unretweet"

Output

ParameterTypeDescription
retweetedbooleanWhether the tweet is now retweeted

x_get_liked_tweets

Input

ParameterTypeRequiredDescription
userIdstringYesNo description
maxResultsnumberNoNo description
paginationTokenstringNoNo description

Output

ParameterTypeDescription
tweetsarrayArray of liked tweets
idstringTweet ID
textstringTweet content
createdAtstringCreation timestamp
authorIdstringAuthor user ID
metaobjectPagination metadata
resultCountnumberNumber of results returned
nextTokenstringToken for next page

x_get_liking_users

Input

ParameterTypeRequiredDescription
tweetIdstringYesNo description
maxResultsnumberNoNo description
paginationTokenstringNoNo description

Output

ParameterTypeDescription
usersarrayArray of users who liked the tweet
idstringUser ID
usernamestringUsername without @ symbol
namestringDisplay name
descriptionstringUser bio
profileImageUrlstringProfile image URL
verifiedbooleanWhether the user is verified
metricsobjectUser statistics
followersCountnumberNumber of followers
followingCountnumberNumber of users following
tweetCountnumberTotal number of tweets
metaobjectPagination metadata
resultCountnumberNumber of results returned
nextTokenstringToken for next page

x_get_retweeted_by

Input

ParameterTypeRequiredDescription
tweetIdstringYesNo description
maxResultsnumberNoNo description
paginationTokenstringNoNo description

Output

ParameterTypeDescription
usersarrayArray of users who retweeted the tweet
idstringUser ID
usernamestringUsername without @ symbol
namestringDisplay name
descriptionstringUser bio
profileImageUrlstringProfile image URL
verifiedbooleanWhether the user is verified
metricsobjectUser statistics
followersCountnumberNumber of followers
followingCountnumberNumber of users following
tweetCountnumberTotal number of tweets
metaobjectMetadata
resultCountnumberNumber of results returned
nextTokenstringToken for next page

x_get_bookmarks

Input

ParameterTypeRequiredDescription
userIdstringYesNo description
maxResultsnumberNoNo description
paginationTokenstringNoNo description

Output

ParameterTypeDescription
tweetsarrayArray of bookmarked tweets
idstringTweet ID
textstringTweet text content
createdAtstringTweet creation timestamp
authorIdstringAuthor user ID
conversationIdstringConversation thread ID
inReplyToUserIdstringUser ID being replied to
publicMetricsobjectEngagement metrics
retweetCountnumberNumber of retweets
replyCountnumberNumber of replies
likeCountnumberNumber of likes
quoteCountnumberNumber of quotes
includesobjectAdditional data including user profiles
usersarrayArray of user objects referenced in tweets
idstringUser ID
usernamestringUsername without @ symbol
namestringDisplay name
descriptionstringUser bio
profileImageUrlstringProfile image URL
verifiedbooleanWhether the user is verified
metricsobjectUser statistics
followersCountnumberNumber of followers
followingCountnumberNumber of users following
tweetCountnumberTotal number of tweets
metaobjectPagination metadata
resultCountnumberNumber of results returned
newestIdstringID of the newest tweet
oldestIdstringID of the oldest tweet
nextTokenstringToken for next page
previousTokenstringToken for previous page

x_create_bookmark

Input

ParameterTypeRequiredDescription
userIdstringYesNo description
tweetIdstringYesNo description

Output

ParameterTypeDescription
bookmarkedbooleanWhether the tweet was successfully bookmarked

x_delete_bookmark

Remove a tweet from the authenticated user

Input

ParameterTypeRequiredDescription
userIdstringYesNo description
tweetIdstringYesNo description

Output

ParameterTypeDescription
bookmarkedbooleanWhether the tweet is still bookmarked (should be false after deletion)

x_get_me

Get the authenticated user

Input

ParameterTypeRequiredDescription

Output

ParameterTypeDescription
userobjectAuthenticated user profile
idstringUser ID
usernamestringUsername without @ symbol
namestringDisplay name
descriptionstringUser bio
profileImageUrlstringProfile image URL
verifiedbooleanWhether the user is verified
metricsobjectUser statistics
followersCountnumberNumber of followers
followingCountnumberNumber of users following
tweetCountnumberTotal number of tweets

x_search_users

Input

ParameterTypeRequiredDescription
querystringYesNo description
maxResultsnumberNoNo description
nextTokenstringNoNo description

Output

ParameterTypeDescription
usersarrayArray of users matching the search query
idstringUser ID
usernamestringUsername without @ symbol
namestringDisplay name
descriptionstringUser bio
profileImageUrlstringProfile image URL
verifiedbooleanWhether the user is verified
metricsobjectUser statistics
followersCountnumberNumber of followers
followingCountnumberNumber of users following
tweetCountnumberTotal number of tweets
metaobjectSearch metadata
resultCountnumberNumber of results returned
nextTokenstringnextToken output from the tool

x_get_followers

Input

ParameterTypeRequiredDescription
userIdstringYesNo description
maxResultsnumberNoNo description
paginationTokenstringNoNo description

Output

ParameterTypeDescription
usersarrayArray of follower user profiles
idstringUser ID
usernamestringUsername without @ symbol
namestringDisplay name
descriptionstringUser bio
profileImageUrlstringProfile image URL
verifiedbooleanWhether the user is verified
metricsobjectUser statistics
followersCountnumberNumber of followers
followingCountnumberNumber of users following
tweetCountnumberTotal number of tweets
metaobjectPagination metadata
resultCountnumberNumber of results returned
nextTokenstringToken for next page

x_get_following

Input

ParameterTypeRequiredDescription
userIdstringYesNo description
maxResultsnumberNoNo description
paginationTokenstringNoNo description

Output

ParameterTypeDescription
usersarrayArray of users being followed
idstringUser ID
usernamestringUsername without @ symbol
namestringDisplay name
descriptionstringUser bio
profileImageUrlstringProfile image URL
verifiedbooleanWhether the user is verified
metricsobjectUser statistics
followersCountnumberNumber of followers
followingCountnumberNumber of users following
tweetCountnumberTotal number of tweets
metaobjectPagination metadata
resultCountnumberNumber of results returned
nextTokenstringToken for next page

x_manage_follow

Input

ParameterTypeRequiredDescription
userIdstringYesNo description
targetUserIdstringYesNo description
actionstringYesAction to perform: "follow" or "unfollow"

Output

ParameterTypeDescription
followingbooleanWhether you are now following the user
pendingFollowbooleanWhether the follow request is pending (for protected accounts)

x_manage_block

Input

ParameterTypeRequiredDescription
userIdstringYesNo description
targetUserIdstringYesNo description
actionstringYesAction to perform: "block" or "unblock"

Output

ParameterTypeDescription
blockingbooleanWhether you are now blocking the user

x_get_blocking

Input

ParameterTypeRequiredDescription
userIdstringYesNo description
maxResultsnumberNoNo description
paginationTokenstringNoNo description

Output

ParameterTypeDescription
usersarrayArray of blocked user profiles
idstringUser ID
usernamestringUsername without @ symbol
namestringDisplay name
descriptionstringUser bio
profileImageUrlstringProfile image URL
verifiedbooleanWhether the user is verified
metricsobjectUser statistics
followersCountnumberNumber of followers
followingCountnumberNumber of users following
tweetCountnumberTotal number of tweets
metaobjectPagination metadata
resultCountnumberNumber of results returned
nextTokenstringToken for next page

x_manage_mute

Input

ParameterTypeRequiredDescription
userIdstringYesNo description
targetUserIdstringYesNo description
actionstringYesAction to perform: "mute" or "unmute"

Output

ParameterTypeDescription
mutingbooleanWhether you are now muting the user

Get trending topics for a specific location by WOEID (e.g., 1 for worldwide, 23424977 for US)

Input

ParameterTypeRequiredDescription
woeidstringYesYahoo Where On Earth ID (e.g., "1" for worldwide, "23424977" for US, "23424975" for UK)
maxTrendsnumberNoNo description

Output

ParameterTypeDescription
trendsarrayArray of trending topics
trendNamestringName of the trending topic
tweetCountnumberNumber of tweets for this trend

Input

ParameterTypeRequiredDescription

Output

ParameterTypeDescription
trendsarrayArray of personalized trending topics
trendNamestringName of the trending topic
postCountnumberNumber of posts for this trend
categorystringCategory of the trend
trendingSincestringISO 8601 timestamp of when the topic started trending

x_get_usage

Input

ParameterTypeRequiredDescription
daysnumberNoNo description

Output

ParameterTypeDescription
capResetDaynumberDay of month when usage cap resets
projectIdstringThe project ID
projectCapnumberThe project tweet consumption cap
projectUsagenumberTotal tweets consumed in current period
dailyProjectUsagearrayDaily project usage breakdown
datestringUsage date in ISO 8601 format
usagenumberNumber of tweets consumed
dailyClientAppUsagearrayDaily per-app usage breakdown
clientAppIdstringClient application ID
usagearrayDaily usage entries for this app
datestringUsage date in ISO 8601 format
usagenumberNumber of tweets consumed

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started