twitr.sh

v1.0.0
sh.twitr/twitr Checked 2 days ago Published 4 months ago

X/Twitter reads, search, monitors and posting.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

x_read

Read live X/Twitter data: look up a single tweet or user profile, batch-read up to 100 tweets or users at once, check whether one account follows another, fetch trending topics by region, extract a long-form article, or download tweet media. Pay per call in USDC — no API key, no signup; failed calls are never charged. Guidance: resource=get-tweet|get-user (id), batch-tweets|batch-users (ids array, ≤100), check-follower (source+target usernames), trends (optional woeid/count), article (tweet id), followers-you-know (id + mandatory resultsLimit), download-media (id or ids ≤50 — returns…

ParameterTypeDescription
resource *stringWhich read operation to run.
countintegertrends: number of trends to return.
idstringTweet ID, user ID, or username (depends on resource).
idsarraybatch-tweets|batch-users: up to 100 tweet IDs or user IDs/usernames.
resultsLimitintegerMandatory for followers-you-know: max results, billed per result.
sourcestringcheck-follower: source username.
targetstringcheck-follower: target username.
woeidintegertrends: region WOEID (default 1 = worldwide).

x_timeline

Fetch a user's X/Twitter timeline — their tweets, replies, likes, media posts, or mentions — plus follower and following lists, and per-tweet engagement lists (who replied, quoted, retweeted, or favorited). Billed per item returned. The building block for monitoring what an account posts or ranking accounts by activity. Guidance: kind selects the timeline: user-tweets|user-replies|user-likes|user-media|user-mentions|followers|following|verified-followers (id = user) or tweet-replies|tweet-quotes|tweet-thread|tweet-favoriters|tweet-retweeters (id = tweet). resultsLimit is MANDATORY — bil…

ParameterTypeDescription
id *stringUser ID/username or tweet ID (depends on kind).
kind *stringWhich timeline to fetch.
resultsLimit *integerMANDATORY: max items returned, billed per item.
includeParentTweetboolean
includeRepliesboolean
languagestring
mediaTypestring
minFavesinteger
verifiedOnlyboolean

x_lists

Read an X/Twitter List: its combined tweet timeline, its member roster, or its followers. Billed per item returned. Useful for following a curated set of accounts as one feed. Guidance: kind=tweets|members|followers; id = list ID. resultsLimit is MANDATORY — billed per item returned. tweets supports sinceTime/untilTime and includeReplies.

ParameterTypeDescription
id *stringList ID.
kind *stringWhat to read from the list.
resultsLimit *integerMANDATORY: max items returned, billed per item.
includeRepliesboolean
sinceTimestring
untilTimestring

x_communities

Read an X/Twitter Community: profile info, member and moderator rosters, the community's tweets, or keyword search inside the community. Fixed price for info; billed per item for rosters, tweets, and search. Guidance: kind=info (fixed price) or members|moderators|tweets|search (per-item — resultsLimit MANDATORY). id = community ID. search additionally requires q.

ParameterTypeDescription
id *stringCommunity ID.
kind *stringWhat to read.
qstringsearch: query within the community.
resultsLimitintegerMandatory for members/moderators/tweets/search: max items, billed per item.

x_extract

Bulk-export X/Twitter data as downloadable datasets: followers, following, repliers, quoters, reposters, likers, mentions, full threads, list and community members, spaces, or people/tweet search results — 23 extractors. Runs async: you get a claim check immediately and poll a free status URL for the download link. Billed per result. Guidance: tool selects the extractor (23 options). Provide the matching target: targetTweetId (reply/repost/quote/thread/article/favoriters extractors), targetUsername (follower/following/verified/post/mention/likes/media), targetCommunityId, targetListId, targ…

ParameterTypeDescription
resultsLimit *integerMANDATORY: max results extracted, billed per result.
tool *stringWhich extractor to run.
languagestring
mediaTypestring
minFavesinteger
searchQuerystring
sinceDatestring
targetCommunityIdstring
targetListIdstring
targetSpaceIdstring
targetTweetIdstring
targetUsernamestring
untilDatestring
verifiedOnlyboolean

x_monitor

Watch an X/Twitter account or keyword query in real time: new tweets, replies, quotes, mentions, hashtags, and profile changes, delivered to your agent by free polling or HMAC-signed webhooks. Prepaid by the hour with a hard stop at expiry — no open-ended billing. The way to track a brand, competitor, or topic without re-polling paid reads. Guidance: action=create needs username (account monitor, e.g. "vercel") OR query (keyword monitor, X search syntax, ≤512 chars), optional eventTypes — 21 available: post events (tweet.new, .reply, .retweet, .quote, .media, .link, .poll, .mention, .ha…

ParameterTypeDescription
action *stringCreate a new monitor or extend an existing one.
eventTypesarrayEvent types to receive (default: all applicable). Post events (tweet.*) work for any monitor; profile-change events (profile.*.changed) apply to ACCOUNT monitors only.
hoursintegerPrepaid hours to purchase (default 1).
monitorIdstringMonitor to extend (extend only).
querystringX search query to monitor (create, type=keyword).
typestringMonitor kind (create). Inferred from username/query when omitted.
usernamestringX handle to monitor, without @ (create, type=account).

x_draws

Run a provably fair giveaway on X/Twitter: pick crypto-random winners from a tweet's replies, with retweet, follow, hashtag, keyword, minimum-follower, and account-age conditions. Fixed price set upfront from your estimated entry count. Guidance: tweetUrl required. Optional: winnerCount (default 1), backupCount, uniqueAuthorsOnly, mustRetweet, mustFollowUsername, filterMinFollowers, filterAccountAgeDays, filterLanguage, requiredHashtags/Keywords/Mentions. Pricing is fixed upfront from the estimatedEntries you set (default 1000, max 10000) — set it near the tweet's reply count; that number i…

ParameterTypeDescription
tweetUrl *stringFull tweet URL (https://x.com/user/status/ID).
backupCountinteger
estimatedEntriesintegerExpected replies inspected — drives the fixed price (default 1000).
filterAccountAgeDaysinteger
filterLanguagestring
filterMinFollowersinteger
mustFollowUsernamestring
mustRetweetboolean
requiredHashtagsarray
requiredKeywordsarray
requiredMentionsarray
uniqueAuthorsOnlyboolean
winnerCountinteger

x_write

Act on X/Twitter through an account you connect: post a tweet, reply, like, retweet, follow or unfollow, send a DM, delete a tweet, remove a follower, or upload media. Ownership is checked server-side — an agent can only write as a handle its own wallet connected. Guidance: PREREQUISITE: connect an X account first — POST /api/x-accounts/start (free, SIWX) with {username} only; it returns a one-time connect_url the USER opens in their own browser to sign in there. Never ask the user for their X password, email, or 2FA secret. Poll GET /api/x-accounts until the handle shows linked, then ref…

ParameterTypeDescription
account *stringA connected X handle owned by this wallet (no @).
action *stringWhich write to perform.
community_idstringpost: optional community to post into.
is_note_tweetbooleanpost: long-form note tweet.
media_idsarraysend_dm: optional uploaded media ids to attach.
media_urlstringupload_media: public URL of the file to upload; returns a media_id.
reply_to_tweet_idstringreply: the tweet being replied to.
target_tweet_idstringlike|unlike|retweet|unretweet|delete_tweet: the target tweet ID.
target_user_idstringfollow|unfollow|send_dm|remove_follower: the numeric X user id of the target (not the @handle). Get it from x_read get-user.
textstringpost|reply|send_dm: the message body.

x_inbox

Read a connected X/Twitter account's private surfaces: bookmarks and bookmark folders, notifications, and DM history. Billed per item returned; readable only for handles this wallet connected. Guidance: PREREQUISITE: connect an X account (see /api/x-accounts/start). Reads act AS that account, so you can only read the inbox of a handle THIS wallet connected. action=bookmarks (optional folderId) | bookmark_folders | notifications (optional type) | dm_history (target_user_id required). bookmarks/notifications/dm_history are billed per item — set resultsLimit (1–10000). account (the connected…

ParameterTypeDescription
account *stringA connected X handle owned by this wallet (no @).
action *stringWhich inbox read to run.
folderIdstringbookmarks: optional folder to read.
maxIdstringdm_history: paginate before this message id.
resultsLimitintegerMax items to return (billed per item); ignored for bookmark_folders.
target_user_idstringdm_history: the other party's user id.
typestringnotifications: optional filter (e.g. mentions).

x_profile

Edit a connected X/Twitter account's profile: display name, bio, location, website link, avatar image, and banner image. Acts only on handles this wallet connected. Guidance: PREREQUISITE: connect an X account. Acts as a handle THIS wallet owns. action=update_profile (any of name, description, location, url) | set_avatar (media_url) | set_banner (media_url). account required. Payment settles before the change; Idempotency-Key required.

ParameterTypeDescription
account *stringA connected X handle owned by this wallet (no @).
action *stringWhich profile edit to make.
descriptionstringupdate_profile: new bio.
locationstringupdate_profile: new location.
media_urlstringset_avatar|set_banner: public image URL.
namestringupdate_profile: new display name.
urlstringupdate_profile: new website URL.

x_community

Manage X/Twitter Communities as a connected account: join or leave an existing community, or delete a community you own. (X no longer allows creating new Communities.) Guidance: PREREQUISITE: connect an X account. Acts as a handle THIS wallet owns. action=join|leave (community_id) | delete (community_id + community_name confirmation). action=create is refused: X no longer allows new Communities. account required. Payment settles before the action; Idempotency-Key required.

ParameterTypeDescription
account *stringA connected X handle owned by this wallet (no @).
action *stringWhich community action.
community_idstringjoin|leave|delete: the community ID.
community_namestringdelete: the community name, as confirmation.
descriptionstringcreate: optional community description.
namestringcreate: the community name.

x_radar

Trending topics and breaking stories across tech, dev, science, business, culture, politics, and entertainment — aggregated from multiple public sources with regional and time-window filters. Flat sub-cent price per call; the cheap first stop for what is happening right now. Guidance: Optional filters: category, region, hours (lookback), limit, source. Use report.next_cursor via `after` for the next page. Flat floor price per call.

ParameterTypeDescription
afterstringPagination cursor.
categorystringTopic category filter.
hoursinteger
limitinteger
regionstring
sourcestringTrend source filter.

x_compose

Draft tweets with AI: generate variants from a topic and goal, refine an existing draft, or score a draft for likely engagement — with tone, call-to-action, and style-matching options. Flat sub-cent price per step. Guidance: step=generate (topic + goal required; optional tone/styleUsername/additionalContext/callToAction/mediaType/hasLink/hasMedia), refine (draft required), or score (draft required). Returns text variants with scores and suggestions. Flat floor price per call.

ParameterTypeDescription
step *stringComposer step.
additionalContextstring
callToActionstring
draftstring
goalstring
hasLinkboolean
hasMediaboolean
mediaTypestring
styleUsernamestring
tonestring
topicstring