App Logo
producthunt.com

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, read from the header's own signed-in avatar. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Product Hunt scripts.

Input

None

Output

loggedIn required
name optional
userId optional
username optional

Product Hunt handle, without the @

profileUrl optional

FAQ

Report which Product Hunt account this browser is signed in as: the @username, display name, numeric user id and profile URL, read from the header's own signed-in avatar. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Product Hunt scripts.
Ask an AI agent connected to Reduck to run reduck/producthunt.com/get_current_user, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/producthunt.com/get_current_user
You do not need one. "Get current Product Hunt user" drives the real producthunt.com pages in a browser, so it works whether or not producthunt.com offers an API for this.
Nothing. It takes no input.
It returns name, userId, loggedIn, username, profileUrl.
Yes. It acts as you on producthunt.com: on your own Chrome it reuses your session, and on a Reduck-hosted browser it loads the producthunt.com cookies saved by the Reduck extension.
It only reads. It looks things up on producthunt.com and changes nothing there.
Ask an AI agent connected to Reduck to run reduck/producthunt.com/get_current_user, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/producthunt.com/get_current_user
It is part of Reduck's official curated catalogue.

Start building not clicking