GroundsocialDocs

API · Hacker News

GET /hackernews/items/{id}/comments

Every comment under a Hacker News story, flattened in reading order.

RequestGET /v1/hackernews/items/{id}/comments
Operation idhackernews.story.comments
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Every comment under a Hacker News story, flattened in reading order.

Path parameters

NameTypeRequiredDescription
idstringyesAn item id or its link (news.ycombinator.com/item?id=…). Example: 8863.

Query parameters

NameTypeRequiredDescription
sincestringnoOnly rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Example: 2026-01-01.
untilstringnoOnly rows published on or before this date: YYYY-MM-DD (that whole UTC day) or an ISO 8601 timestamp. Example: 2026-12-31.

Responses

StatusMeaningSchema
200The story and its comments.HackerNewsThread
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The item or user does not exist.Error
429Too many requests. Wait for Retry-After seconds.Error
503Hacker News is temporarily unavailable. Retryable; nothing was charged.Error

HackerNewsThread fields

FieldTypeDescription
storyHackerNewsItem
commentsHackerNewsComment[]
comment_countintegerComments returned (after since/until).

Errors use one shape everywhere; see Errors for every code and what to do.