Get Hacker News story comments
List comments on a Hacker News story by id.
Headers
Get your API keyAPI key (`sfk_...`)
Hacker News story id whose comment tree should be returned.
≥ 0 · ≤ 9007199254740991
Maximum comment nodes to return in this page (1–100). Default: 50.
≥ 1 · ≤ 100
Opaque continuation cursor from a previous response. Omit for the first page.
min 1 chars
Endpoint-specific response payload.
Whether the story was found, not found, or not a story.
one of: found, not_found, not_story
Story summary when lookupStatus is `found`; null otherwise.
Story id.
≥ 0
Plain-text title when present.
Author username when present.
Total comment count when present.
Canonical news.ycombinator.com item URL.
Top-level comment ids in ranked display order. Empty when the story has no comments or lookupStatus is not `found`.
≥ 0
Comment nodes returned in this page. Reconstruct the tree using rootCommentIds and each node's childIds.
Comment item id.
≥ 0
Immediate parent item id (story or comment).
≥ 0
Child comment ids in ranked display order. Unresolved children may still appear here when traversal is incomplete.
≥ 0
Author username when available.
Creation time as an ISO-8601 timestamp when available.
Plain-text body when available (HTML stripped). Null for deleted/tombstone nodes.
Whether the comment is marked dead.
Whether the comment is marked deleted.
Canonical news.ycombinator.com item URL.
Traversal metadata when lookupStatus is `found`; null otherwise.
True when every currently reachable child edge has been traversed. Not a historical archive guarantee.
Opaque cursor to continue the same traversal when complete is false; otherwise null.
Number of comment nodes returned in this page.
≥ 0
Total comment nodes discovered so far across this traversal snapshot.
≥ 0
ISO-8601 timestamp when this traversal snapshot began (first page).
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
True when served from shared response cache. Credits still apply (full endpoint price); Age header may be present.
Code example
curl "https://api.socialfetch.dev/v1/hackernews/stories/8863/comments" \
-H "x-api-key: YOUR_API_KEY"Responses
Hacker News story comment tree page. Each successful page costs one credit, including cursor continuations.