Get current Product Hunt user
Automatically get current Product Hunt user on producthunt.com. Report which Product Hunt account this browser is signed in as: the @username, display name, numeric user id and profile URL. When the browser is signed out of Product Hunt, the run fails with a signed-out error asking you to sign in to producthunt.com.
Input
None
Output
loggedIn requiredname optionaluserId optionalusername optionalProduct Hunt handle, without the @
profileUrl optionalFAQ
Get Product Hunt product
Read a Product Hunt product page and return its profile: name, tagline, full description, the outbound website link, the categories it is listed under, its review rating and review count, how many times it has launched, its makers with their Product Hunt profiles, and any Top Product or Golden Kitty awards. Accepts either the product slug or a full Product Hunt product URL. Follower counts are returned exactly as the page displays them (Product Hunt rounds them, e.g. "18K") alongside a numeric approximation. An unknown product is reported as such rather than returned as an empty record.
Get Product Hunt launch comments
Read the comment thread on a Product Hunt launch. Returns each comment with its author (name, handle, profile id and the product they are credited to), the text, its upvote count, when it was posted, whether it is pinned, and how deeply it is nested so replies stay attached to what they answer. Accepts a full launch URL or a "product/launch" slug pair. Product Hunt's headline comment tally on a launch counts more items than the thread actually renders, so both numbers are returned side by side rather than presenting the visible ones as the complete set. An unknown launch is reported as such.
Upvote a Product Hunt launch
Upvote a launch on Product Hunt as the signed-in account. If the account has already upvoted it, nothing changes and already_present is true. Returns the account that voted, the score afterwards, and whether Product Hunt confirmed the vote. Accepts a full launch URL or a "product/launch" slug pair. Votes apply to one launch, not to a product as a whole. Undo with remove_launch_upvote.
