Skip to content
scrapeatlas.Dashboard

List Product Hunt comments

Try in Playground

List Product Hunt comment threads. Pass post for a launch's comments, forum and discussion for a forum discussion's comments (each top-level comment with its HTML body, votes, author and up to five direct replies, sorted by score, votes or date), or comment for the direct replies to one comment, oldest first. Page with cursor.

GET/v1/producthunt/commentsx-api-key
x-api-keystringrequiredheader

Your ScrapeAtlas customer key. Create one on /account/ and set SCRAPEATLAS_API_KEY.

Query parameters
7
poststringquery

Launch slug, as in producthunt.com/posts/<slug> (for example notion-2-0). Reads that launch’s comments; also returned as the parent launch (id, slug, name, commentsCount).

Examplenotion-2-0
forumstringquery

Forum slug of the discussion, as in producthunt.com/p/<forum>/<discussion>. Use together with discussion.

discussionstringquery

Discussion slug, used with forum to read that discussion’s comments; also returned as the parent discussion (id, slug, title, commentsCount).

commentstringquery

Numeric comment ID from a comments response. Reads its direct replies (order is not accepted); also returned as the parent comment (id, repliesCount).

orderenumquery

Launch and discussion comments: score (default, the site’s ranking), votes, date (oldest first) or date_desc (newest first).

one of: score, votes, date, date_desc

Examplescore
cursorstringquery

Opaque nextCursor from the previous page. Omit for the first page.

limitstringquery

Records per page, 1–20; defaults to 20 (the source's page ceiling).

Response fields
56
requestIdstring

Request correlation identifier.

HTTP attempts, decoded bytes and duration for the operation, including the single shared retry.

accounting.upstreamRequestsinteger

Always included.

≥ 0

accounting.responseBytesinteger

Always included.

≥ 0

accounting.durationMsnumber

Always included.

≥ 0

successboolean

True when usable data is returned; inspect status and coverage for omissions.

statusenum

success, partial, failed, or challenged. HTTP 200 can be partial.

one of: success, partial

sourceUrlstring

Public Product Hunt page for the request.

absolute HTTPS URL

fetchedAtstring

UTC retrieval time.

source is public_api (Product Hunt's public web GraphQL) or public_feed (the Atom launch feed). Complete means this bounded page was returned without known omissions; votes_hidden marks launches whose vote count Product Hunt hides during their first hours (returned as null).

coverage.sourceenum

Always included.

one of: public_api, public_feed

coverage.completeboolean

Always included.

coverage.warningsstring[]

Always included.

Launch slug, as in producthunt.com/posts/<slug> (for example notion-2-0). Reads that launch’s comments; also returned as the parent launch (id, slug, name, commentsCount).

post.idstring

Always included.

post.slugstring

Always included.

post.namestring

Always included.

post.commentsCountinteger

Always included.

Top-level comments for this page, each with up to five direct replies.

up to 20 items

comments.idstring

Comment ID; pass it to the comment replies endpoint.

comments.bodyHtmlstringnullable

Comment body as HTML.

comments.createdAtstring

Creation time.

comments.votesCountinteger

Upvotes on the comment.

comments.repliesCountinteger

Total direct replies.

comments.isStickyboolean

Whether the comment is stuck to the top.

comments.isPinnedboolean

Whether the comment is pinned.

comments.pathstringnullable

Relative comment permalink, or null.

comments.urlstringnullable

Comment permalink, or null.

Comment author.

comments.user.idstring

Product Hunt user ID (string).

comments.user.namestringnullable

Display name.

comments.user.usernamestring

Username, as in producthunt.com/@username.

comments.user.headlinestringnullable

Profile headline, or null.

comments.user.avatarUrlstringnullable

Avatar image URL, or null.

comments.user.urlstring

Public profile URL.

Up to five direct replies with the same fields (without nested replies).

up to 50 items

comments.replies.idstring

Comment ID; pass it to the comment replies endpoint.

comments.replies.bodyHtmlstringnullable

Comment body as HTML.

comments.replies.createdAtstring

Creation time.

comments.replies.votesCountinteger

Upvotes on the comment.

comments.replies.repliesCountinteger

Total direct replies.

comments.replies.isStickyboolean

Whether the comment is stuck to the top.

comments.replies.isPinnedboolean

Whether the comment is pinned.

comments.replies.pathstringnullable

Relative comment permalink, or null.

comments.replies.urlstringnullable

Comment permalink, or null.

Comment author.

comments.replies.user.idstring

Product Hunt user ID (string).

comments.replies.user.namestringnullable

Display name.

comments.replies.user.usernamestring

Username, as in producthunt.com/@username.

comments.replies.user.headlinestringnullable

Profile headline, or null.

comments.replies.user.avatarUrlstringnullable

Avatar image URL, or null.

comments.replies.user.urlstring

Public profile URL.

comments.hasMoreRepliesboolean

True when more replies exist; read them with the comment replies endpoint.

totalCountintegernullable

Total records the source reports for this list, or null when it does not report one.

nextCursorstringnullable

Pass as cursor to read the next page; null on the last page.

hasMoreboolean

Whether another page exists.

HTTP 200 returns the success variant. Check status: partial means usable data with warnings, and failed or challenged requests carry a failure object described in Errors & responses.

Error codes
11
HTTPfailure.codeMeaning
200partialUsable data with votes_hidden warnings.
400invalid_requestMissing, duplicate, malformed or unsupported parameters, including incomplete or impossible leaderboard dates.
401unauthorizedMissing or invalid worker API key.
404not_foundThe product, launch, comment, topic, category, forum, discussion or user does not exist.
429upstream_rate_limitedSource throttling; no automatic retry.
502upstream_challengedSource rejected or challenged the unauthenticated request.
502unsupported_pageMalformed, mismatched or non-JSON source data, or a GraphQL error.
502response_too_large payload_too_complexResponse exceeded byte or parsing limits.
502unsafe_redirect request_limit upstream_errorBounded source retrieval could not complete.
503busyAll worker slots are occupied.
504timeoutTotal request deadline expired.