App Logo
producthunt.com

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.

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

comments required
returned required

How many comments this read actually returned.

launchUrl required
launchSlug required
productSlug required
reportedTotal required

The comment tally Product Hunt prints for the launch. It counts more than the thread renders, so it is normally HIGHER than `returned` — that difference is expected, not a failed read. Null when the page prints no tally.

sortApplied optional

Which ordering the thread was showing, as labelled on the page. Product Hunt defaults to its own "best" ordering; this script does not change it. Null when the launch has no thread yet.

Start building not clicking