Hacker News API

Hacker News Story comments API

List the comments on a Hacker News story by id - text, author, and timestamp as clean JSON.

POST/v1/run/hackernews.story_comments
Uptime
100.00%
30d · 29 calls
Requests
29
30d · weekly, last 12 wks
Response
0.4s
median · 30d

Provider network

Providers ranked by traffic

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "data": {
    "comments": [
      {
        "author": "Alex Rivera",
        "createdUtc": 12.5,
        "id": "a1b2c3d4",
        "parentId": "a1b2c3d4",
        "text": "A short example description of this item."
      }
    ]
  },
  "found": true
}
Response interface
interface HackernewsStoryCommentsResponse {
  data: {
    comments: {
      author: string;
      createdUtc: number;
      id: string;
      parentId: string;
      text: string;
    }[];
  } | null;
  found: boolean;
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

Request, response, and price

Last verified 2026-09-16 · uptime and latency measured over 30d
POST /v1/run/hackernews.story_comments
curl -X POST https://api.getanyapi.com/v1/run/hackernews.story_comments \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"47340079"}'
FieldTypeExample value
Request body
idstring"47340079"Hacker News story id, e.g. "47340079".
Response
dataobjectResult payload, or null when the id did not resolve.
data.commentsobject[]Comments on the story. Populated whenever the provider has data for the entity.
data.comments[].authorstringCommenting user's username. Populated whenever the provider has data for the entity.
data.comments[].createdUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
data.comments[].idstringHacker News comment id. Populated whenever the provider has data for the entity.
data.comments[].parentIdstringId of the parent item (story or comment) this reply belongs to.
data.comments[].textstringComment body text.
foundbooleanTrue when the story id resolved and comments were returned.
Price
Price per requestUSD$0.0015
Price /1k reqUSD$1.50

FAQ

About the Hacker News Story comments API

The AnyAPI Hacker News Story comments API returns Hacker News story comments data as normalized JSON from one POST call to /v1/run/hackernews.story_comments. List the comments on a Hacker News story by id - text, author, and timestamp as clean JSON. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $1.50 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Hacker News story comments calls through AnyAPI succeeded, with a median response time of 0.4 seconds across 29 measured calls.

It costs from $1.50 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

List the comments on a Hacker News story by id - text, author, and timestamp as clean JSON. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 100.0% of Hacker News story comments calls through AnyAPI succeeded, with a median response time of 0.4 seconds across 29 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.