Hacker News

Get comments on a Hacker News story

List comments on a Hacker News story by id.

get/v1/hackernews/stories/{id}/comments

Request

  • Base URL: https://api.socialfetch.dev
  • URL: https://api.socialfetch.dev/v1/hackernews/stories/{id}/comments
  • Auth: one of:
    • API key in header x-api-key
    • none

Path parameters

idinteger required

Hacker News story id whose comment tree should be returned.

Query parameters

limitinteger

Maximum comment nodes to return in this page (1–100). Default: 50.

cursorstring

Opaque continuation cursor from a previous response. Omit for the first page.

Response

Hacker News story comment tree page. Each successful page costs one credit, including cursor continuations.

Changes

No recorded changes to this operation across all 1 revision of this API.