List comments on a Hacker News story by id.
Endpoint
/v1/hackernews/stories/{id}/comments
Path
Hacker News story id whose comment tree should be returned.
Query
Maximum comment nodes to return in this page (1–100). Default: 50.
Opaque continuation cursor from a previous response. Omit for the first page.
const response = await fetch( "https://api.socialfetch.dev/v1/hackernews/stories/8863/comments", { headers: { "x-api-key": "YOUR_API_KEY" } } ); const data = await response.json(); console.log(data);