App Logo
x.com

Reply to tweet

Reply to a tweet given its URL. Returns the reply's id, url, the parent tweet id, and author handle.

Input

text required

The reply body text (≤280 chars). Any deliberate @handle in the text (not X's own auto-prepended participant mentions) is validated against a real, non-suspended X account before anything is posted — the run throws naming the bad handle if one doesn't resolve. Every call posts immediately and irreversibly in public, with no preview or confirmation step inside the script, so show the exact text to the user and get their explicit approval for this specific content before running — approval from an earlier or unrelated message does not carry over. X also prepends its own computed reply mentions (the tweet's participants) to the published text, so any @mentions at the very start of this field are stripped before typing to avoid duplicates; put a deliberate @mention of a different account mid-sentence rather than leading with it.

tweet_url required

Full URL of the tweet to reply to, e.g. https://x.com/handle/status/123

Output

url required
text required
handle required
tweet_id required
in_reply_to required

id of the parent tweet

account_used required

handle of the logged-in account that performed the action, read from the account switcher UI (not assumed from input).

already_present required

true if a reply with this exact text was already visible on the tweet's page before attempting to publish (duplicate-avoidance check); when true, publishing is skipped and tweet_id/url are null.

verified_on_page required

true if the script navigated to the new reply's URL after publishing and confirmed the article is actually present.

Start building not clicking