producthunt.com
Get Product Hunt launch comments
Input
launch requiredFull 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 requiredreturned requiredHow many comments this read actually returned.
launchUrl requiredlaunchSlug requiredproductSlug requiredreportedTotal requiredThe 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 optionalWhich 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.
