App Logo
producthunt.com

Remove a Product Hunt launch upvote

Withdraw the signed-in account's upvote from a Product Hunt launch. This is the inverse of upvoting one, and it is written the same careful way: because Product Hunt's vote control is a toggle, the script first checks whether an upvote actually exists and does nothing if it does not, instead of pressing the control and accidentally adding one. The result reports the account used, whether there was no vote to remove, the score afterwards, and confirmation read back from Product Hunt's own response rather than from the button. Accepts a full launch URL or a "product/launch" slug pair.

Input

launch required

Full launch URL (e.g. "https://www.producthunt.com/products/notion/launches/notion-mail") or a "product/launch" slug pair (e.g. "notion/notion-mail").

Output

hasVoted required

Whether the account still holds an upvote after the run. False on success.

launchUrl required
account_used required

Handle of the account whose vote was withdrawn, read from the signed-in session rather than assumed.

already_absent required

True when this account held no upvote on the launch, so nothing was pressed.

verified_on_page required

True when Product Hunt's own response confirmed the launch is no longer upvoted.

postId optional

Product Hunt's numeric id for the launch.

scoreAfter optional

Score Product Hunt reported with the change. Other people vote continuously, so this is their number at that instant, not necessarily scoreBefore - 1.

scoreBefore optional

Score shown on the control before the change. Read from the rendered figure, so it can lag other people's votes by moments.

Start building not clicking